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 --list and --search filtering; inspect any command with --help before execution
  • Built-in authentication: API key headers, OAuth (authorization code + PKCE), environment variables, and file-based secrets
  • Output control via --jq for JSON filtering, --head for truncation, --toon for token-efficient LLM encoding, and --pretty for 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

Core Workflow

Installs
940
GitHub Stars
2.1K
First Seen
Mar 9, 2026