Model Context Protocol CLI
@sansan4ez
关于 Model Context Protocol CLI
概览
What is Model Context Protocol CLI?
The Model Context Protocol CLI is a protocol-level command-line client that interacts with an MCP (Model Context Protocol) server. It lets users send commands, query data, and explore server resources. It runs on any system with Python 3.8+ and the UV package manager. It is intended for developers and technical users who need direct, scriptable access to MCP servers.
How to use Model Context Protocol CLI?
- Clone the repository and install UV (
pip install uv). - Run
uv sync --reinstallinside the cloned directory. - Start the client with
uv run mcp-cli --server <server>(e.g.,sqlite). - Pass optional arguments for provider (
--provider openaiorollama), model (--model), config file (--config-file), or use all servers (--all). - Once running, type
chatto enter interactive chat mode, or use commands likepingorlist-toolsdirectly.
Key features of Model Context Protocol CLI
- Protocol-level communication with an MCP server.
- Dynamic tool, resource, and prompt exploration.
- Support for OpenAI and Ollama providers.
- Default models:
gpt-4o-mini(OpenAI) andllama3.2(Ollama). - Interactive chat mode with tool invocation.
- Configurable via JSON file and command‑line arguments.
Use cases of Model Context Protocol CLI
- Querying data from an MCP‑enabled SQLite server.
- Discovering and inspecting available tools and resources.
- Interacting with multiple MCP servers concurrently (e.g., SQLite + Exa + filesystem).
- Building automated workflows that chain MCP commands.
- Testing and debugging MCP server implementations.
FAQ from Model Context Protocol CLI
What does Model Context Protocol CLI do?
It is a command-line client for MCP servers that allows you to send commands, query resources, and use tools—either interactively or via scripted commands.
What providers and models are supported?
Two providers: OpenAI (default model gpt-4o-mini) and Ollama (default model llama3.2). You can override the model with the --model flag.
How do I install Model Context Protocol CLI?
Clone the repository, install UV (pip install uv), then run uv sync --reinstall in the cloned directory. No additional system dependencies are required beyond Python 3.8+.
What commands are available?
ping, list-tools, list-resources, list-prompts, chat, clear, help,
智能体框架 分类下的更多 MCP 客户端
MCP Agent Graph (MAG)
keta1930MCP Agent Graph (MAG) is an agent development framework for rapidly building agent systems. This project is based on graphs, nodes, and MCP to quickly construct complex Agent systems.
MCP CLI - Model Context Protocol Command Line Interface
chrishayukNovu - Connect your AI agents & products to customers
NovuNovu is the open-source communication layer for AI agents. An agent built on Novu connects to MCP servers like Linear, GitHub, and Notion for its tools, then talks with your users on Slack, Microsoft Teams, WhatsApp, Tel
LangChain.js MCP Adapters
langchain-ai** THIS REPO HAS MOVED TO
n8n-nodes-mcp-client
nerding-ion8n custom node for MCP
评论