Skill Detail

Turn an MCP, OpenAPI, or GraphQL endpoint into a disposable CLI for shell automation

<p>Generate a shell-ready CLI from an MCP server, OpenAPI spec, or GraphQL endpoint so an agent can discover commands and call tools immediately without hand-written wrappers.</p>

Developer ToolsMulti-Framework

<p>Generate a shell-ready CLI from an MCP server, OpenAPI spec, or GraphQL endpoint so an agent can discover commands and call tools immediately without hand-written wrappers.</p>

Developer Tools Multi-Framework Published
INSTALL WITH ANY AGENT
npx skills add agentskillexchange/skills --skill turn-mcp-openapi-or-graphql-endpoint-into-disposable-cli-for-shell-automation Copy
Tools required
Python with uv or uvx, network access to the target MCP/OpenAPI/GraphQL endpoint, and any required auth headers or OAuth credentials for that endpoint.
Install & setup
<p>Run <code>uvx mcp2cli –help</code> for an ephemeral install, or <code>uv tool install mcp2cli</code> for a persistent global install. Then point it at an MCP server with <code>–mcp</code>, an OpenAPI spec with <code>–spec</code>, or a GraphQL endpoint with <code>–graphql</code>, use <code>–list</code> to discover generated subcommands, and call the command you need with the same connection and auth flags.</p>
Author
Knowsuch Agency
Publisher
Company

Use mcp2cli when an agent needs to inspect or call an existing MCP server, OpenAPI spec, or GraphQL endpoint from the shell right away. It discovers commands at runtime, handles auth patterns including headers and OAuth, and gives the agent a small CLI surface it can script, retry, and pipe through other terminal tools.

This is skill-shaped because the job is narrow and repeatable: adapt an already-existing endpoint into a temporary command-line interface for shell-first automation. It is not a generic API framework listing, SDK generator card, server-hosting product, or long-lived integration platform entry. Invoke it when the blocker is missing CLI ergonomics around an existing endpoint, not when you need to design the API, publish a server, or build a permanent client library.