---
title: "Get MCP server by ID"
method: GET
path: "/api/mcp-servers/{id}"
tags: ["MCP Servers"]
---

# Get MCP server by ID

`GET /api/mcp-servers/{id}`

## Path parameters

- `id` string, required

## Response `200`

MCP server details

- McpServer
  - `id` string, required
  - `name` string, required
  - `description` string, nullable, required
  - `scope` 'global' | 'swarm' | 'agent', required
  - `ownerAgentId` string, nullable, required
  - `transport` 'stdio' | 'http' | 'sse', required
  - `command` string, nullable, required
  - `args` string, nullable, required
  - `url` string, nullable, required
  - `headers` string, nullable, required
  - `envConfigKeys` string, nullable, required
  - `headerConfigKeys` string, nullable, required
  - `extraAuthorizeParams` string, nullable, required
  - `authMethod` 'static' | 'oauth' | 'auto'
  - `isEnabled` boolean, required
  - `version` number, required
  - `createdAt` string, required
  - `lastUpdatedAt` string, required

## Other responses

- `404` — MCP server not found

---

[API](https://skmtc.net/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.net/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/desplega-ai/agent-swarm-api/versions/ef761849166b/schema)
