---
title: "Install a directory server into a project"
method: POST
path: "/projects/{projectId}/registry/directory-installs"
tags: ["Registry"]
---

# Install a directory server into a project

`POST /projects/{projectId}/registry/directory-installs`

Writes a `servers` row and catalog provenance. SUCCESS MEANS INSTALLED, NOT CONNECTED — follow with `get_project_server_connection_status` and, for OAuth, the browser connect-link handoff. Pass `expectedContentHash` from `GET /registry/directory-servers/{id}` to reject a row that moved (TOCTOU). There is no catalog-uninstall route: delete the project server.

## Path parameters

- `projectId` string, required

## Request body

- DirectoryInstallRequest
  - `catalogServerId` string, required
  - `endpointUrl` string — Required for `options` and `tenant` endpoint kinds.
  - `expectedContentHash` string — TOCTOU pin from `latestContentHash`.

## Response `201`

Installed or already present (`outcome` is `created` or `reconnected`).

- RegistryInstall
  - `serverId` string, required
  - `serverName` string, required
  - `outcome` 'created' | 'reconnected', required

## 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.
- `409` — The resource is not in a state that accepts this write — a stale `expectedRevision`, a duplicate name, or an environment that cannot currently be launched. The request was well-formed; re-read the resource and retry.
- `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.

---

[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/revisions/9a3b3893f016/schema)
