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.1.tar.gz (6.6 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.1-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hive_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 6.6 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.1.tar.gz
Algorithm Hash digest
SHA256 9cd4b950c48fd85201c6e679ecfd0b2b1998dc3707be980464b9a49ac3a1363c
MD5 6b3770936f3ad97bb53865bd08e9d063
BLAKE2b-256 50105604935faf0b8fb2586552c2d6f27397607611edac8d7e6420bbf5ea204f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hive_mcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.3 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b345b16f09a88ffa1a8e390b1c5ffa957aeae87bad68a27baa9f13da1b4793fa
MD5 fefba767f6239e9c966245289e855c4a
BLAKE2b-256 956637c3a9d822dd02ebb71e2e1d2cabd40343ba8d1423fe3db426505a998fd1

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