---
title: "Install MCP server for an agent"
method: POST
path: "/api/mcp-servers/{id}/install"
tags: ["MCP Servers"]
---

# Install MCP server for an agent

`POST /api/mcp-servers/{id}/install`

## Path parameters

- `id` string, required

## Request body

- object
  - `agentId` string, required

## Response `200`

MCP server installed

## Other responses

- `404` — MCP server not found

---

[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.dev/desplega-ai/apis/agent-swarm-api/revisions/4f62e32be8ec?raw)
