api.rootkey.ai. Your token stays in your own environment: it is never sent to Anthropic, and it is sent to ROOTKey only as the credential of the API call itself.Requirements
- Node.js 20 or newer on the machine running Claude
- A ROOTKey personal access token. Create one in the ROOTKey app under Account Settings → Personal access tokens. It starts with
rk_pat_, it is shown once when you create it, and it lasts at most 90 days. You choose its scopes, the organizations it may reach and when it expires; Authentication walks through each step. - An organization that lets agents in. Each organization decides whether, and how far, agents may use its data. Until an administrator chooses otherwise, an organization lets agents read and nothing more. See What the organization decides.
Let your agent set it up
If you already have a coding agent open, hand it this URL and it will install and configure the server itself, in whichever client you use:Install
Replaceyour_personal_access_token with the token you created. ROOTKEY_ORGANIZATION is optional; see Choosing the organization.
- Claude Code
- Claude Desktop
- Cursor and other clients
Choosing the organization
A personal access token can reach several organizations, so the server never guesses which one you mean. There are three ways to choose:- Set a default. Put the organization id in
ROOTKEY_ORGANIZATION, and every tool uses it. - Name it in the request. Every tool that works inside an organization takes an optional
organizationargument that overrides the default for that call. - Ask. With neither, a tool answers that no organization is selected, and Claude calls
rootkey_list_organizationsand asks you which one to use. The list shows each organization’s id, its agent mode (DISABLED,READ_ONLYorFULL) and whether you are blocked from agents there. Organizations that refuse agents are listed too, so you can see why.
Acted in organization ...), so a wrong default cannot go unnoticed.
Configuration
Every setting is an environment variable on the server process. OnlyROOTKEY_TOKEN is required. ROOTKEY_ORGANIZATION is an optional default, and every other variable is optional too.
https://api.rootkey.ai/api-v1/, unless ROOTKEY_API_URL points it at a self-hosted or on-premise deployment. Test and live data are two separate data sets behind that same API, not two hosts: ROOTKEY_TEST_MODE chooses which one the server works on, and it is live when the variable is unset. To try things out, set ROOTKEY_TEST_MODE=true.
What the organization decides
Your token is yours, but the organization decides whether an agent may use its data. An organization administrator sets this under Organization Settings → AI agents; the admin guide describes every setting. What it means for you:- Deleting a record. Agents can restore a record that a person deleted, and cannot delete one.
- Fetching, downloading, creating or deleting a recovery point. Claude can only list them. Use the ROOTKey app for the rest.
- Deleting or restoring Restricted vaults and tables, or anything in them. They appear in
rootkey_list_vaultsandrootkey_list_tableswithagentAccessible: falseso that Claude can tell you they exist. Unless the organization lets you open Restricted data to your agent, nothing more: with that option on, you can approve reading and writing one vault or table at a time. - Restoring a table. Deleted tables are restored in the ROOTKey app.
- Changing the data classification of a vault.
Available tools
32 tools: the operations of the API Reference that an agent may use, the listings that find what to operate on, and one diagnostic. Every tool exceptrootkey_list_organizations takes the optional organization argument. Deleting a record and every recovery point operation except the listing are not offered, because the API refuses them to agents.
- The hosted connector gets 28. The same as a token, without the four tools that read or write the local disk of the machine running the server:
rootkey_upload_file,rootkey_upload_file_version,rootkey_validate_fileandrootkey_download_file.
rootkey_, so it cannot be confused with a same-named tool from another MCP server in the same session. The Scope column is the scope your token needs for the call; a token that lacks it gets insufficient_scope.
Organizations
Vaults
Files
Records
Recovery points
Restricted data
These two are useful only where the organization lets members open Restricted data to their agents. See Restricted data and agents.Diagnostics
rootkey_update_vault, which overwrites the previous name or description, are marked destructive.
Prompts
Besides the tools, the server offers whole workflows your client can list, so you do not have to remember the sequence.compliance_evidence_pack is offered, since the others write.
What to expect when using it
A few behaviours are worth knowing before your first session, because they follow from how the ROOTKey API works. Addresses come from the list tools.rootkey_list_vaults and rootkey_list_tables page through what you can see: a vault holds files and a table holds records. You see the vaults and tables of the teams you belong to, and organization owners and administrators see all of them. When rootkey_create_vault makes a new one, keep the address it returns.
Files move through your own machine. Uploads read from the local disk of the computer running the server, and downloads are written there and reported back as a file path. File contents are never pasted into the conversation, so a large PDF costs you nothing in context.
File anchoring is asynchronous. A newly uploaded file starts as PENDING and becomes REGISTERED once the anchor is confirmed, or FAILED if something went wrong. The create call returns before that happens.
Only files are anchored on chain. Records are stored, hashed and audited, and come back REGISTERED immediately: there is no pending phase and no transaction hash for a record.
Uploads can only read from a few directories. A file to be uploaded must sit in your home directory, the temp directory or wherever the server was started, and hidden directories inside those are refused. This matters because the path can be chosen by the model, and the model reads documents other people wrote. Widen it with ROOTKEY_ALLOWED_DIRS.
Records are versioned by primary key. Creating a record whose key column matches an existing record adds a version to it rather than creating a duplicate. Asking Claude to “try that again” after a create will produce a second version, which is usually not what you want.
Names and contents are other people’s words. Organization, vault and file names, record contents and error text were written by someone, often not you. The server tells the model to treat them as data and strips control characters from listed names, but the model is the last line of defence: do not paste untrusted documents into a session that holds a token that can write or delete.
Safety
Keep the token narrow
A token with onlyrootkey.read cannot create or delete anything, whatever Claude is asked to do, and a token limited to one organization cannot be pointed at another. If a session only needs to look, create a read-only token. A token cannot be edited after it is created: to change its scopes or organizations, create a new one and revoke the old.
Read-only mode
SettingROOTKEY_READ_ONLY=true registers only the tools that read data. The write tools are not advertised at all, so Claude cannot call them, and downloads may only write inside the configured download directory.
Upgrading from an API key
Version 0.3.0 accepts only a personal access token. A configuration that still setsROOTKEY_API_KEY, or that puts an organization API key in ROOTKEY_TOKEN, stops the server at start-up with a message that says what to do. To move to a personal access token:
- Create a personal access token with the scopes you need, covering the organization or organizations the key belonged to.
- In your client configuration, replace
ROOTKEY_API_KEYwithROOTKEY_TOKEN, and setROOTKEY_ORGANIZATIONto the organization id (rootkey_list_organizationsshows it). If the key was a test key, addROOTKEY_TEST_MODE=true. - Expect the organization’s agent mode to apply. Under the default Read only mode, the write tools are refused until an administrator chooses Full access.
- Removed tools.
rootkey_delete_record,rootkey_create_recovery_point,rootkey_get_recovery_point,rootkey_wait_for_recovery_point,rootkey_download_recovery_point,rootkey_delete_recovery_pointand thebackup_workspaceprompt are gone: the API refuses them to agents. Use the ROOTKey app for them.rootkey_list_recovery_pointsstays. - Your organization decides. The organization’s agent mode, its block list and its two-factor requirement apply to the token, and its scopes limit what a session can do.
npx -y @rootkey/[email protected].
Troubleshooting
Claude does not show any ROOTKey tools
Claude does not show any ROOTKey tools
node --version), then restart the Claude client completely - configuration is read at startup. In Claude Desktop, check the MCP server logs under Settings → Developer; the server writes its startup line and any failure to stderr, which is what those logs show.The server exits immediately
The server exits immediately
ROOTKEY_TOKEN is missing or is not a whole personal access token (rk_pat_ followed by 64 hexadecimal characters). It also refuses a configuration left over from version 0.2, and says what to change: see Upgrading from an API key. Check that the variable is set inside the env block of the configuration, not only in your shell: Claude Desktop does not pass your shell environment to the server.Every call returns 401
Every call returns 401
ROOTKEY_TOKEN. Ask Claude to run rootkey_get_environment_info to see the API address the server is using.A tool says no organization is selected
A tool says no organization is selected
rootkey_list_organizations and tell it which one you mean, or set ROOTKEY_ORGANIZATION in the configuration. See Choosing the organization.A call is refused with an error that names a policy
A call is refused with an error that names a policy
rootkey_get_environment_info: it shows the organization’s agent mode and the scopes your token has there.An organization is missing from the list
An organization is missing from the list
rootkey_list_organizations lists the organizations you belong to that the token reaches, including those where agents are off or where you are blocked. An organization the token was not created for is not listed, and neither is one whose IP access rules block this machine. Create a token that includes the organization, or ask an administrator about the access rules.A vault or table is listed but cannot be opened
A vault or table is listed but cannot be opened
agentAccessible: false so that Claude can tell you they exist. Unless your organization lets you open Restricted data to your agent, no agent can read or change them, in any mode: open them in the ROOTKey app. If it does, Claude can ask you to approve one vault or table for a few minutes: see Restricted data and agents. Deleting and restoring Restricted data stays in the ROOTKey app.There is no tool to create or download a recovery point
There is no tool to create or download a recovery point
rootkey_list_recovery_points and no tool that fetches, downloads, creates or deletes one. There is no tool to delete a record for the same reason: the API refuses it to agents. Use the ROOTKey app for them.Claude says a delete is waiting for my approval
Claude says a delete is waiting for my approval
Requests fail with 429 Too Many Requests
Requests fail with 429 Too Many Requests
Retry-After header has passed, provided the wait is short. If 429s keep coming, spread those calls out over time, or move to a plan with a higher rate limit.A tool reports the created file or record as null
A tool reports the created file or record as null
Windows: npx is not recognised
Windows: npx is not recognised
cmd /c form of the Claude Desktop configuration shown in the Install section above. Windows needs the command routed through the shell for npx to resolve.Current limits
The server runs locally, which is what keeps your token on your machine. That has two consequences worth stating plainly.- It works in clients that can start a local program, such as Claude Code, Claude Desktop and Cursor. For an app that connects to a remote server instead, such as Claude on claude.ai, use the hosted connector.
- It covers the public API and nothing beyond it. There are no tools for managing tokens, API keys or organization members. You manage tokens in the ROOTKey app, and organization settings are an administrator’s job there.
Source and support
The server is open source at github.com/ROOT-Key/rootkey-mcp and published on npm as@rootkey/mcp. Bug reports and feature requests are welcome on the issue tracker.