Skip to main content
POST
/
api
/
mcps
Create an MCP Proxy definition.
curl --request POST \
  --url https://{tenant}/api/mcps \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "openapi": "3.0.3",
  "info": {
    "title": "MCP Proxy Sample",
    "version": "1.0.0"
  },
  "paths": {},
  "components": {},
  "servers": [
    {
      "url": "/mcp-sample/"
    }
  ],
  "x-tyk-api-gateway": {
    "info": {
      "name": "mcp-sample",
      "state": {
        "active": true
      }
    },
    "server": {
      "listenPath": {
        "strip": true,
        "value": "/mcp-sample/"
      },
      "authentication": {
        "enabled": true,
        "securitySchemes": {
          "authToken": {
            "enabled": true
          }
        }
      }
    },
    "upstream": {
      "url": "http://localhost:7878/mcp"
    },
    "middleware": {
      "global": {
        "contextVariables": {
          "enabled": true
        },
        "trafficLogs": {
          "enabled": true
        }
      },
      "mcpTools": {},
      "operations": {}
    }
  }
}
'
{
  "Status": "OK",
  "Message": "MCP Proxy definition created",
  "ID": "e30bee13ad4248c3b529a4c58bb7be4e"
}

Documentation Index

Fetch the complete documentation index at: https://tyk.io/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

The Tyk Dashboard API Access Credentials

Body

application/json
x-tyk-api-gateway
object

Response

MCP Proxy definition created.

ID
string
Message
string
Meta
any
Status
string