Skip to main content
ClaudeWave
EN, English
knowsuchagency / MCP Servers

mcp2cli

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

  • 2.4k stars
  • 183 forks
  • 3 open issues
  • Language: Python
  • License: MIT
  • updated

Install

local · uvx (python)
Claude Code CLI
claude mcp add mcp2cli -- uvx mcp2cli
  1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
  2. Replace any <placeholder> values with your API keys or paths.
  3. Restart Claude. The MCP server and its tools appear automatically.

Package name inferred from the repository name. Verify it exists on PyPI, or clone https://github.com/knowsuchagency/mcp2cli and follow its README.

Editor's note

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.

README

MCP Servers overview

README preview not available. Visit the repo on GitHub for full documentation.
Topics
aicligraphqlmcpopenapi
Frequently asked

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.4k GitHub stars and its last recorded update is dated 2026-10-12.

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 97/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 dated 2026-10-12, 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.