# knowsuchagency/mcp2cli

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

Repository: https://github.com/knowsuchagency/mcp2cli
Canonical: https://ross.abutalabs.com/products/mcp2cli
Homepage: https://pypi.org/project/mcp2cli/
Language: Python
License: MIT
License Family: permissive
Topics: ai, cli, graphql, mcp, openapi
Last push: 2026-08-19T07:40:55+00:00

## Health v2 (maintenance only)
Score: 59/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 98, release rhythm 35, longevity 12
- inputs: {"age_days": 177, "days_push": 14, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, young
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2370, forks 171 (observed 2026-08-28T04:06:41.768067+00:00)

## What it is
mcp2cli is a Python CLI tool that turns any MCP server, OpenAPI spec, or GraphQL endpoint into a command-line interface at runtime with zero code generation. It reduces token waste in AI agent workflows and supports OAuth authentication across all modes.

## Use cases
- interact with an mcp server from the command line
- call openapi endpoints without writing client code
- query graphql apis via cli
- reduce token usage when ai agents call tools
- generate agent skills from api specs
- authenticate to oauth-protected apis from the terminal

## When to choose
- you want to call MCP, OpenAPI, or GraphQL APIs from the shell without codegen
- you're building AI agent workflows and want to cut tool-schema token overhead
- you need OAuth support (PKCE or client credentials) for CLI API access

## When to avoid
- you need a fully typed, compiled SDK for a specific API
- you only work with APIs that have no MCP/OpenAPI/GraphQL interface
- you need a GUI or interactive API explorer rather than a CLI

## Facets
- artifact type: cli-tool
- maturity: active
- function: cli, mcp, http-client, api-framework, auth, developer-tools
- domain: developer-tools, apis, large-language-models
- platform: cli, python, cross-platform
- tags: mcp-client, openapi, graphql, zero-codegen, token-efficiency, oauth, ai-agent-skills, command-line, ai-agents

## Member repositories
- knowsuchagency/mcp2cli (main) score 59

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:41.768067+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:35:25.264731+00:00, confidence not recorded.
  - readme: https://github.com/knowsuchagency/mcp2cli (fetched 2026-08-28T04:06:41.768067+00:00, sha 4164a9bb0e29)
  - homepage: https://pypi.org/project/mcp2cli/ (fetched 2026-08-29T10:16:19.813508+00:00, sha 4b4e8fead74a)
  - registry_pypi: https://pypi.org/pypi/mcp2cli/json (fetched 2026-08-29T10:16:19.815988+00:00, sha d4d32cf37a77)
- Data as of 2026-08-30T08:39:29.467469+00:00.
