A command-line interface for interacting with MCP servers
Project description
MCP Hive Proxy
A command-line interface for interacting with MCP servers. This package provides a standalone implementation that doesn't depend on the external mcp package.
Features
- Connect to any MCP server using the SSE protocol
- Ask questions to MCP servers with automatic tool detection
- Manage server configurations with an easy-to-use CLI
- Support for servers with predefined questions
- Automatic question matching for servers that require specific questions
- Store server configurations in ~/.config/mcp_cli/config.json
- Import/export server configurations
Installation
You can install the package directly from PyPI:
pip install mcp-hive-proxy
Or build and install the package from source:
cd /path/to/mcp-hive-proxy
pip install build
python -m build
pip install dist/mcp_hive_proxy-0.6.0-py3-none-any.whl
Usage
Ask a question to an MCP server
# Ask a question to the default server
mcp-hive-proxy ask "What is the weather today?"
# Ask a question to a specific server
mcp-hive-proxy ask "What is the weather today?" --server trilogy-mcp
# Ask a question to a custom URL
mcp-hive-proxy ask "What is the weather today?" --url https://mcp-server.example.com/sse
# List available predefined questions for a server
mcp-hive-proxy ask --list-questions --server trilogy-mcp
Manage server configurations
# List all configured servers
mcp-hive-proxy servers list
# Add a new server
mcp-hive-proxy servers add my-server https://mcp-server.example.com/sse
# Remove a server
mcp-hive-proxy servers remove my-server
# Set the default server
mcp-hive-proxy servers set-default trilogy-mcp
# Export server configurations
mcp-hive-proxy servers export --file servers.json
# Import server configurations
mcp-hive-proxy servers import servers.json
Configuration
The package stores server configurations in ~/.config/mcp_cli/config.json. This file is created automatically with default servers when you first run the tool.
Windsurf Integration
To use mcp-hive-proxy with Windsurf, configure mcp_config.json with "command" and "args" properties instead of "url":
{
"servers": {
"my-server": {
"command": "python3.12 -m mcp_cli.cli",
"args": ["https://mcp-server.example.com/sse"]
}
}
}
This allows Windsurf to spawn mcp-hive-proxy processes to handle SSE connections. Each server requires a separate mcp-hive-proxy instance as one instance can only connect to one endpoint.
Requirements
- Python 3.8 or higher
- httpx
- httpx-sse
- anyio
- pydantic
- pydantic-settings
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 mcp_hive_proxy-0.6.0.tar.gz.
File metadata
- Download URL: mcp_hive_proxy-0.6.0.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18f3e08a02496d665ac042575ebc674acbaddc16845b862b65db2e32381c4f9f
|
|
| MD5 |
46408e8dc5a0ceb973d2681d7710d322
|
|
| BLAKE2b-256 |
928706cd36c74859ae001d76a482e1a11f840501ef7d38eaaa68c1c9bdd9b806
|
File details
Details for the file mcp_hive_proxy-0.6.0-py3-none-any.whl.
File metadata
- Download URL: mcp_hive_proxy-0.6.0-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c085b82a43594fb6976a91755127bbfd379b79e90b9088ce35b8612d61b5a134
|
|
| MD5 |
896d7c6446274f30c64c7078a14c4cfd
|
|
| BLAKE2b-256 |
05f20182e81cb5a63e0856e74a4361815cbd570c64c0acab4e172bde8b5dbe34
|