Skip to main content
GET
/
api
/
mcp
/
servers
curl -X GET "https://api.example.com/api/mcp/servers?projectId=proj_123" \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "success": true,
  "servers": [
    {
      "id": "mcp_abc123",
      "projectId": "proj_123",
      "name": "Production Server",
      "description": "Main production MCP server",
      "url": "https://mcp-server.example.com",
      "transportType": "http",
      "connectionType": "proxy",
      "status": "connected",
      "capabilities": {
        "tools": true,
        "resources": true,
        "prompts": true
      },
      "lastConnectedAt": "2026-01-17T10:30:00Z",
      "createdAt": "2026-01-01T00:00:00Z",
      "updatedAt": "2026-01-17T10:30:00Z"
    }
  ]
}

Query Parameters

projectId
string
required
Project ID to filter servers

Response

success
boolean
Whether the request was successful
servers
array
Array of MCP server objects
curl -X GET "https://api.example.com/api/mcp/servers?projectId=proj_123" \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "success": true,
  "servers": [
    {
      "id": "mcp_abc123",
      "projectId": "proj_123",
      "name": "Production Server",
      "description": "Main production MCP server",
      "url": "https://mcp-server.example.com",
      "transportType": "http",
      "connectionType": "proxy",
      "status": "connected",
      "capabilities": {
        "tools": true,
        "resources": true,
        "prompts": true
      },
      "lastConnectedAt": "2026-01-17T10:30:00Z",
      "createdAt": "2026-01-01T00:00:00Z",
      "updatedAt": "2026-01-17T10:30:00Z"
    }
  ]
}