---
title: "Register MCP server"
url: https://hexelstudio.com/docs/api/titan/tool-registry/register-mcp-server
---

# Register MCP server

**POST** `/titan/tools/mcp-servers`

Exactly one of url (custom) or official_name (official) is required. Requires tool-gateway:tool:write. scope "organization" (the default) registers a server owned by, and visible to, the caller's organization only; scope "system" requires the caller to be the system tools organization.

Requires permission `tool-gateway:tool:write`.

## Headers

- `Authorization: string`

  `Bearer <token>`. A Hexel Studio access token for a member or a service user of your organization (or send a service user's API key as X-API-Key).

- `X-Workspace-Id: optional string`

  Workspace scope used by permission checks, if applicable.

- `X-Environment-Id: optional string`

  Optional environment scope.

## Body parameters

- `body: CreateCustomMCPServerRequest or CreateOfficialMCPServerRequest`

## Returns

`201` Created (`MCPServer`)

- `auth_toolkit: optional string`

- `created_at: string`

- `discovery_connection: optional string`

- `discovery_organization: optional string`

- `name: string`

- `official_name: optional string`

- `official_version: optional string`

- `owner_organization_id: optional string`

- `requires_auth: boolean`

  RequiresAuth records that tools/list answered 401/403 without
credentials. DiscoveryConnection and DiscoveryOrganization name the
connection a scheduled re-import authenticates with (the last
connection-authenticated import's); never a token.

- `scope: string`

  Scope is "system" or "organization"; OwnerOrganizationID is the owner
of an organization server (absent for a system server). The imported
toolkit MCP_<SERVER> has the same owner.

  One of: `"organization"`, `"system"`

- `server_id: string`

- `server_slug: string`

- `source: string`

  One of: `"custom"`, `"official"`

- `status: string`

  One of: `"registered"`, `"imported"`, `"failed"`

- `updated_at: optional string`

- `url: string`

## Errors

- `400` Bad Request
- `401` Unauthenticated: token missing or rejected at the edge
- `403` Forbidden
- `409` Conflict

## Example

```bash
curl --request POST \
  --url 'https://api.hexelstudio.com/v1/titan/tools/mcp-servers' \
  --header "Authorization: Bearer $ACCESS_TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{
  "server_slug": "weather",
  "name": "Weather",
  "url": "https://mcp.example.com/mcp",
  "auth_toolkit": "string",
  "scope": "organization"
}'
```

### Response (201)

```json
{
  "auth_toolkit": "string",
  "created_at": "2026-01-01T00:00:00Z",
  "discovery_connection": "string",
  "discovery_organization": "string",
  "name": "string",
  "official_name": "string",
  "official_version": "string",
  "owner_organization_id": "string",
  "requires_auth": true,
  "scope": "organization",
  "server_id": "00000000-0000-0000-0000-000000000000",
  "server_slug": "string",
  "source": "custom",
  "status": "registered",
  "updated_at": "2026-01-01T00:00:00Z",
  "url": "string"
}
```

### Response (400)

```json
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
```

### Response (403)

```json
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
```

### Response (409)

```json
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
```
