mcp2cli
Installation
Summary
CLI wrapper for MCP servers, OpenAPI specs, and GraphQL endpoints without code generation.
- Supports three source types: MCP over HTTP/stdio, OpenAPI (JSON/YAML, local or remote), and GraphQL endpoints
- Dynamic command discovery with
--listand--searchfiltering; inspect any command with--helpbefore execution - Built-in authentication: API key headers, OAuth (authorization code + PKCE), environment variables, and file-based secrets
- Output control via
--jqfor JSON filtering,--headfor truncation,--toonfor token-efficient LLM encoding, and--prettyfor readability - Bake mode saves connection settings as named tools, eliminating flag repetition across calls
SKILL.md
mcp2cli
Turn any MCP server, OpenAPI spec, or GraphQL endpoint into a CLI at runtime. No codegen.
Install
# Run directly (no install needed)
uvx mcp2cli --help
# Or install
pip install mcp2cli