aicoolies logo

mcp2cli

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

Share
free
Visit Website →

mcp2cli turns MCP servers, OpenAPI specs, and GraphQL endpoints into standard CLIs at runtime — no codegen, no schema bloat. Tools and arguments load only when requested via --list and --help flags, cutting up to 96–99% of the tokens that native MCP integrations waste on schema preloading. Works with Claude Code, Cursor, Codex, and any agent that can call shell commands, and ships with OAuth, stdio/HTTP/SSE transports, and a bake mode for reusable connections.

MCP servers, OpenAPI specs, and GraphQL endpoints all share the same problem when wired into agentic workflows: every session loads full schemas upfront, and those schemas can consume thousands of tokens before any real work begins. In long Claude Code, Cursor, or Codex sessions with multiple servers configured, that overhead compounds across every turn — even when the agent only ever calls one or two tools. mcp2cli turns any of these surfaces into a standard command-line interface at runtime, with no code generation and no persistent server. Tools and arguments load on demand through `--list` and `--help` flags, so the agent fetches only the schema fragments it actually uses, only when it needs them.

The savings claim is concrete: 96 to 99 percent fewer tokens compared to native MCP tool calls in typical workloads. mcp2cli supports MCP over HTTP, SSE, and stdio transports, OpenAPI specs as local files or remote URLs, and GraphQL endpoints with introspection-driven query generation. OAuth is built in across all three modes — authorization code with PKCE for browser logins, client credentials for machine-to-machine flows, and automatic token refresh persisted under `~/.cache/mcp2cli/oauth/`. A `bake` subcommand lets developers freeze a configured connection into a named alias (`mcp2cli @petstore list-pets`), and `bake install` writes a standalone wrapper into `~/.local/bin` so an agent can call the baked tool as if it were a native binary.

mcp2cli surfaced on Hacker News in May 2026 with 144 points and over a hundred comments, driven largely by the "MCP tax" framing that landed with teams already tracking per-session token costs. The project is MIT licensed, written in Python, distributed via PyPI (`uvx mcp2cli` or `uv tool install mcp2cli`), and ships an installable AI agent skill that teaches Claude Code, Cursor, and Codex how to invoke it. With more than 2,100 GitHub stars and active commits in the past week, it represents one of the first production-ready answers to a problem that grows worse as MCP adoption deepens — and as agent sessions get longer, token-efficient tool invocation is likely to become a default expectation rather than an optimization.

Pricing

Free and open source (MIT). No hosted service; runs locally as a CLI wrapper.

Platforms

CLI distributed via PyPI (uvx / uv tool install). Works on macOS, Linux, and Windows. Integrates with Claude Code, Cursor, Codex, and any agent that can invoke shell commands.

Categories

Tags

Use Cases

Alternatives

Related Tools

Superserve

Open-source Firecracker sandboxes for long-running AI agents

Superserve is an open-source sandbox infrastructure layer for AI agents that need durable computers instead of short-lived shells. It runs isolated Firecracker microVMs, supports pause, resume, snapshot, fork, preview URLs, MCP connectivity, SDK/API control, Docker workloads, and self-hosting, while the hosted service adds pay-as-you-go agent sandboxes for teams.

open-sourceOpen Source

Linear MCP Server

Official authenticated remote MCP endpoint for Linear issues, projects, comments, and coding-agent workflows.

Linear MCP Server is Linear’s official authenticated remote MCP endpoint for agent access to issues, projects, and comments. It gives Claude, Codex, Cursor, VS Code, Windsurf, Zed, and other clients a centrally hosted way to find, create, and update Linear work items through OAuth-backed MCP without maintaining a local connector or brittle API glue.

freemiumTelemetry

Slack MCP Server

Official Slack MCP server for approved workspace search, messaging, canvas, and user-context actions.

Slack MCP Server is Slack’s official remote MCP layer for giving approved AI clients workspace context and controlled actions. It lets agents search messages, files, users, and channels, draft or send messages, read threads, manage canvases, and authenticate through Slack OAuth while workspace admins approve integrations and normal Slack rate limits still apply.

freemiumTelemetry

Figma MCP Server

Official remote MCP server for design-to-code and write-to-canvas Figma workflows.

Figma MCP Server is Figma’s official remote Model Context Protocol surface for design-to-code agents. It gives supported clients structured design context, variables, components, selected-frame code context, Code Connect mappings, and beta write-to-canvas tools for creating or updating native Figma frames from an MCP client while keeping the workflow tied to Figma files.

freemiumTelemetry

Executor

MCP gateway and integration catalog for AI agents

Executor is an MIT-licensed integration layer and MCP gateway for AI agents. It gives Claude Code, Cursor, Codex, and other MCP-speaking clients one endpoint for connected OpenAPI specs, GraphQL APIs, MCP servers, Google Discovery sources, and custom JavaScript tools, with local, cloud, and self-hosted deployment options for teams centralizing tool access.

open-sourceOpen SourceTelemetry

Talk to Figma MCP

Read/write MCP bridge between AI coding agents and Figma

Talk to Figma MCP is an MIT-licensed bridge from Grab that connects Cursor, Claude Code, and other MCP-capable agents to Figma through a local MCP server, WebSocket bridge, and Figma plugin. Unlike read-only context servers, it can inspect selections, create or modify nodes, update text in bulk, and automate design operations, so teams should review permissions before enabling write access.

open-sourceOpen SourceTelemetry

Comparisons