Skip to Content
3x-ui3x-ui

MCP

Model Context Protocol endpoint for AI agents (Claude, Cursor, VS Code). Point an MCP client at this URL with an admin Bearer token; restricted token scopes are refused.

POST
/panel/api/mcp

Authorization

headerAuthorizationBearer <token>

Scoped API token from Settings → Security → API Token. Send as Authorization: Bearer <token>.

Query Parameters

toolsets?string

Comma-separated tool groups to expose: inbounds, clients, server, panel. Omit for all. call_api and get_openapi_spec are always included.

Request Body

application/json
  1. body

Response Body

Successful response

application/json
  1. response
success?boolean
msg?string
obj?unknown
Example Request
curl -X POST 'https://example.com/panel/api/mcp' \  -H 'Content-Type: application/json' \  -d '{  "jsonrpc": "2.0",  "id": 1,  "method": "tools/list"}'
Example Response200
{  "success": true,  "msg": "string",  "obj": null}