Manage Keys & ServersRegister an upstream MCP server

Register an upstream MCP server

Registers a server for the gateway to proxy. The URL is validated against internal and loopback targets, and default_headers is checked against a blocklist, so a registration cannot be used to reach inside the network or forge platform headers. Registering does not discover tools — run a probe afterwards.

curl -X POST "https://mythic-analytics.gulp.workers.dev/builder/mcp/servers" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "name": "Internal research server",
  "url": "https://mcp.example.com/mcp",
  "default_headers": {
    "Authorization": "Bearer upstream-token"
  },
  "is_enabled": true
}'
{
  "data": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "name": "Internal research server",
    "url": "https://mcp.example.com/mcp",
    "is_enabled": true,
    "ownership": "agency",
    "tool_count": 12,
    "last_probed_at": "2024-12-25T10:00:00Z",
    "created_at": "2024-12-25T10:00:00Z",
    "updated_at": "2024-12-25T10:00:00Z"
  }
}
POST
/builder/mcp/servers
POST
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

An agency key (ak_). Location secret keys are rejected. Scoped keys (mcp_) are not accepted here (403 not_available_to_scoped_keys).

An agency key (ak_). Location secret keys are rejected. Scoped keys (mcp_) are not accepted here (403 not_available_to_scoped_keys).
Content-Typestring
Required

The media type of the request body

Options: application/json
urlstring
Required

Public HTTPS endpoint of the upstream server.

Format: uri
default_headersobject

Headers sent on every proxied request, e.g. upstream auth.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. An agency key (ak_). Location secret keys are rejected. Scoped keys (mcp_) are not accepted here (403 not_available_to_scoped_keys).

Body

application/json
namestring
Required
Example:
Internal research server
urlstring
Required

Public HTTPS endpoint of the upstream server.

Example:
https://mcp.example.com/mcp
default_headersobject

Headers sent on every proxied request, e.g. upstream auth.

Example:
{"Authorization":"Bearer upstream-token"}
is_enabledboolean
Example:
true

Responses