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.2k GitHub stars and was last updated 13d 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 13d ago, with 3 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.
🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!
⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的 AI 舆情监控助手与热点筛选工具!聚合多平台热点 + RSS 订阅,支持关键词精准筛选。AI 智能筛选新闻 + AI 翻译 + AI 分析简报直推手机,也支持接入 MCP 架构,赋能 AI 自然语言对话分析、情感洞察与趋势预测等。支持 Docker ,数据本地/云端自持。集成微信/飞书/钉钉/Telegram/邮件/ntfy/bark/slack 等渠道智能推送。