🚀 Introducing Agent Gateway — governance, observability, and control for your AI agents.  Register for live webinar ↗
curl --request POST \
--url https://api.portkey.ai/v1/mcp-servers \
--header 'Content-Type: application/json' \
--header 'x-portkey-api-key: <api-key>' \
--data '
{
"name": "My MCP Server",
"mcp_integration_id": "MCP_INTEGRATION_ID_OR_SLUG"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"slug": "<string>"
}Create a new MCP Server (workspace instance of an MCP Integration). Requires workspace_id or x-portkey-api-key header.
curl --request POST \
--url https://api.portkey.ai/v1/mcp-servers \
--header 'Content-Type: application/json' \
--header 'x-portkey-api-key: <api-key>' \
--data '
{
"name": "My MCP Server",
"mcp_integration_id": "MCP_INTEGRATION_ID_OR_SLUG"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"slug": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://docs.portkey.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
Create an MCP Server (workspace instance of an MCP Integration).
Display name of the MCP server
1 - 255MCP Integration ID (UUID) or slug
Workspace ID or slug (optional; required when using org admin API key)
500Optional slug; must be unique within organisation
3 - 50^[a-zA-Z0-9_-]+$Was this page helpful?