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.4.tar.gz (6.9 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.4-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hive_mcp-0.1.4.tar.gz
  • Upload date:
  • Size: 6.9 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.4.tar.gz
Algorithm Hash digest
SHA256 cdc75e9fd571d9b3c9f4f2c8b49a31af42775e17c45278ece267d1e2651fbdf1
MD5 2a17469344dd32cffa6d39bf55787293
BLAKE2b-256 a4ac41bb693acf93f9ff016dac9d3af00529e737d224a67904c5d4efe038854e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hive_mcp-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 8.6 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8b2781dad647ff2771f2aa5d4ee5829383ce07e8afe24f57ee89173e508289fe
MD5 9ceda73093ea9790d0830ac27fd7df69
BLAKE2b-256 32c854a6c8762f9c645c9cc6b8b8bf8b82b73c293886462fc82b39bf8417f2b9

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