mcp2cli

Run a single CLI to interact with MCP servers, OpenAPI specs, or GraphQL endpoints.

2.3k|172|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/knowsuchagency/mcp2cli --skill mcp2cli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mcp2cli
Source: https://github.com/knowsuchagency/mcp2cli/tree/main/skills/mcp2cli
Command: npx skills add https://github.com/knowsuchagency/mcp2cli --skill mcp2cli

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

API integration often requires multiple tools and glue code to talk to MCP servers, OpenAPI specs, or GraphQL endpoints. This skill provides a single runtime CLI that enables discovery, invocation, and automation without code generation.

Core Features & Use Cases

  • Discover available commands with --list and filter with --search across MCP, OpenAPI, and GraphQL sources.
  • Inspect a specific command with <command> --help and execute it with appropriate flags.
  • OpenAPI and GraphQL modes support remote or local specs and endpoints; MCP supports HTTP/SSE and stdio transports; authentication and token caching are included to streamline workflows.

Quick Start

Install mcp2cli and run a basic discovery to see available tools.

Frequently Asked Questions about mcp2cli

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

FAQPage Schema
How do I interact with MCP servers and OpenAPI specs from a single CLI?

You can interact with MCP servers and OpenAPI specs from a single CLI by using mcp2cli. It enables runtime discovery and invocation across MCP, OpenAPI, and GraphQL sources without requiring code generation.

Can I execute commands against a GraphQL endpoint without generating code?

Yes, you can execute commands against a GraphQL endpoint without generating code by using the runtime CLI. It supports remote or local GraphQL endpoints, allowing direct command invocation with appropriate flags.

Does mcp2cli support authentication and token caching for API workflows?

mcp2cli does support authentication and token caching for API workflows. It includes built-in authentication flows and caching to streamline repeatable usage across MCP, OpenAPI, and GraphQL integrations.

How do I discover available commands across different API sources?

To discover available commands across different API sources, run the CLI with the --list flag. You can further filter and inspect specific commands using --search and <command> --help across MCP, OpenAPI, and GraphQL modes.

What transport modes are supported for connecting to MCP servers?

Supported transport modes for connecting to MCP servers include HTTP/SSE and standard input/output (stdio). The CLI provides dedicated source modes like --mcp and --mcp-stdio to establish these connections.

Is code generation required to automate API exploration and command invocation?

No, code generation is not required to automate API exploration and command invocation. The runtime CLI handles discovery and execution dynamically, utilizing baked-tool configurations for repeatable usage instead of static code generation.