// devtools · knowsuchagency/mcp2cli

mcp2cli

mcp2cli — проект с открытым исходным кодом из категории «Инструменты разработчика» от knowsuchagency (knowsuchagency/mcp2cli на GitHub). У него 2 416 звёзд на GitHub и 179 форков, он распространяется по лицензии MIT и последний раз обновлялся на GitHub 12 сентября 2026.

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

★ 2,4 тыс. звёзд⑂ 179 форковMITобновлено сент. 2026
▦ визуал — в README этого проекта нет встраиваемого скриншота,
поэтому здесь заглушка. Руководство ниже в любом случае полное.
// факты о проекте

Факты о проекте

Репозиторий
knowsuchagency/mcp2cli
Звёзды GitHub
2 416
Форки
179
Лицензия
MIT
Последнее обновление на GitHub
12 сентября 2026
Тип страницы
Полное руководство по установке
Официальный сайт
Official site
// как это работает

Как это работает

  1. Clarify your goal

    Pick your source: an MCP server (HTTP/SSE or stdio), an OpenAPI spec URL/file, or a GraphQL endpoint.

  2. Get mcp2cli

    Run it zero-install with uvx, or install it globally with uv tool.

  3. Connect and explore

    Run with --list (and --search) against your source, adding --oauth or --auth-header if the API needs authentication.

  4. Call and bake

    Call a tool/operation as a subcommand; if you'll reuse it, bake the connection into a named tool and call it with @name.

// возможности

Почему его любят

Three source types

--mcp (HTTP/SSE), --mcp-stdio, --spec (OpenAPI JSON/YAML, local or remote) and --graphql modes all expose commands the same way.

Zero codegen

Commands are generated at runtime from the live schema — no client SDK to generate, build or keep in sync.

Built-in OAuth

Authorization-code + PKCE and client-credentials flows across all modes, with token caching/refresh and a manual-callback mode for headless hosts.

Secret hygiene

Auth values support env: and file: prefixes so secrets don't appear in process listings; baked configs mask known credential values.

Bake mode

Save a source, filters (--include/--exclude/--methods) and cache TTL as a named tool in ~/.config/mcp2cli/baked.json, even installable as a wrapper command.

Agent-friendly output

--json guarantees valid JSON on stdout, TOON output trims tokens on large arrays, usage-aware ranking keeps --list short, and specs are cached with a configurable TTL.

Advertisement
// запустите сами

Запустите сами

  1. Clone the repo

    Clone mcp2cli if you want the source; the normal path is uvx/uv in step 2.

    git clone https://github.com/knowsuchagency/mcp2cli.git
    cd mcp2cli
  2. Run or install

    Run directly without installing, or install it globally.

    uvx mcp2cli --help
    # or: uv tool install mcp2cli
  3. List and call tools

    List an MCP server's tools, then call one as a subcommand (OpenAPI and GraphQL sources work the same way with --spec / --graphql).

    mcp2cli --mcp https://mcp.example.com/sse --list
    mcp2cli --mcp https://mcp.example.com/sse search --query "test"
// сценарии использования

Что можно создать

Advertisement
// вопросы и ответы

Вопросы и ответы

Who maintains mcp2cli?

knowsuchagency maintains it; the package is on PyPI as mcp2cli.

Is it free?

Yes, MIT-licensed.

Does it need a paid API key?

Only whatever the target API itself requires — mcp2cli adds auth-header and OAuth support to supply it, including from env vars or files.

How does it compare to an MCP gateway like MetaMCP?

A gateway hosts aggregated servers for clients to connect to. mcp2cli is the opposite direction: it consumes MCP/OpenAPI/GraphQL sources and presents them as a local CLI for humans, scripts and agents.

How do I get started?

uvx mcp2cli --help, then mcp2cli --spec <openapi.json URL> --list and call an operation.

// продолжить изучение

Похожие инструменты

Инструменты разработчика

OpenCLI

Turn any website into a CLI — and let AI agents drive your already-logged-in browser

★ 29,9 тыс. звёздApache-2.0
Смотреть руководство →
Инструменты разработчика

ripwire

The ripgrep of AI context — a zero-dependency C++23 CLI + MCP server that maps your repo for coding agents

★ 2,4 тыс. звёздApache-2.0
Смотреть руководство →
Инструменты разработчика

agents-cli

The CLI and skills that turn any coding assistant into an expert at creating, evaluating, and deploying AI agents on Google Cloud.

★ 6,0 тыс. звёздApache-2.0
Смотреть руководство →
Инструменты разработчика

CodeGraphContext

An MCP server plus a CLI tool that indexes local code into a graph database to provide context to AI assistants.

★ 4,2 тыс. звёздMIT
Смотреть руководство →
Инструменты разработчика

mcp-proxy

A bridge between Streamable HTTP / SSE and stdio MCP transports — connect any client to any server

★ 2,8 тыс. звёздMIT
Смотреть руководство →
Инструменты разработчика

gitdiagram

Turn any GitHub repo into an interactive architecture diagram - just swap 'hub' for 'diagram'

★ 18,0 тыс. звёздMIT
Смотреть руководство →
// альтернативы

Альтернативы: Инструменты разработчика

Другие проекты из категории «Инструменты разработчика» с наибольшим числом звёзд в каталоге LibreAI — реалистичный список альтернатив, если mcp2cli вам не подходит.

// ещё в категории devtools

Больше проектов: Инструменты разработчика

Соседние проекты из категории «Инструменты разработчика» в каталоге, ближайшие по числу звёзд к mcp2cli — продолжайте изучать полку по обе стороны от него.

Получить mcp2cli

Бесплатно и открыто — забирайте исходный код, ставьте звезду репозиторию и начинайте создавать.