# mcp-cli

> MCP Server

The mcp-cli is a command-line tool for inspecting and interacting with Model Context Protocol (MCP) servers, allowing users to list, call, and read various components from different sources.

## Overview

- **Category:** Developer Tools
- **Language:** JavaScript
- **Stars:** 443
- **Forks:** 17
- **Owner:** wong2
- **GitHub:** https://github.com/wong2/mcp-cli
- **Created:** 2024-12-05T04:21:46+00:00
- **Updated:** 2025-03-28T19:26:25+00:00
- **Source:** https://model-context-protocol.com/servers/cli-tool-inspect-model-context-protocol

## Setup

## Setup

To run mcp-cli, you can:

1.  Run without a config file using `npx @wong2/mcp-cli` which uses the Claude Desktop config.
2.  Run with a config file using `npx @wong2/mcp-cli -c config.json` with the same format as Claude Desktop.
3.  Run servers from NPM using `npx @wong2/mcp-cli npx <package-name> <args>`.
4.  Run a locally developed server using `npx @wong2/mcp-cli node path/to/server/index.js args...`.
5.  Connect to a running server over SSE using `npx @wong2/mcp-cli --sse http://localhost:8000/sse` after starting an MCP server running over SSE transport.

## Tools

## Available Tools

1. Run MCP servers from various sources.
2. List Tools, Resources, Prompts.
3. Call Tools, Read Resources, Read Prompts.
