litellm - 💡(How to fix) Fix [Bug]: [Enterprise] MCP server management broken on Control Plane — routes misclassified as LLM API routes

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

  1. Clicking "Create MCP Server" always fails with: Error creating MCP Server: LLM API routes are disabled for this instance
  2. Observe error: Error creating MCP Server: LLM API routes are disabled for this instance Error returned from CP when creating an MCP server: Error creating MCP Server: LLM API routes are disabled for this instance

Root Cause

Root cause: all /v1/mcp/server* routes are classified as LLM API routes, so they are blocked on the CP by DISABLE_LLM_API_ENDPOINTS: "true". MCP server management is an admin operation (requires master key, no inference traffic involved) and should be governed by DISABLE_ADMIN_ENDPOINTS instead — consistent with /v1/model, /v1/key, /v1/team etc.

Code Example

Error returned from CP when creating an MCP server:

Error creating MCP Server: LLM API routes are disabled for this instance


Direct API call to CP also fails:

POST https://<cp-domain>/v1/mcp/server
403: LLM API routes are disabled for this instance


Same call succeeds on DP:

POST https://<dp-domain>/v1/mcp/server
200: { "server_id": "...", "status": "healthy" }
RAW_BUFFERClick to expand / collapse

Check for existing issues

  • I have searched the existing issues and checked that my issue is not a duplicate.

What happened?

In an Enterprise Control Plane / Data Plane split deployment, the CP Admin UI renders a full MCP Servers section with "Create MCP Server" button. However:

  1. Clicking "Create MCP Server" always fails with: Error creating MCP Server: LLM API routes are disabled for this instance
  2. The MCP Servers list in the UI is always empty, even though servers exist in the shared database (registered successfully via the DP API)
  3. Update and delete operations are similarly blocked

Root cause: all /v1/mcp/server* routes are classified as LLM API routes, so they are blocked on the CP by DISABLE_LLM_API_ENDPOINTS: "true". MCP server management is an admin operation (requires master key, no inference traffic involved) and should be governed by DISABLE_ADMIN_ENDPOINTS instead — consistent with /v1/model, /v1/key, /v1/team etc.

Steps to Reproduce

  1. Deploy Enterprise LiteLLM with CP/DP split
  2. Set DISABLE_LLM_API_ENDPOINTS: "true" on Control Plane (standard enterprise config)
  3. Open the CP Admin UI → navigate to MCP Servers
  4. Observe: list is empty (servers registered via DP are not visible)
  5. Click Create MCP Server, fill in details, submit
  6. Observe error: Error creating MCP Server: LLM API routes are disabled for this instance

Relevant log output

Error returned from CP when creating an MCP server:

Error creating MCP Server: LLM API routes are disabled for this instance


Direct API call to CP also fails:

POST https://<cp-domain>/v1/mcp/server
403: LLM API routes are disabled for this instance


Same call succeeds on DP:

POST https://<dp-domain>/v1/mcp/server
200: { "server_id": "...", "status": "healthy" }

What part of LiteLLM is this about?

Proxy

What LiteLLM version are you on ?

docker.litellm.ai/berriai/litellm:v1.83.7-stable

Twitter / LinkedIn details

https://www.linkedin.com/in/reddybhavaniprasad/

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

litellm - 💡(How to fix) Fix [Bug]: [Enterprise] MCP server management broken on Control Plane — routes misclassified as LLM API routes