Turn any MCP, OpenAPI, or GraphQL server into a CLI — at runtime, with zero codegen
mcp2cli is a Python command-line tool that converts MCP servers, OpenAPI specs, and GraphQL endpoints into callable CLI commands at runtime, without generating any code. It supports three connection modes: HTTP/SSE or stdio for MCP servers, local or remote OpenAPI specs in JSON or YAML, and GraphQL endpoints via introspection. It integrates directly with Claude Code through an installable skill (via skills.sh), letting the agent discover and invoke tools from any supported API type. A standout feature is token efficiency: by exposing API tools as CLI subcommands rather than feeding full schema definitions to the model on every turn, the project claims a 96 to 99 percent reduction in tokens consumed by tool schemas. OAuth handling covers both browser-based PKCE flows and machine-to-machine client credentials, with tokens cached in ~/.cache/mcp2cli/oauth/. A bake mode lets users persist connection settings and auth flags into named configurations, avoiding repetitive flags. Developers building or testing agents that interact with external APIs are the primary audience.
- ✓Open-source license (MIT)
- ✓Actively maintained (<30d)
- ✓Healthy fork ratio
- ✓Clear description
- ✓Topics declared
- ✓Documented (README)
claude mcp add mcp2cli -- uvx mcp2cli{
"mcpServers": {
"mcp2cli": {
"command": "uvx",
"args": ["mcp2cli"]
}
}
}MCP Servers overview
What people ask about mcp2cli
What is knowsuchagency/mcp2cli?
+
knowsuchagency/mcp2cli is mcp servers for the Claude AI ecosystem. Turn any MCP, OpenAPI, or GraphQL server into a CLI — at runtime, with zero codegen It has 2.3k GitHub stars and was last updated 28d ago.
How do I install mcp2cli?
+
You can install mcp2cli by cloning the repository (https://github.com/knowsuchagency/mcp2cli) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.
Is knowsuchagency/mcp2cli safe to use?
+
Our security agent has analyzed knowsuchagency/mcp2cli and assigned a Trust Score of 100/100 (tier: Verified). See the full breakdown of passed checks and flags on this page.
Who maintains knowsuchagency/mcp2cli?
+
knowsuchagency/mcp2cli is maintained by knowsuchagency. The last recorded GitHub activity is from 28d ago, with 8 open issues.
Are there alternatives to mcp2cli?
+
Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.
Deploy mcp2cli to your cloud
Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.
Maintain this repo? Add a badge to your README
Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.
[](https://claudewave.com/repo/knowsuchagency-mcp2cli)<a href="https://claudewave.com/repo/knowsuchagency-mcp2cli"><img src="https://claudewave.com/api/badge/knowsuchagency-mcp2cli" alt="Featured on ClaudeWave: knowsuchagency/mcp2cli" width="320" height="64" /></a>More MCP Servers
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
The fastest path to AI-powered full stack observability, even for lean teams.
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface
🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!