---
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

## Changes

- **2026-08-07** `06cac6a7c5bc` — 2 info
  - added the media type `application/json` for the response with the status `200`
  - added the media type `application/json` for the response with the status `404`

[Change history](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/changes/api/mcp-servers/:id/get.md)

---

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