Clihub
Turn any MCP server into CLI
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
Maintainer
Works with
Installation
Manual Installation
npx clihubConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
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
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"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/clihubGenerate 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/linearGenerate 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-githubGenerate 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"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 abc123Clihub 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.
Clihub Alternatives — Similar Developer Tools Servers
Looking for alternatives to Clihub? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
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.
Set Up Clihub in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
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.