Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

add mcp routes

Ishaan Jaff8909e24efccb
diff --git a/litellm/proxy/_experimental/mcp_server/mcp_routes.py b/litellm/proxy/_experimental/mcp_server/mcp_routes.py
index 1885146488e..7df0dee435c 100644
--- a/litellm/proxy/_experimental/mcp_server/mcp_routes.py
+++ b/litellm/proxy/_experimental/mcp_server/mcp_routes.py
@@ -17,7 +17,15 @@ from litellm.proxy._experimental.mcp_server.tool_registry import (
)
from litellm.types.mcp_server.tool_registry import *
-router = APIRouter()
+router = APIRouter(
+ prefix="/mcp",
+ tags=["MCP"],
+)
+
+
+async def root():
+ return {"message": "MCP Server is running"}
@router.get("/tools/list", response_model=ListToolsResponse)