Skip to content
OpenCode
Esc
navigateopen⌘Jpreview

Remove MCP server

Stop an MCP server and remove it from the runtime set until restart.

DELETE/api/mcp/{server}
Path parameters
serverstringrequired
Query parameters
locationobject | any
Responses
204<No Content>
400InvalidRequestError
_tagstringrequired
Allowed:InvalidRequestError
messagestringrequired
kindstring | any
Show properties
Any of:
string
string
any
any
fieldstring | any
Show properties
Any of:
string
string
any
any
401UnauthorizedError
_tagstringrequired
Allowed:UnauthorizedError
messagestringrequired
404McpServerNotFoundError
_tagstringrequired
Allowed:McpServerNotFoundError
serverstringrequired
messagestringrequired
Request
curl -X DELETE "/api/mcp/string"
Response
<No Content>