Skip to main content
Glama
SubZtep
by SubZtep

:suspect: Work/Test/Docs in Progress

wrapmcp

Wrap any CLI tool with MCP - Universal MCP server for well-documented CLI apps

Turn any command-line tool into an MCP server in seconds. No code required.

Why?

Modern CLI tools have excellent help systems and well-documented commands. wrapmcp makes them instantly available to AI assistants through the Model Context Protocol (MCP).

Instead of writing custom MCP servers for each tool, just wrap them:

wrapmcp install gh      # GitHub CLI → MCP
wrapmcp install disco   # Disco → MCP
wrapmcp install docker  # Docker → MCP
wrapmcp install kubectl # Kubernetes → MCP

Installation

Download the latest binary for your platform from releases:

# Linux/macOS
curl -L https://github.com/yourusername/wrapmcp/releases/latest/download/wrapmcp-linux -o wrapmcp
chmod +x wrapmcp

# Install it
./wrapmcp install <your-favorite-cli-tool>

The binary will automatically copy itself to ~/.local/bin/wrapmcp and configure your MCP clients.

Usage

Install MCP server for a CLI tool

wrapmcp install disco

This will:

  1. Copy wrapmcp to a stable location (~/.local/bin/)

  2. Auto-detect your MCP clients (Claude Desktop, Claude Code, Continue, Zed)

  3. Add the tool to all detected clients

  4. You're done! Restart your AI assistant.

Target specific client

wrapmcp install gh --client=claude-desktop
wrapmcp install docker --client=claude-code

List installed servers

wrapmcp list

Uninstall

wrapmcp uninstall disco

Supported Clients

wrapmcp automatically detects and configures:

  • Claude Desktop - Global installation

  • Claude Code - Project-based (.mcp.json)

  • Continue - VS Code extension

  • Zed - Editor integration

How it works

When you run wrapmcp install disco, it creates an MCP server that:

  1. Registers a run_cli tool in your AI assistant

  2. When called, executes disco <args> and returns the output

  3. The AI can explore commands using --help flags

  4. Well-documented CLIs become instantly accessible

Examples

After installing, your AI assistant can do things like:

You: "List my disco projects"
AI: uses mcp__disco__run_cli with args "projects:list"

You: "Deploy my app to production"
AI: uses mcp__gh__run_cli to check status, then confirms with you

You: "Show running containers"
AI: uses mcp__docker__run_cli with args "ps"

Requirements

  • The CLI tool must be installed and available in your PATH

  • MCP client (Claude Desktop, Claude Code, Continue, or Zed)

Building from source

# Clone the repo
git clone https://github.com/yourusername/wrapmcp.git
cd wrapmcp

# Install dependencies
bun install

# Build
bun run build

# Use it
./wrapmcp install <tool>

License

MIT

Contributing

Issues and PRs welcome! This was built as a personal tool but happy to make it better.


wrapmcp - Because every great CLI deserves to be MCP-enabled ✨

A
license - permissive license
-
quality - not tested
A
maintenance

Maintenance

Maintainers
Response time
Release cycle
1Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SubZtep/wrapmcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server