Clihub

v1.0.0Developer Toolsstable

Turn any MCP server into CLI

clihubmcpai-integration
Share:
668
Stars
0
Downloads
0
Weekly
0/5

What is Clihub?

Clihub is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to turn any mcp server into cli

Turn any MCP server into CLI

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Turn any MCP server into CLI

Use Cases

Convert any MCP server into a command-line interface automatically. Turn MCP tools into CLI commands for terminal use. Bridge MCP servers and traditional CLI workflows.
thellimist

Maintainer

LicenseMIT
Languagego
Versionv1.0.0
UpdatedMay 20, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx clihub

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Clihub

Clihub is a Go-based tool that converts any MCP server into a standalone, statically compiled command-line interface binary. It discovers the MCP server's tools, generates subcommands with JSON-Schema-derived flags for each tool, and handles authentication (OAuth 2.0, Bearer tokens, API keys, Basic Auth) automatically. Developers use it to bridge MCP servers and traditional terminal workflows, create scriptable CLI tools from remote MCP services, or test MCP servers without a full AI client.

Prerequisites

  • Go 1.24 or higher installed (for building from source) OR a pre-built binary
  • Access to the MCP server you want to convert (URL for HTTP servers or a stdio command)
  • Optional: GITHUB_TOKEN environment variable if generating a CLI for the GitHub MCP server
  • Optional: OAuth credentials or API keys for authenticated MCP servers
1

Install Clihub

Install Clihub using Go's install command, then ensure your Go bin directory is in your PATH.

go install github.com/thellimist/clihub@latest
export PATH="$(go env GOPATH)/bin:$PATH"
2

Or build from source

Clone the repository, build the binary, and install it to your local bin directory.

git clone https://github.com/thellimist/clihub.git
cd clihub
go build -o clihub .
install -m 755 clihub ~/.local/bin/clihub
3

Generate a CLI from an HTTP MCP server

Run clihub generate with the MCP server URL. Clihub discovers all tools and generates a compiled binary in the ./out/ directory.

clihub generate --url https://mcp.linear.app/mcp
# Output binary: ./out/linear
4

Generate a CLI from a stdio MCP server

For local stdio MCP servers, use the --stdio flag with the command to run. Pass environment variables with --env.

clihub generate --stdio "npx @modelcontextprotocol/server-github" \
  --env GITHUB_TOKEN=ghp_your_token
# Output binary: ./out/server-github
5

Generate a CLI with OAuth authentication

For servers requiring OAuth, add the --oauth flag. Clihub handles the browser-based OAuth 2.0 PKCE flow automatically.

clihub generate --url https://mcp.notion.com/mcp --oauth
# Then use the generated CLI:
./out/notion notion-search --query "meeting notes"
6

Use the generated CLI

The generated binary has subcommands for each MCP tool. Use --help to see available subcommands and flags.

./out/linear --help
./out/linear list-teams
./out/linear create-issue --title "Bug fix" --team-id abc123

Clihub Examples

Client configuration

Clihub itself is a CLI tool and does not require MCP client configuration. However, you can use a generated Clihub binary as a stdio MCP server in your Claude Desktop config.

{
  "mcpServers": {
    "clihub": {
      "command": "clihub",
      "args": ["generate", "--url", "https://your-mcp-server.com/mcp"],
      "env": {
        "CLIHUB_AUTH_TOKEN": "your-auth-token"
      }
    }
  }
}

Prompts to try

Clihub is a terminal tool rather than a Claude plugin. Use these example CLI invocations after generating a binary:

- ./out/linear list-teams
- ./out/notion notion-search --query "Q4 roadmap"
- ./out/github list-repos --owner my-org
- ./out/mymcp my-tool --from-json '{"param1": "value", "param2": 42}'
- clihub generate --url https://api.example.com/mcp --include-tools tool1,tool2 --output ./bin/

Troubleshooting Clihub

Generated binary fails with authentication errors

Check the credential resolution order: CLI flags take priority, then environment variables (e.g., CLIHUB_AUTH_TOKEN or GITHUB_TOKEN), then ~/.clihub/credentials.json. Pass the token explicitly with --auth-token on first use to populate the credential store.

go install fails or clihub binary not found after install

Ensure Go 1.24+ is installed ('go version') and that $(go env GOPATH)/bin is in your PATH. Add 'export PATH="$(go env GOPATH)/bin:$PATH"' to your ~/.zshrc or ~/.bashrc and reload the shell.

MCP server tool discovery returns no tools or times out

Increase the timeout with --timeout 30000 (milliseconds). For stdio servers, verify the command runs correctly on its own before passing it to clihub. For HTTP servers, confirm the URL is reachable and returns a valid MCP tool list response.

Frequently Asked Questions about Clihub

What is Clihub?

Clihub is a Model Context Protocol (MCP) server that turn any mcp server into cli It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Clihub?

Follow the installation instructions on the Clihub GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Clihub?

Clihub works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Clihub free to use?

Yes, Clihub is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "clihub": { "command": "npx", "args": ["-y", "clihub"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Clihub?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides