---
title: "Create a host (from a template or a full config)"
method: POST
path: "/projects/{projectId}/hosts"
tags: ["Hosts"]
---

# Create a host (from a template or a full config)

`POST /projects/{projectId}/hosts`

Creates a host in the project and responds `201` with the new host's detail. Seed the host config one of two ways: pass `template` (a built-in template id, optional `theme`) to seed server-side from the live backend host catalog, falling back to the bundled SDK catalog snapshot if the live catalog is unavailable, OR pass `config` (a full host config v2). Exactly one of `template` or `config` is required.

Guest callers are denied (host creation is a write).

## Path parameters

- `projectId` string, required

## Request body

- union — Create a host from a built-in template OR a full host config. Exactly one of `template` or `config` is required.
  - object
    - `name` string, required — Display name for the new host.
    - `template` 'mcpjam' | 'claude' | 'claude-code' | 'chatgpt' | 'mistral' | 'cursor' | 'codex' | 'copilot' | 'vscode' | 'agentcore' | 'n8n' | 'perplexity', required — Built-in template id to seed the host config from.
    - `theme` 'light' | 'dark' — Theme stamped into the seeded config (template only).
    - `config` object — Full host config v2, used verbatim (alternative to `template`).
  - object
    - `name` string, required — Display name for the new host.
    - `template` 'mcpjam' | 'claude' | 'claude-code' | 'chatgpt' | 'mistral' | 'cursor' | 'codex' | 'copilot' | 'vscode' | 'agentcore' | 'n8n' | 'perplexity' — Built-in template id to seed the host config from.
    - `theme` 'light' | 'dark' — Theme stamped into the seeded config (template only).
    - `config` object, required — Full host config v2, used verbatim (alternative to `template`).

## Response `201`

The host was created.

- HostDetail — A host plus its resolved host config (model, capabilities, host context, MCP profile).
  - `id` string, required
  - `name` string, required
  - `config` object, required — Host config v2 DTO. Opaque object; shape mirrors the inspector's host editor.

## Other responses

- `400` — Malformed body or parameters.
- `401` — Missing, invalid, revoked, or orphaned key (`UNAUTHORIZED`) — or the **target MCP server** needs an OAuth grant (`OAUTH_REQUIRED`), which is a property of the server, not your key.
- `403` — Key is valid but not allowed to do this.
- `404` — Unknown project, server, or resource.
- `429` — Per-key rate limit exceeded (60 requests/minute sustained, bursts up to 10). Honor `Retry-After` and back off with jitter.
- `500` — Something failed on MCPJam's side.
- `502` — Could not connect to the target MCP server.

---

[API](https://skmtc.net/mcpjam/apis/mcpjam-api.md) · [All operations](https://skmtc.net/mcpjam/apis/mcpjam-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mcpjam/mcpjam-api/versions/b767df188d0c/schema)
