mcp-cli  by wong2

CLI tool for Model Context Protocol inspection

Created 1 year ago
402 stars

Top 72.1% on SourcePulse

GitHubView on GitHub
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

5 months ago

Responsiveness

1 day

Pull Requests (30d)
0
Issues (30d)
0
Star History
6 stars in the last 30 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

0.4%
3k
TypeScript framework for building MCP servers handling client sessions
Created 1 year ago
Updated 5 days ago
Starred by Andrej Karpathy Andrej Karpathy(Founder of Eureka Labs; Formerly at Tesla, OpenAI; Author of CS 231n), Tobi Lutke Tobi Lutke(Cofounder of Shopify), and
33 more.

opencode by anomalyco

26.5%
60k
CLI tool for AI-assisted coding in the terminal
Created 8 months ago
Updated 15 hours ago
Feedback? Help us improve.