mcp2cli
Convert any MCP, OpenAPI, or GraphQL server into a CLI without code generation.
- Type
- MCP
- Open source
- Yes
- GitHub Stars
- ★ 2.2k
- Source
- mcp-github
- Repository
- github.com/knowsuchagency/mcp2cli
Overview
mcp2cli is a tool that converts any MCP server, OpenAPI specification, or GraphQL endpoint into a command-line interface (CLI) at runtime, without requiring code generation. It enables AI programming agents (such as Claude Code, Cursor, Codex) to discover and invoke any MCP server or OpenAPI endpoint, and generate new skills from APIs. With mcp2cli, users can easily interact with various APIs, supporting OAuth authentication and sensitive values stored in environment variables.
Capabilities
- ▪Convert MCP servers to CLI
- ▪Convert OpenAPI specifications to CLI
- ▪Convert GraphQL endpoints to CLI
- ▪Support OAuth authentication
- ▪Support sensitive values in environment variables
Use cases
Setup
uv tool install mcp2cli or npx skills add knowsuchagency/mcp2cli --skill mcp2cli
This information was compiled by AI from public sources and may contain inaccuracies — please refer to the source.
FAQ
What protocols does mcp2cli support?
Supports HTTP, SSE, and stdio protocols.
How do I install mcp2cli?
Install via `uv tool install mcp2cli` or `npx` command.
Related skills
gemini-cli
Gemini CLI is an open-source AI agent that brings Gemini's powerful capabilities directly into the terminal.
private-gpt
Provides a complete API layer for local models, supporting RAG, skills, tools, and more.
planning-with-files
File-based persistent planning skill, ideal for AI coding agents and long-running tasks.
scientific-agent-skills
Transform any AI agent into a scientific assistant with 147 ready-to-use research skills.
susi_alexa_skill
A skill that enables question-and-answer interactions between Alexa and Susi AI.
claude-context
Provides code search capabilities for Claude Code, turning the entire codebase into context.