---
title: "Update an MCP server"
method: PUT
path: "/api/v0/agent/mcp-servers/{mcp_server_id}"
tags: ["Agent MCP Servers"]
---

# Update an MCP server

`PUT /api/v0/agent/mcp-servers/{mcp_server_id}`

## Request

- Base URL: `https://api.outerport.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.outerport.com/api/v0/agent/mcp-servers/{mcp_server_id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/outerport/apis/outerport-api/docs/api/v0/agent/mcp-servers/:mcp_server_id/put.ts> (a function with typed inputs; its response is checked against the schema)

Update a connected MCP server. Omit 'headers' to leave the stored credentials untouched; send an empty object to clear them.

## Path parameters

- `mcp_server_id` string, uuid, required

## Request body

- AgentMcpServerUpdateRequest: Request body for updating an MCP server connection.
  - `name` string, nullable
  - `url` string, nullable
  - `headers` object, nullable

## Response `200`

Successful Response

- AgentMcpServerGetResponse: Response for getting an MCP server connection. Header values are credentials and write-only; ``header_names`` lists which headers are configured, never their values.
  - `id` string, uuid, required: The ID of the MCP server.
  - `name` string, required: The display name of the MCP server.
  - `url` string, required: The server's streamable-HTTP endpoint.
  - `header_names` string[]: Names of the configured HTTP headers. Values are never returned.
  - `created_at` string, date-time, required: When the server was connected.
  - `updated_at` string, date-time, required: When the server was last updated.

## Other responses

- `422`: Validation Error

## Changes

- **2026-09-25** `fcd15f6d35b4`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/outerport/apis/outerport-api/changes/api/v0/agent/mcp-servers/:mcp_server_id/put.md)

---

[API](https://skmtc.dev/outerport/apis/outerport-api.md) - [All operations](https://skmtc.dev/outerport/apis/outerport-api/llms.txt) - [OpenAPI document](https://skmtc.dev/outerport/apis/outerport-api/revisions/08b5bf6f7f18?raw)
