mcp-cli

A lightweight CLI to discover, inspect and call MCP server tools straight from the shell

  • 1,282 ★ on the repository
  • Last commit
  • MIT
CLI

Extended access

Why this level

  • Spawns the MCP servers listed in the config as local processes
  • Calls their tools, which may read files, access the network or modify external systems
All reasons and checks

philschmid/mcp-cli

Install

In your terminal, with SkillFoxx CLI

npx skillfoxx add cli/mcp-cli

Detects the agents on your machine, shows the access level and pins the version.

Other ways to install

Access and checks

How we review

Extended accessThe tool runs code or makes network calls and only reads external data.

  • Spawns the MCP servers listed in the config as local processes
  • Calls their tools, which may read files, access the network or modify external systems

This is third-party code. Review the repository files before installing.

What it does

This Bun-based utility talks to MCP servers over the stdio and HTTP transports. It lists servers and their tools, searches tools by pattern, prints the schema of a specific tool and calls it with JSON arguments or from standard input. Call results are returned as JSON on stdout and errors go to stderr, so the output pipes cleanly into jq. Configuration comes from an mcp_servers.json file compatible with Claude Desktop, Gemini and VS Code, and a background daemon keeps connections warm and drops them after idle. There is per-server tool filtering. The utility is meant to be used from scripts and by coding agents.

Who it is for. For developers and coding agents that need to call MCP server tools from the terminal and scripts.

Good fit when

  • You need to call an MCP server tool from a script or pipeline
  • You need a quick look at a server's tools and their schemas
  • You want to give a coding agent access to MCP servers through the shell

Not a fit when

  • You connect MCP servers only through a GUI client with built-in config
  • You cannot install Bun or the compiled binary

Example request

Using mcp-cli, list the filesystem server tools and call read_file on the README

Limitations

Installing and running needs Bun or a binary compiled from it. An mcp_servers.json config file is required, and you connect and configure the MCP servers yourself. The utility is a client, so its capabilities are bounded by what the connected servers can do.

How to disable. Remove the installed binary or uninstall the global package added via bun install -g.

FAQ

Which transports are supported?

Servers over stdio and over HTTP.

In what form do call results arrive?

As JSON on stdout, so it pipes conveniently into jq and other tools.

Discussion

No questions or reviews yet.

CLI tools
Official

A command-line debugger for MCP servers from Giant Swarm: a REPL for tools, OAuth 2.1 and an MCP server mode for Cursor

CLIExtended access38Repository stars

An MCP server that lets an agent read files, search code and run commands in a workspace

MCP serverBroad access1.2KRepository stars

Command-line inspector for HTTP MCP servers: lists tools, schemas, prompts and resources and calls any tool by hand.

CLIExtended access134Repository stars

A CLI and TypeScript runtime for calling MCP servers from a terminal, scripts and generated typed clients

CLIExtended access5.1KRepository stars

add-mcp writes an MCP server into the configs of 25 agents with one command: Claude Code, Codex, Cursor, VS Code, Zed and more

CLIExtended access321Repository stars
Official

A desktop app with a local MCP gateway: set servers up once and Cursor, Claude and VS Code connect through a single URL

MCP serverBroad access27Repository stars

README in short

The README describes a lightweight Bun CLI for working with MCP servers over stdio and HTTP. Its commands list servers and tools, search tools by pattern, show a tool's schema and call it with JSON arguments or from standard input. JSON output on stdout is aimed at jq pipelines and command chaining, with examples of complex scenarios. The mcp_servers.json config is compatible with Claude Desktop, Gemini and VS Code, and there is tool filtering, server instruction display and a background daemon with connection pooling. It installs via install.sh or bun install -g and compiles into a single binary. MIT licensed.

README badge

Report a problem