---
title: "Register MCP servers on your UncensoredLLM organization"
canonical: https://uncensoredllm.ai/docs/mcp-servers
generated: 2026-11-23T06:04:09.620Z
source: https://uncensoredllm.ai/docs/mcp-servers
base_url: https://api.uncensoredllm.ai/v1
---

# Organization MCP servers.

Updated November 22, 2026.

Servers you register are gathered behind the aggregated gateway endpoint (`/mcp/org`), which presents each one’s tools to your agents, and the routes documented here are how you create, edit and inspect those registrations against `https://api.uncensoredllm.ai/v1`. Each registration points at one Streamable HTTP endpoint reachable over public https; any headers you attach are kept encrypted at rest, replayed on every outbound call, and an optional allowlist decides which of the server’s tools the gateway advertises.

[Get a key](https://app.uncensoredllm.ai/console)

## Listing what is registered

`GET /v1/mcp-servers` hands back `data`, one entry per server the gateway fans out to. Stored header values stay hidden; the response instead reports `header_names`, so anything secret you supplied is write-only and cannot be read back.

## Adding a server

`POST /v1/mcp-servers` accepts these fields and answers `201`:

| Field | Type | Notes |
| --- | --- | --- |
| `name` | string, required | Becomes the tool namespace (`name__tool`): lowercase letters, digits, `_` and `-`, up to 32 characters, no double underscore and no trailing underscore. |
| `url` | string, required | Must resolve to a public https endpoint. Private, loopback, link-local and reserved addresses are rejected, re-checked ahead of each call, and redirects are ignored. |
| `headers` | object or null | As many as 20, replayed on each call (an Authorization value, say). Kept sealed and absent from every response. |
| `tool_allowlist` | array or null | Which tools to surface; null surfaces all of them. |
| `enabled` | boolean | Whether the registration is active. |

Your organization may hold up to 20 servers at once; a 21st, or a name already in use, answers `409` with `limit_reached` or `name_taken`.

## Reading, editing and deleting one

`GET /v1/mcp-servers/{server_id}` fetches a single registration, `PATCH /v1/mcp-servers/{server_id}` updates any combination of the fields above (supplying `headers` overwrites the entire stored set, and null empties it), and `DELETE /v1/mcp-servers/{server_id}` drops it. An id that is not yours answers `404 not_found`.

## Inspecting recent tool calls

`GET /v1/mcp-servers/calls` walks the gateway’s tool invocations from most to least recent. Every row records when it ran, which server and tool, an outcome (`ok`, `tool_error`, `failed`, `denied` where the server’s allowlist refused it, or `blocked` where a key’s tool policy did), and how long it took. Call arguments surface only where the originating key retains bodies. Pass `limit` for up to 200 rows (50 when unset) and `server_id` to narrow to one registration.

## Example

```bash
curl https://api.uncensoredllm.ai/v1/mcp-servers \
  -H "Authorization: Bearer sk-ullm-live-…" \
  -H "Content-Type: application/json" \
  -d '{"name": "search-stack", "url": "https://mcp.example.com/mcp", "headers": {"Authorization": "Bearer ..."}, "enabled": true}'
```

What comes back is the saved registration with its id and `header_names`, with no header value included. Every route on this page authenticates with an admin key, which you create in the console.

## MCP servers: questions

### Can anyone read back the secrets I stored on a server?

No. Whatever you pass under headers is encrypted and only ever replayed toward that server; responses expose header_names so you can confirm which are present, and a PATCH swaps the full set rather than merging it.

### Which URLs will the registry accept?

Only endpoints on public https. Anything private, loopback, link-local or reserved is turned away with 400 invalid_url, the same validation repeats before each outbound call, and redirects are never followed, so a registration cannot later be aimed at an internal host.

### How do I restrict the tools a server exposes?

Populate tool_allowlist with just the tool names you want the gateway to advertise, or leave it null to pass through everything the server lists. A request for a tool the allowlist excludes appears in the calls listing with the status denied.

## Read next

- [Log export](https://uncensoredllm.ai/docs/exports)
- [Invoices](https://uncensoredllm.ai/docs/invoices)
- [Billing details](https://uncensoredllm.ai/docs/billing-details)
- [Statement signing key](https://uncensoredllm.ai/docs/statements-public-key)
- [Keys](https://uncensoredllm.ai/docs/keys)
- [Requests and receipts](https://uncensoredllm.ai/docs/requests)
- [Balance and spend limits](https://uncensoredllm.ai/docs/budgets)
- [Batches](https://uncensoredllm.ai/docs/batches)
- [Files](https://uncensoredllm.ai/docs/files)
- [Count tokens](https://uncensoredllm.ai/docs/count-tokens)
- [App usage stats](https://uncensoredllm.ai/docs/stats-apps)
- [Auth keys](https://uncensoredllm.ai/docs/auth-keys)
- [Webhook deliveries](https://uncensoredllm.ai/docs/webhooks-deliveries)
- [Docs: connect in two minutes](https://uncensoredllm.ai/docs)
- [Agent tools](https://uncensoredllm.ai/features/agent-tools)
