MCP

Add an MCP server

Changed on

Required scope: mcp

post/api/v1/mcp/servers

Request

  • Base URL
    http://localhost:6185
  • URL
    http://localhost:6185/api/v1/mcp/servers
  • Auth
    API key in header X-API-Key

Request body

namestring required
enabledboolean
transport'stdio' | 'sse' | 'streamable_http'
commandstring
argsstring[]
urlstring
headersobject
timeoutinteger

Response

Standard AstrBot success response

status'ok' required
messagestring
dataunknown required

Changes