A command-line interface for interacting with MCP servers
Project description
MCP CLI
A command-line interface for interacting with MCP (Model Context Protocol) servers.
Features
- Ask questions to any MCP server directly from the command line
- Manage server configurations with easy add, remove, and list operations
- Set default servers for quick access
- Import and export server configurations
Installation
# From the source directory
pip install -e .
# Or once published
pip install mcp-cli
Usage
Asking Questions
# Ask a question to the default server
mcp-cli ask "What is the best AI tool for coding?"
# Ask a question to a specific server by name
mcp-cli ask --server team-mcp "What tools are being used in this team room?"
# Ask a question to a specific server by URL
mcp-cli ask --url https://mcp-server.example.com/sse "What is the weather today?"
Managing Servers
# List all configured servers
mcp-cli servers list
# Add a new server
mcp-cli servers add my-server https://mcp-server.example.com/sse
# Remove a server
mcp-cli servers remove my-server
# Set the default server
mcp-cli servers set-default tweet-finder-mcp
# Export server configuration
mcp-cli servers export --file servers.json
# Import server configuration
mcp-cli servers import servers.json
Configuration
The CLI stores its configuration in ~/.config/mcp_cli/config.json. This file is created automatically when you first run the CLI, and it contains:
- A list of configured servers with their URLs
- The default server to use when none is specified
Requirements
- Python 3.9 or higher
mcppackage (installed automatically as a dependency)
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hive_mcp-0.1.0.tar.gz
(5.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hive_mcp-0.1.0.tar.gz.
File metadata
- Download URL: hive_mcp-0.1.0.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fcc2d9c6c8164896f26b48979fa9b35dadaf94c1c408c75989960b6ee0a94bbe
|
|
| MD5 |
5eecf585981bf3733b72def8c053341a
|
|
| BLAKE2b-256 |
d8467633c099823b4a352476a7223baf84c0c6b555d00f5b1f4a3dff9a33d4bf
|
File details
Details for the file hive_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: hive_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
afd1fde6a53ac01f48ef2f26b91a3f1d32d7f6e2cf20e3199f121328c8e91a06
|
|
| MD5 |
84ca836b08267c262d4e52d49a9ed00e
|
|
| BLAKE2b-256 |
2f54c38c562fb03fa6825f595d17b0c1a41a1dae6242a26c9558f74c7527a7b4
|