{"repo":"knowsuchagency/mcp2cli","free":true,"listed":false,"github":"https://github.com/knowsuchagency/mcp2cli","clone":"git clone https://github.com/knowsuchagency/mcp2cli.git","description":"Turn any MCP, OpenAPI, or GraphQL server into a CLI — at runtime, with zero codegen","language":"Python","stars":2358,"topics":["ai","cli","graphql","mcp","openapi"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"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 → Install AI Agent Skill mcp2cli ships with an installable skill 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: - mcp2cli --mcp https://mcp.example.com/sse — interact with an MCP server - mcp2cli create a skill for https://api.example.com/openapi.json — generate a skill from an API Usage MCP HTTP/SSE mode --search implies --list and works across all modes ( --mcp , --spec , --graphql , --mcp-stdio ). OAuth authentication APIs that require OAuth are supported out of the box — across MCP, OpenAPI, and GraphQL modes. mcp2cli handles token acquisition, caching, and refresh automatically. Tokens are persisted in /.cache/mcp2cli/oauth/ so subsequent calls reuse existing tokens and refresh automatically when they expire. Headless hosts — no browser on the machine running mcp2cli The default authorization-code flow starts a callback server on 127.0.0.1 , which only works when the browser runs on the same machine. On a VPS over SSH or in a container, add --oauth-manual-callback : mcp2cli prints the authorization URL instead of opening a browser, and reads the redirect back from stdin. Open the printed URL in a br","default_branch":null,"files":null,"tree":[],"storefront":"/r/knowsuchagency","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/knowsuchagency/mcp2cli/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}