Update an MCP server
Update an MCP server’s URL, credential headers, or auth configuration. Passing headers replaces the entire stored header array — partial diffs are not supported. Use this endpoint to rotate credentials.
Documentation Index
Fetch the complete documentation index at: https://langchain-5e9cc07a-preview-vicmda-1780088974-0fb0763.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Path Parameters
MCP server ID.
Body
All fields are optional. Passing headers replaces the entire stored header array.
Credential headers attached to every invocation of this MCP server. Omitted from response bodies when the caller lacks invoke permission on the server. Passing this field replaces the entire stored array.
Authentication scheme used by the MCP server.
headers, oauth Optional OAuth provider ID for legacy shared OAuth providers.
OAuth mode used by an OAuth MCP server.
legacy_shared_provider, per_user_dynamic_client Response
MCP server updated.
Credential headers attached to every invocation of this MCP server. Omitted from response bodies when the caller lacks invoke permission on the server.
Authentication scheme used by the MCP server.
headers, oauth OAuth provider ID for legacy shared OAuth providers, when configured.
OAuth mode used by an OAuth MCP server.
legacy_shared_provider, per_user_dynamic_client Whether the caller has invoke permission on this server. Omitted when ambient permissions already imply invoke.

