mcp-cli

mcp-cli

Lightweight CLI tool for interacting with MCP servers.

MCPDevOpen source
Type
MCP
Open source
Yes
GitHub Stars
★ 1.2k
Source
mcp-github

Overview

mcp-cli is a lightweight command-line tool built on Bun for interacting with MCP (Model Context Protocol) servers. It supports multiple transport protocols (such as stdio and HTTP) and offers rich features like connection pooling and tool filtering. Designed specifically for AI coding agents, it's ideal for scenarios requiring efficient interaction with MCP servers. With simple configuration files and command-line operations, users can easily invoke various tools available on the MCP server.

Capabilities

  • Supports multiple MCP servers
  • Lightweight dependencies, fast startup
  • Single binary executable
  • JSON output for easy pipeline integration
  • Connection pooling to keep connections active
  • Tool filtering to enable/disable specific tools

Use cases

Interacting with MCP serversInvoking tools on MCP serversManaging and configuring MCP serversAutomating script writing

Setup

Requires: API KeyNode 环境
curl -fsSL https://raw.githubusercontent.com/philschmid/mcp-cli/main/install.sh | bash or bun install -g https://github.com/philschmid/mcp-cli

This information was compiled by AI from public sources and may contain inaccuracies — please refer to the source.

FAQ

How to install mcp-cli?

Use curl or bun to install globally.

What transport protocols does mcp-cli support?

Supports stdio and HTTP.

How to configure MCP servers?

Create an mcp_servers.json configuration file.

Related skills