Mcp2cli — Development skill for Claude Code
MCP -> CLI + SKILLs.
How to install Mcp2cli
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open makabakaxy/mcp2cli and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Mcp2cli does
MCP -> CLI + SKILLs. Maintain SKILL pararllel with MCP Server.
Alternatives in Development
- Storybloq — Cross-session context for Claude Code 696 ★
- Bm Doctor — Diagnose and recover basemind when it isn't working (MCP tools missing/erroring, "no index", dead server) — ru 94 ★
- Vesalius — A map of your codebase for Claude Code: an on-device code graph with an MCP server, a CLI, a Mac app and a VS 68 ★
README
mcp2cli/mcp2skill
Also known as: **mcp2skill** · **mcp-to-cli** · **mcp-to-skill** · **mcpcli** Convert MCP servers into CLI and Agent SKILLs.
Why
For example, install [zereight/gitlab-mcp](https://github.com/zereight/gitlab-mcp) — it exposes **122 tools** across 14 categories (merge requests, issues, pipelines, wikis, etc.). Every tool schema gets injected into your AI conversation context on every request. We measured this directly against the Claude API:
| Per-request input tokens | Before (raw MCP) | After (mcp2cli) |
|---|---|---|
| Your message | 20 | 20 |
| Tool definitions (122 tools) | 27,969 | — |
| Skill file (1 file) | — | ~800 |
| Total | 27,989 | ~820 |
| Reduction | ~97% |
After `mcp2cli convert`, your AI agent stops seeing 122 tool definitions. Instead, it reads one small skill file, and calls CLI commands like `mcp2cli gitlab mr create --project-id 123 --title "Fix bug"` to get the job done.
Beyond token savings, some projects maintain both a CLI and an MCP server in parallel (e.g. the GitLab MCP server vs. the `glab` CLI). Keeping two interfaces in sync is a maintenance burden and inevitably leads to feature drift. mcp2cli eliminates the need — one MCP server, one generated CLI, always consistent.
Quick Start
pip install mcp-to-cli
If you already have an MCP server configured in Claude, Cursor, or Codex:
mcp2cli list # See which MCP servers are available
mcp2cli convert gitlab-mcp
That's it. Your MCP server is now a CLI, and the compressed skill files are synced to your AI clients.
**Tip:** After install or convert, you can edit `~/.agents/mcp2cli/servers.yaml` to update env vars (API keys, endpoints, etc.) without re-running the full setup.
How It Works
`mcp2cli convert gitlab-mcp` runs a 3-phase pipeline:
┌──────────────┐ ┌──────────────┐
Related Skills
The Matrix
Autonomous agent ecosystem — CLI tools that provision, scaffold, and maintain Claude Code agent ecosystems
Bm Scan
Build or refresh the basemind index by running basemind scan via the CLI — works without the MCP server (use i
Frankensonos
Memory-safe Rust controller for your own Sonos speakers on your own LAN — reliable SSDP/UPnP-SOAP/GENA interop
Shim MCP
WordPress MCP server plugin, live on WordPress.org. Connect Claude Code, Cursor, or any MCP client to WordPres
Sessiongrep
Local-first memory layer for CLI agents. Indexes Claude Code, Codex CLI, Cursor, Antigravity, and Pi sessions
Trend Pulse
Free trending topics aggregator — 20 sources, zero auth. CLI + Python library + MCP Server.
Related Agents
Intellij Debugger Maintainer
Fix issues, add features, and maintain quality in intellij-debugger. MCP server that lets Claude control Intel
Backlog MCP Validator
Validate the backlog FastMCP server against the CLI. Calls MCP tools natively via the agent-scoped backlog ser
CLI MCP
Implements the santi binary: clap subcommands and the stdio MCP server (rmcp) that call the HTTP API with a pe