use-mcp2cli

Convert MCP servers, OpenAPI, and GraphQL schemas into runnable CLI commands.

Updated Mar 28, 2026
One-click install
npx skills add https://github.com/skaile-ai/ai-assets --skill use-mcp2cli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: use-mcp2cli
Source: https://github.com/skaile-ai/ai-assets/tree/main/use/skills/use-mcp2cli
Command: npx skills add https://github.com/skaile-ai/ai-assets --skill use-mcp2cli

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

MCP servers, OpenAPI specs, and GraphQL endpoints often require verbose tooling and heavy clients to interact with programmatically. mcp2cli provides a lightweight CLI adapter that dynamically introspects schemas and generates compact, executable commands at runtime without code generation.

Core Features & Use Cases

  • Interact with MCP servers: list available tools, execute tools, and pipe results through standard CLI workflows.
  • OpenAPI and GraphQL support: enumerate endpoints and perform requests with concise, parameterized commands.
  • Bake mode for reuse: save connection configs and reuse them across sessions to streamline agent workflows.

Quick Start

Install or run mcp2cli using uvx for zero-install usage, or install it with uv tool install, then list tools from a server with uvx mcp2cli --mcp https://mcp.example.com/sse --list.

Frequently Asked Questions about use-mcp2cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I turn an OpenAPI spec into CLI commands without code generation?

You can turn an OpenAPI spec into CLI commands by using mcp2cli to dynamically introspect the schema at runtime, generating compact, executable commands without requiring static code generation.

Can I interact with MCP servers and list available tools from the command line?

Yes, you can interact with MCP servers from the command line by running mcp2cli to list available tools, execute them, and pipe results through standard CLI workflows.

What's the best way to execute GraphQL endpoints as parameterized CLI commands?

The best way to execute GraphQL endpoints as CLI commands is using mcp2cli, which dynamically enumerates endpoints and performs requests with concise, parameterized commands at runtime.

Do I need to install mcp2cli to use it, or can I run it without installation?

You do not need to install mcp2cli to use it, as it supports zero-install usage through uvx. Alternatively, you can install it persistently using uv tool install.

How does bake mode work for reusing API and MCP server configurations?

Bake mode works by saving connection configurations for MCP servers, OpenAPI, and GraphQL endpoints, allowing you to reuse them across sessions to streamline agent workflows.

Why does mcp2cli generate token-efficient output from API schemas?

mcp2cli generates token-efficient output to reduce verbosity when interacting with MCP servers, OpenAPI specs, and GraphQL endpoints, providing a lightweight CLI adapter alternative to heavy clients.