MCP Hub Router
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Hub Routershow me all registered tools with their latency and success rates"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
๐ MCP Hub Router
Anthropic tomonidan ishlab chiqilgan Model Context Protocol (MCP) spetsifikatsiyasiga to'liq mos keluvchi, AI agentlar (Claude Desktop, Cursor, Antigravity, LLM agentlar) uchun yengil vaznli vositalar shlyuzi (Tool Gateway), marshrutizator va telemetriya tizimi.
๐ Imkoniyatlari
MCP Spetsifikatsiyasi:
initialize,ping,tools/list,tools/callkabi barcha standart JSON-RPC 2.0 protokollarini qo'llab-quvvatlaydi.Qulay Dekorator: Python funksiyalarini
@router.tool(...)orqali bir zumda AI vositasiga aylantirish.Asinxron va Sinxron: Asinxron
async defva sinxrondefvositalarni bir xil marshrutlash.Jonli Telemetriya (Router Telemetry): Har bir vosita qancha millisekundda ishlagani, muvaffaqiyat foizi va xatoliklarni kuzatib boradi.
Zero-Dependency: Tashqi og'ir paketlarsiz, Python standart kutubxonasida tez ishlaydi.
Related MCP server: Smart MCP Proxy
๐ O'rnatish
git clone https://github.com/afzalbek-dev/mcp-hub-router.git
cd mcp-hub-router
pip install .๐ ๏ธ Foydalanish
import asyncio
from mcp_router import MCPRouter
router = MCPRouter(server_name="developer-toolkit", server_version="1.0.0")
# 1. AI agent uchun yangi instrument (tool) ro'yxatdan o'tkazish
@router.tool(
name="get_weather_forecast",
description="Berilgan shahar bo'yicha ob-havo ma'lumotini qaytaradi",
input_schema={
"type": "object",
"properties": {
"city": {"type": "string", "description": "Shahar nomi (masalan: Tashkent)"}
},
"required": ["city"]
}
)
async def weather_tool(city: str):
return f"{city} shahrida havo ochiq, harorat +24ยฐC"
# 2. JSON-RPC so'rovini qabul qilish va javob qaytarish
async def main():
test_request = '''
{
"jsonrpc": "2.0",
"id": "req-1",
"method": "tools/call",
"params": {
"name": "get_weather_forecast",
"arguments": {"city": "Tashkent"}
}
}
'''
response = await router.handle_request(test_request)
print("MCP Javobi:", response)
print("Telemetriya:", router.telemetry.summary())
asyncio.run(main())๐งช Testlash
python3 -m unittest discover tests -v๐ Litsenziya
MIT License. Muallif: Afzalbek.
This server cannot be deployed
Maintenance
Related MCP Connectors
The OpenRouter for tools. One MCP connection gives any AI agent 254 hosted tools, pay per call.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Pay-per-use tool marketplace for AI agents. Search, price-check, and call APIs via MCP.
Zero-setup MCP gateway securely connecting AI to your tools with authentication and workflows
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to discover and execute tools via a secure MCP server with JWT authentication, RBAC, rate limiting, and audit logging.1MIT
- AlicenseNot gradedqualityDmaintenanceFederating gateway for AI agents to discover and call tools from multiple MCP servers with intelligent search and dynamic tool registration.39MIT
- AlicenseNot gradedqualityBmaintenanceA high-performance MCP gateway for Python with Rust core, enabling fast JSON-RPC routing and tool dispatch.99 PyPIMIT
- AlicenseAqualityBmaintenanceProvides a JSON-RPC MCP server that exposes policy-governed agent tools, including paid tools, tool muxing, and OpenAPI-to-MCP conversion, enabling agents to discover, coordinate, and execute tasks within the ProtoOS ecosystem.51Apache 2.0