mcp-hub
MCP Hub is a comprehensive framework for building, managing, and deploying Model Context Protocol (MCP) clients and servers. It provides tools and configurations to enable seamless integration and execution of end-to-end MCP workflows.
claude mcp add --transport stdio reddy-sh-mcp-hub uvx reddy-sh/mcp-hub
How to use
MCP Hub is a framework for creating and managing Model Context Protocol (MCP) servers and clients. It leverages the UV tool for fast package installation and configuration management, enabling you to scaffold projects, manage dependencies, and run MCP servers with simple commands. With MCP Hub you can create new MCP-compliant servers, wire up client interactions, and use UV to install and keep dependencies up to date. Typical workflows involve initializing a project, setting up a Python virtual environment, adding MCP-related CLI tooling, and executing your MCP server script for testing and deployment. The included examples in the documentation show a straightforward path from project creation to running a server with UV.
How to install
Prerequisites:
- Python 3.8+ (for MCP server development and execution)
- Git
- Curl or Wget (for UV installation script)
- A Unix-like environment (Linux/macOS) or Windows Subsystem for Linux (WSL) if you are on Windows
Installation steps:
-
Install UV (the fast package manager used by MCP Hub):
- Unix/macOS/Linux: curl -fsSL https://uv.sh/install.sh | bash
- Follow the on-screen instructions to ensure the 'uv' CLI is available in your PATH.
-
Create a new project or clone an existing MCP Hub template
- Initialize a new project (example name: my-mcp-project): uv init my-mcp-project
- Change into the project directory: cd my-mcp-project
-
Set up a Python virtual environment (recommended):
- uv venv
- source .venv/bin/activate
-
Install MCP Hub CLI and dependencies for MCP development:
- uv add "mcp[cli]" httpx
-
Create or place your MCP server script (e.g., my_server.py) and ensure it can be executed by uv run:
- uv run my_server.py
Optional for faster iteration with a sample server:
- If you are using the template for the MCP Hub, you can customize the server script and configuration files, then run the server using UV as shown above.
Additional notes
Tips and common issues:
- Ensure your Python virtual environment is activated before installing or running MCP dependencies.
- If UV cannot locate your package name (as in a private repository), verify your UV configuration and authentication settings for private registries.
- For Windows users, consider using WSL to match a Unix-like environment for UV and MCP Hub workflows.
- When starting new servers, specify a clear server name in the mcp_config to track multiple MCP servers easily.
- Environment variables such as MCP_HOST, MCP_PORT, or API keys may be required by your specific MCP server implementation; add them to your environment or an .env file as appropriate.
- If you encounter networking or dependency resolution issues with UV, run uv sync to synchronize Python versions and dependencies as described in the UV guide.
Related MCP Servers
mcp
Official MCP Servers for AWS
web-agent-protocol
🌐Web Agent Protocol (WAP) - Record and replay user interactions in the browser with MCP support
AgentChat
AgentChat 是一个基于 LLM 的智能体交流平台,内置默认 Agent 并支持用户自定义 Agent。通过多轮对话和任务协作,Agent 可以理解并协助完成复杂任务。项目集成 LangChain、Function Call、MCP 协议、RAG、Memory、Milvus 和 ElasticSearch 等技术,实现高效的知识检索与工具调用,使用 FastAPI 构建高性能后端服务。
mcp-use-ts
mcp-use is the framework for MCP with the best DX - Build AI agents, create MCP servers with UI widgets, and debug with built-in inspector. Includes client SDK, server SDK, React hooks, and powerful dev tools.
python -client
支持查询主流agent框架技术文档的MCP server(支持stdio和sse两种传输协议), 支持 langchain、llama-index、autogen、agno、openai-agents-sdk、mcp-doc、camel-ai 和 crew-ai
mcp-tool-kit
Agentic abstraction layer for building high precision vertical AI agents written in python for Model Context Protocol.