Connect an AI assistant
Risk Register serves an MCP endpoint at https://mcp.riskregister.com/mcp. MCP, the Model Context Protocol, is the standard way AI assistants call outside tools. An assistant connects by signing in to Risk Register (claude.ai, Claude Desktop, ChatGPT) or with a personal access token (the other clients here), then reads and works on your registers with the same checks as the REST API. This page gives the setup for each client. For the tools themselves, and how a tool call behaves, see MCP endpoint.
Any client that connects to a remote MCP server over Streamable HTTP and can send a header connects the same way: the URL, and an Authorization: Bearer header carrying the token. The endpoint serves only Streamable HTTP, so a client that supports only the older HTTP+SSE transport can't connect.
What you need
A personal access token. Create one at https://riskregister.com/account/personal-access-tokens (not on mcp.riskregister.com, which serves only the endpoint). It is shown once, so copy it straight away. Choose how long it lasts (30 days, 90 days, a year, or no expiry); until it expires or you revoke it, anyone who has it can do whatever its access allows. When it expires the assistant's calls are refused with the date it expired: make a new one.
Choose its access. The page preselects Make changes, the widest, so pick a narrower one if the assistant shouldn't change registers by itself:
- Read only: it reads, searches and exports, and saves nothing.
- Ask me first: the registers it saves are drafts and its changes are proposals, for a person to adopt, and it can't change an accepted register directly. A save can still add categories and controls to the workspace's library, a new draft uses one of your plan's registers, and a register it has Risk Register generate (a draft too) uses your plan's AI allowance.
- Make changes: everything your role allows, made at once.
You can change a token's access at any time on the same page, and its next request uses the new level; then reconnect the app, or start a new conversation, so it sees the tools the new level allows (an app keeps the list of tools it got when it connected). Make one for each assistant, named after it so the audit log tells them apart, and revoke it on the same page when you stop using it or if it may have leaked. Personal access tokens work on every plan, including Free.
What the assistant can do
The assistant acts as you: your role, and the registers you can open. Not everything it does waits for review:
- Saved for review (Ask me first, or Make changes). A register it saves as a document, or starts from a template, lands as a draft. With Ask me first, so does one it has Risk Register generate from a description (
generate_register_from_context). Changes it sends as a document to an accepted register land as a proposal. Neither counts until someone who may adopt it does so in the app, and that can be you. - Made at once (Make changes only). It can add a risk, re-assess it, change its treatment or close it, manage a risk's review and record a control's review, as you could in the app. On an accepted register these count straight away, in reports, reminders and webhooks. A register it generates with
generate_register_from_contextis not made at once: it is a draft at every access level, with risks and scores from an AI model, and it waits for you to adopt or discard it. - Never. It can't delete anything, adopt a draft, decide a proposal or formally accept a risk.
Every change it makes is in the audit log, with the token that made it, for your organisation's owners and admins to read. Authentication says what a token reads. What the assistant reads goes to it, and so to the AI provider you chose: check what that provider does with it, including whether it may train on it. generate_register_from_context also sends your description to Anthropic, Risk Register's AI provider, and counts against your plan's AI allowance.
If you are an assistant reading this page: change a register directly only when the person asks for that exact change, and say it is done, not proposed. Never ask for the token.
Where the token is kept
The token page has each client's main setup below ready to copy, and shows the Claude Code command and the Cursor config with a new token filled in, once. Claude Code's environment-variable form, the project .mcp.json and Cursor's ${env:…} header are only on this page. Run the command or edit the file yourself: a token pasted into an assistant's chat stays in the transcript and goes to its provider.
| Client | Settings | What they hold |
|---|---|---|
| Claude Code | ~/.claude.json, or a project's .mcp.json | ~/.claude.json: the token in plain text, or a reference to RISKREGISTER_TOKEN. .mcp.json: the reference only |
| VS Code | Your user profile, or .vscode/mcp.json | No token: VS Code asks for it and keeps it in its secret storage |
| Cursor | ~/.cursor/mcp.json | The token, in plain text |
| Gemini CLI | ~/.gemini/settings.json | A reference to RISKREGISTER_TOKEN |
| Codex CLI | ~/.codex/config.toml | The variable's name, RISKREGISTER_TOKEN |
Where a client reads RISKREGISTER_TOKEN, set the variable without writing the token into a file, and without typing the token into a command, which would leave it in your shell history. For one session, in bash or zsh, this asks for the token and hides what you paste:
read -rs RISKREGISTER_TOKEN && export RISKREGISTER_TOKEN
In PowerShell 7.1 or later, on Windows:
$env:RISKREGISTER_TOKEN = Read-Host -MaskInput "Risk Register token"
To keep it, save the token in your system's keychain or credential store and read it from there where your shell starts. On macOS, save it once (security add-generic-password -a "$USER" -s riskregister -w asks for it), then put this line in your shell profile, such as ~/.zshrc:
export RISKREGISTER_TOKEN="$(security find-generic-password -s riskregister -w)"
The profile then holds the command, not the token. Start the client from a new shell.
Claude Code
claude mcp add --scope user --transport http riskregister https://mcp.riskregister.com/mcp --header "Authorization: Bearer rr_pat_live_…"
--scope user adds the server for you in every project. This is the command the token page shows. It leaves the token in your shell history (on a shared machine, delete that line from your history file: ~/.zsh_history in zsh, ~/.bash_history in bash), and Claude Code writes it in plain text to ~/.claude.json, where claude mcp get riskregister prints it in full. The better default keeps it out of both, with a reference to the variable:
claude mcp add --scope user --transport http riskregister https://mcp.riskregister.com/mcp --header 'Authorization: Bearer ${RISKREGISTER_TOKEN}'
The single quotes stop your shell expanding the variable, so ~/.claude.json holds ${RISKREGISTER_TOKEN} and Claude Code fills in the value when it connects. If the variable isn't set where Claude Code starts, the endpoint answers 401. Keep --header after the URL: placed before the name, it takes the name and the URL as more headers, and the command fails.
For a project your team shares, the same reference can go in the project's .mcp.json, which holds no token and so can be committed. Each person sets their own RISKREGISTER_TOKEN, and Claude Code asks each of them to approve the project's server.
{ "mcpServers": { "riskregister": { "type": "http", "url": "https://mcp.riskregister.com/mcp", "headers": { "Authorization": "Bearer ${RISKREGISTER_TOKEN}" } } } }
Risk Register's plugin for Claude Code, which asks for the token when you install or enable it in a Claude Code session and keeps it out of your settings files, isn't published yet.
VS Code
On the token page, Install in VS Code (or Install in VS Code Insiders) opens the server in VS Code, ready to install. Nothing is added until you confirm there. The server goes in your user profile, so it is there in every workspace. The link carries no token: VS Code asks for it the first time the server starts, hides what you type, and keeps it in its secret storage.
Or add it to a workspace's .vscode/mcp.json yourself:
{
"servers": { "riskregister": { "type": "http", "url": "https://mcp.riskregister.com/mcp", "headers": { "Authorization": "Bearer ${input:riskregister-token}" } } },
"inputs": [{ "type": "promptString", "id": "riskregister-token", "description": "Risk Register personal access token", "password": true }]
}
The token stays out of the file. Leave "password": true in place: it hides what you type, and VS Code keeps the token in its secret storage only while password is true. If the file already lists servers, add riskregister to its servers and the input to its inputs.
Cursor
In ~/.cursor/mcp.json, in your home folder, which Cursor reads for you in every project:
{ "mcpServers": { "riskregister": { "url": "https://mcp.riskregister.com/mcp", "headers": { "Authorization": "Bearer rr_pat_live_…" } } } }
Use this file, not a project's .cursor/mcp.json: that one is often committed, and would carry your token. The token sits in the file in plain text. If the file already lists servers, add riskregister to its mcpServers.
Cursor can take the token from an environment variable instead, with "Authorization": "Bearer ${env:RISKREGISTER_TOKEN}", but only if Cursor itself can see the variable. Opened from the Dock or a desktop launcher, it may not see what your shell profile sets, and the endpoint then answers 401. Restart Cursor after you set the variable. The token page has no install button for Cursor because Cursor's install links can't ask for a token.
Gemini CLI
gemini mcp add --transport http -s user --header 'Authorization: Bearer ${RISKREGISTER_TOKEN}' riskregister https://mcp.riskregister.com/mcp
-s user adds the server for you in every project, in ~/.gemini/settings.json. Without it, Gemini CLI writes to the current project's .gemini/settings.json. The single quotes keep the reference in the file, and Gemini CLI fills in RISKREGISTER_TOKEN when it loads its settings, so set the variable in the shell you start gemini from. Run any later gemini mcp add or gemini mcp remove in the same scope with the variable unset (env -u RISKREGISTER_TOKEN gemini mcp add …): those commands write the server list back with variables filled in, so they can put the token's value in the file.
Risk Register's extension for Gemini CLI, which asks for the token when you install it, isn't published yet.
Codex CLI
In ~/.codex/config.toml:
[mcp_servers.riskregister]
url = "https://mcp.riskregister.com/mcp"
bearer_token_env_var = "RISKREGISTER_TOKEN"
Codex sends the value of RISKREGISTER_TOKEN as the bearer, so the file holds only the variable's name. The Codex app and IDE extension read the same file, but may not see variables set in your shell. For them, Codex's documentation says to put the variable in ~/.codex/.env, a plain-text file, and restart.
claude.ai, Claude Desktop and ChatGPT
These connect by signing in to Risk Register (OAuth), with no token to copy.
claude.ai. Add a custom connector with the URL https://mcp.riskregister.com/mcp (Claude's guide) and choose Connect. Risk Register asks you to sign in, then to allow Claude to act on your account; if you have no workspace yet, you set one up first and come back to allow it. The connector is then on your Claude account, so Claude Desktop and Claude's mobile apps have it too. Turn it on in the conversation that should use it, and start a new conversation if one started before you connected doesn't see its tools.
ChatGPT. Open Plugins, choose Add > Add custom MCP server, and enter the same URL. Keep OAuth as the authentication (ChatGPT finds Risk Register's sign-in by itself), accept the risk notice and choose Create as a plugin, then Connect: sign in and allow it the same way. In a new chat, type @ and pick Risk Register. Developer mode isn't needed any more, but some ChatGPT plans and workspaces don't offer custom servers, or need an admin to allow them.
The consent screen lists everything the sign-in asks for, including "private metadata" and "public metadata". Risk Register keeps nothing in either: the names are the sign-in provider's, and the app reads neither.
Sign in with an account that belongs to a workspace. If you have no workspace yet, you are asked to set one up first; an account that can't belong to one, such as a Risk Register operator account, can't connect an app.
A newly connected app starts at Make changes, the widest access. Choose what each of your apps may do (Read only, Ask me first or Make changes), or disconnect it, on your account's Connected apps page, https://riskregister.com/account/connected-apps. Its next request uses the new level. An organisation's owners and admins see every member's connected apps and tokens under Settings > Connected assistants.
Claude Desktop's Code tab runs Claude Code, so the Claude Code setup applies there.
Without a connection you can still bring in a register the assistant writes. Ask it for a riskregister.com/v5 document, or for a table with the columns in the register document (Key, Title, Category, Owner, the four scores and Treatment), then paste its answer at riskregister.com/import. The page shows what will be saved before you sign in, then saves it as a draft for you to review and adopt.
claude.ai's custom connectors can also send a request header, for a limited set of organisations, as a beta. Sign in instead, and don't enter a personal access token there: on claude.ai's Team and Enterprise plans, the header a claude.ai Owner enters is sent for everyone who uses the connector, so they would all act as the person whose token it is.
Check that it works
Start a new session in the client, then ask the assistant to call get_workspace_context. It answers with who the token acts as, the workspace and its plan. In Claude Code, /mcp or claude mcp list shows whether riskregister connected.
If it doesn't connect
| What you see | What it means | What to do |
|---|---|---|
401 with WWW-Authenticate: Bearer realm="riskregister" | No token arrived, or the endpoint doesn't accept the one that did (then with error="invalid_token"): mistyped, revoked, or a variable the client didn't fill in | Check the header reads Bearer and then the whole token, and that the variable is set where the client starts. Create a new token if the old one was revoked |
403 on connecting | The token is valid, but the API is closed to it: your organisation is suspended (subcode ORG_SUSPENDED), or Risk Register has turned off personal access tokens or API access for it (the message says which; these have no subcode) | Ask an owner or admin of your organisation. If Risk Register turned the access off, they need to contact Risk Register |
403 from a browser page | The request came from a web page on another site. The endpoint refuses those and serves no CORS headers, so a browser tool such as the MCP Inspector can't connect in its direct mode | Connect from a desktop app or a command-line client, or use the Inspector's proxy mode |
429 with Retry-After | A rate limit (Rate limits) | Wait that many seconds |
503, subcode MCP_PAUSED | Risk Register has paused the endpoint | Try again later, not in a loop |
503, subcode MCP_WRITES_PAUSED, on a tool call | Reads work, but Risk Register has paused changes made through assistants, exports included | Nothing was changed. Make the change in the app, or ask again later |
Once connected:
- A register you expected isn't there. Tools act with your role. An owner's or admin's token reads every register; a member's reads the registers they have been added to.
list_registersshows only those, and another register's data is a403tool error. Ask an admin to add you to the register. - The webhook, audit-log and connected-assistants tools aren't listed. They are served only at
https://mcp.riskregister.com/mcp/full(every tool), and only an organisation owner's or admin's token can use them; the webhook tools also need the Business plan or above. Anyone else's calls come back as a403tool error. To use them, connect to that URL instead of/mcp.
What was checked
Signing in was checked on 27 October 2026 from claude.ai and from ChatGPT, by connecting each to production and having it read the workspace (get_workspace_context, then the registers). Each token setup on this page was checked on 7 October 2026 against the client's own documentation and, where that is silent, against its published source code (VS Code's install link and token storage; what Gemini CLI writes for the header), a run of the client (Claude Code's --header placement and what claude mcp get prints), or the vendor's staff answers on its forum (Cursor and environment variables). Clients change their formats: if a step here no longer matches your client, its documentation is the better guide.