---
title: "Dynamic Mcp Route"
method: POST
path: "/{mcp_server_name}/mcp"
---

# Dynamic Mcp Route

`POST /{mcp_server_name}/mcp`

Handle /{name}/mcp for MCP server aliases, toolsets, MCP access group tags, and comma-separated lists.

Resolution order:
1. Registered MCP server alias / name
2. Comma-separated list (short-circuits before any DB call)
3. Toolset name (DB lookup, cached)
4. MCP access group tag (DB lookup, cached)

## Path parameters

- `mcp_server_name` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-18** `082b5fabd909` — 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status

[Change history](https://skmtc.dev/flock/apis/litellm-api/changes/:mcp_server_name/mcp/post.md)

---

[API](https://skmtc.dev/flock/apis/litellm-api.md) · [All operations](https://skmtc.dev/flock/apis/litellm-api/llms.txt) · [OpenAPI document](https://skmtc.dev/flock/apis/litellm-api/revisions/7ed45f30a5f0?raw)
