mcp-remote wrappers — authenticates to the Nudj MCP server with two headers:
x-api-domain to route tool calls to the correct organisation’s Admin API. Both headers are required.
stdio-based MCP clients (Claude Desktop, older Cursor) use env vars instead of headers. This page is for HTTP transports.
Why two headers?
The MCP server is a single deployment serving many organisations. The Bearer token identifies the user; thex-api-domain header tells the MCP server which org the user is operating on during this session. Nudj enforces that the token’s claimed org matches the subdomain in x-api-domain — see Bearer Token Authentication for why.
Generate a token
- Sign into the admin panel at
https://<subdomain>.nudj.cx/admin. - Navigate to Settings → Developer → MCP Tokens.
- Click Generate Token and pick an RBAC scope (Viewer, Moderator, Manager, Admin, or SuperAdmin).
- Copy the token immediately — it is shown once.
Configure an HTTP MCP client
Most clients accept anmcp-remote config block. The canonical shape:
<your-subdomain> with your organisation’s subdomain. Store the token in an env var rather than pasting it into the config directly.
Endpoint map
| Environment | MCP URL | x-api-domain |
|---|---|---|
| Production | https://mcp.nudj.cx/sse | https://<subdomain>.nudj.cx/api/v2/admin |
| Development | https://mcp-dev.nudj.cx/sse | https://devapi.nudj.cx/api/v2/admin |
| Local | http://localhost:4010/mcp | https://localhost:3000/api/v2/admin |
Verifying the connection
Once configured, the client exposes Nudj tools in its tool catalog. Quick sanity check — ask the agent:“Use the Nudj MCP to list my five most recent challenges.”If auth is wrong, you’ll see a
401 or 403 in the client’s error log. Common causes:
- Token copied with leading/trailing whitespace
x-api-domainmissing the/api/v2/adminsuffix- Token scoped to a different org than
x-api-domain - Token expired (re-generate from the admin panel)
Related
Claude Code Setup
Full
.mcp.json walkthrough for Claude Code specifically.MCP Tools Reference
The full tool catalog exposed by the Nudj MCP server.

