cMCP
by russellluo
cmcp is a command-line utility that helps you interact with MCP servers. It's basically `curl` for MCP servers.
Last updated: N/A
What is cMCP?
cMCP is a command-line tool designed to interact with MCP (Model Context Protocol) servers. It provides a convenient way to list and call prompts, read resources, and invoke tools exposed by the MCP server.
How to use cMCP?
Install cmcp using pip: pip install cmcp
. To use it, simply use the cmcp
command followed by either a command to run an MCP server locally using mcp run server.py
, or the URL of a running MCP server. You can then specify the desired action (e.g., prompts/list
, resources/read
, tools/call
) along with any required data.
Key features of cMCP
List prompts, resources, and tools
Call prompts and tools with arguments
Read resources by URI
Supports STDIO and SSE transports
Use cases of cMCP
Interacting with MCP servers from the command line
Automating interactions with MCP servers using scripts
Testing and debugging MCP server implementations
Exploring the functionality of an MCP server
FAQ from cMCP
What is MCP?
What is MCP?
MCP stands for Model Context Protocol, a protocol to provide a way to standardized access to a AI model's capabilities and data.
How do I install cmcp?
How do I install cmcp?
You can install cmcp using pip: pip install cmcp
What transport protocols are supported?
What transport protocols are supported?
cmcp supports STDIO and SSE transport protocols.
Can I use cmcp to interact with a remote MCP server?
Can I use cmcp to interact with a remote MCP server?
Yes, you can use cmcp by specifying the URL of the remote MCP server.
How do I call a tool with arguments?
How do I call a tool with arguments?
Use the tools/call
action with the -d
option to provide the tool name and arguments in JSON format.