MCP.so
Sign In

cMCP

@russellluo

About cMCP

A command-line utility for interacting with MCP servers.

Overview

What is cMCP?

cMCP is a command-line utility that lets you interact with MCP (Model Context Protocol) servers. It works like curl for MCP servers and runs anywhere Python is installed.

How to use cMCP?

Install cMCP with pip install cmcp. To use it with a STDIO server, run cmcp COMMAND METHOD; for an SSE server, run cmcp URL METHOD. Add parameters, environment variables, or HTTP headers as needed. Use -v for verbose JSON-RPC output.

Key features of cMCP

  • Command-line interface for MCP servers
  • Supports STDIO and SSE transports
  • Pass parameters as key=value or JSON objects
  • Add environment variables (STDIO) or HTTP headers (SSE)
  • Verbose mode to inspect JSON-RPC requests and responses

Use cases of cMCP

  • List prompts, resources, and tools from an MCP server
  • Read resources and get prompts from the terminal
  • Call MCP tools directly from shell scripts
  • Test MCP server endpoints without a client application

FAQ from cMCP

What does cMCP do that other MCP clients don’t?

cMCP is a lightweight, curl-like CLI focused solely on sending MCP requests and displaying responses. It has no GUI or editor integration, making it ideal for quick tests, debugging, and scripting.

Which MCP server transports does cMCP support?

cMCP supports both STDIO (command-based) and SSE (HTTP-based) transports.

How do I install cMCP?

Install it via pip: pip install cmcp.

Is cMCP free and open-source?

Yes, cMCP is available under an open-source license (implied by the public repository).

Are there any known limits?

cMCP is a minimal CLI tool; it does not manage server processes, handle authentication flows, or provide a persistent session. It sends one request per invocation.

Comments

More Agent Frameworks MCP clients