MCP Directory
Back

mcp2cli

by knowsuchagency · Python · ★ 2,073

Turn any MCP, OpenAPI, or GraphQL server into a CLI — at runtime, with zero codegen

#ai#cli#graphql#mcp#openapi

Install

pip install git+https://github.com/knowsuchagency/mcp2cli.git

Claude Desktop config

Add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "mcp2cli": {
      "command": "uvx",
      "args": [
        "git+https://github.com/knowsuchagency/mcp2cli.git"
      ]
    }
  }
}

From the README

mcp2cli Turn any MCP server, OpenAPI spec, or GraphQL endpoint into a CLI — at runtime, with zero codegen. Save 96–99% of the tokens wasted on tool schemas every turn. Read the full writeup → mcp2cli ships with an installable [skill](https://skills.sh) that teaches AI coding agents (Claude Code, Cursor, Codex) how to use it. Once installed, your agent can discover and call any MCP server or OpenAPI endpoint — and even generate new skills from APIs. After installing, try prompts like: - — interact with an MCP server - — generate a skill from an API implies and works across all mod…
Read full README on GitHub →

💡 Need a managed MCP host?

Try Claude Pro for the smoothest MCP experience, or browse our cloud-hosted servers.

Related ai & ml servers