mcp-cli  by wong2

CLI tool for Model Context Protocol inspection

created 8 months ago
360 stars

Top 78.9% on sourcepulse

GitHubView on GitHub
1 Expert Loves This Project
Project Summary

This project provides a command-line interface (CLI) for inspecting and interacting with the Model Context Protocol (MCP). It targets developers working with AI models and their contextual data, enabling them to easily list tools, resources, and prompts, and to call tools or read resources and prompts.

How It Works

The mcp-cli acts as a client for MCP servers. It supports connecting to servers via Streamable HTTP or Server-Sent Events (SSE) using specified URLs. Additionally, it can run MCP servers directly from NPM packages or local Node.js files, allowing for flexible server management and testing.

Quick Start & Requirements

  • Primary install / run command: npx @wong2/mcp-cli
  • Prerequisites: Node.js and npm.
  • Usage examples:
    • npx @wong2/mcp-cli (uses Claude Desktop config)
    • npx @wong2/mcp-cli -c config.json (uses a specified config file)
    • npx @wong2/mcp-cli --url http://localhost:8000/mcp (connects via Streamable HTTP)
    • npx @wong2/mcp-cli --sse http://localhost:8000/sse (connects via SSE)
  • Related projects: mcpservers.org, LiteMCP

Highlighted Details

  • Supports running MCP servers from NPM packages or local files.
  • Enables connection to MCP servers via Streamable HTTP and SSE.
  • Allows listing of Tools, Resources, and Prompts.
  • Facilitates calling Tools and reading Resources/Prompts.

Maintenance & Community

  • Maintained by wong2.
  • No explicit community links (Discord/Slack) or roadmap are provided in the README.

Licensing & Compatibility

  • The README does not specify a license.

Limitations & Caveats

The project's license is not specified, which may impact commercial use or integration into closed-source projects. Community support channels and a clear roadmap are also not detailed.

Health Check
Last commit

2 weeks ago

Responsiveness

1 day

Pull Requests (30d)
3
Issues (30d)
1
Star History
77 stars in the last 90 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), Travis Fischer Travis Fischer(Founder of Agentic), and
1 more.

fastmcp by punkpeye

3.7%
2k
TypeScript framework for building MCP servers handling client sessions
created 7 months ago
updated 2 days ago
Feedback? Help us improve.