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
Metadata
Release files for dschwartz-mcp-cli 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dschwartz_mcp_cli-0.1.0.tar.gz | 5.9 kB | Without provenance | Details for dschwartz_mcp_cli-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dschwartz_mcp_cli-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for dschwartz_mcp_cli-0.1.0-py3-none-any.whl |
Total release size: 13.3 kB
Release files / dschwartz_mcp_cli-0.1.0.tar.gz
| Download URL | dschwartz_mcp_cli-0.1.0.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
38783d03a802eeee412471ed9b0a9c98a3bcea3994213f375d5db9fa175525dc
|
|
BLAKE2b-256 checksum How to use checksums |
320fd98879c7595696739a62a5be40a7332b0e73f813831987b6da762b44802d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.7
|
Release files / dschwartz_mcp_cli-0.1.0-py3-none-any.whl
| Download URL | dschwartz_mcp_cli-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cc77af563dae83fe466868a5248ca9b9c232a79a46ca8924b0dbd8570626bdb7
|
|
BLAKE2b-256 checksum How to use checksums |
07b661fddbdffe347a3d42c1cf7af3c3de9e00faa52de13d8adb8151cc643177
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.7
|
Security for dschwartz-mcp-cli 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.