Skip to main content

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
  • mcp package (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.8.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hive_mcp-0.1.8-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file hive_mcp-0.1.8.tar.gz.

File metadata

  • Download URL: hive_mcp-0.1.8.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.7

File hashes

Hashes for hive_mcp-0.1.8.tar.gz
Algorithm Hash digest
SHA256 43105e30d48d3657d96ed1569ae5f3087d1ea294c424c3c8c8f7818df9e380b4
MD5 6bd0761b1a7974117b9e244d0802afa9
BLAKE2b-256 bc550ed61d9d0782521e4497ce7abc88ed3023dc6104551bad0f74dcaa283a20

See more details on using hashes here.

File details

Details for the file hive_mcp-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: hive_mcp-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.7

File hashes

Hashes for hive_mcp-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 655ffeffa0dfb9a7da611dc8ea30f5977d49fbcc293b3c17bb72eaea124460d1
MD5 c1389bca90664e8339970fbd74d96ff4
BLAKE2b-256 b03ddc1e274adb8603c82e276d74836e0e6147e481e571a89092441cc2d9429a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page