Skip to main content
The ROOTKey MCP server connects Claude to your ROOTKey workspace. It implements the Model Context Protocol, the open standard Claude uses to talk to external systems, and turns the documented ROOTKey REST API into tools Claude can call. Ask Claude to anchor a contract, check whether a file still matches its proof, or pull the audit trail for a record, and it happens in your real workspace. The server signs in with your own personal access token, so every tool call is an ordinary API request made as you. It can never do more than you can do in the ROOTKey app, everything it does is visible in the ROOTKey dashboard, and the organization it acts in decides whether agents may use its data at all.
Prefer not to manage a token? The hosted connector lets Claude, or any MCP client that supports remote servers, connect by signing in to ROOTKey, and you choose the organizations and permissions on a consent screen. This page covers the local server, which uses a personal access token.
The server runs locally on your machine and talks directly to 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.
A token acts as you. Treat it like a password: keep it in a password manager or a secret store, create one token per tool, and revoke it under Account Settings → Personal access tokens if you suspect it leaked.
Coming from version 0.2? See Upgrading from an API key.

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:
Those instructions are published as the Agent Setup page, so you can read exactly what your agent is being told to do. Creating the token is the one step your agent cannot do for you. To set everything up by hand instead, follow the steps below.

Install

Replace your_personal_access_token with the token you created. ROOTKEY_ORGANIZATION is optional; see Choosing the organization.
Export the token in your shell profile or load it from your secret manager, then run this once, from anywhere:
Your shell expands the token, so it never appears in the command you type. Claude Code keeps the value in its own configuration on your machine.Start a new session and ask Claude what ROOTKey tools it has.

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 organization argument that overrides the default for that call.
  • Ask. With neither, a tool answers that no organization is selected, and Claude calls rootkey_list_organizations and asks you which one to use. The list shows each organization’s id, its agent mode (DISABLED, READ_ONLY or FULL) and whether you are blocked from agents there. Organizations that refuse agents are listed too, so you can see why.
A change Claude makes always reports the organization it acted in (for example Acted in organization ...), so a wrong default cannot go unnoticed.
Create the token with the explicit list of organizations you need rather than All my organizations, and with only the scopes you need. The organization argument can name any organization the token covers, and a model that has read a malicious document could use that.

Configuration

Every setting is an environment variable on the server process. Only ROOTKEY_TOKEN is required. ROOTKEY_ORGANIZATION is an optional default, and every other variable is optional too. The server talks to the one public API, 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: An organization can also stop accepting personal access tokens, require two-factor authentication from members who use agents, and block a member’s agents. It can ask you to approve every delete your agent asks for (see Delete approvals), and it can let you open one Restricted vault or table to your agent for a few minutes (see Restricted data and agents). Your role, your teams and the organization’s IP and country rules still apply on top of all of this. Some things are never available to an agent, whatever the organization allows:
  • 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_vaults and rootkey_list_tables with agentAccessible: false so 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.
Your organization governs the credentials it delegates to agents, not the AI itself: an agent using a person’s own browser session, or a script holding an organization API key, cannot be told apart from that person.

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 except rootkey_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_file and rootkey_download_file.
Every tool name is prefixed 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

Every tool declares whether it only reads, whether it is destructive and whether repeating it is safe, so your client can ask before it runs one that changes something. The delete tools and 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. In read-only mode only 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

Deletions need your confirmation. rootkey_delete_vault and rootkey_delete_file move the item to the trash: it leaves every listing at once and stays recoverable until the retention policy purges it. Every delete is recorded in the activity log, and a file that was anchored keeps its on-chain proof either way. Both are marked as destructive so Claude asks for confirmation, but the final responsibility for approving them is yours.You can bring a deleted vault, file or record back in the ROOTKey app, and Claude can do it too with rootkey_restore_vault, rootkey_restore_file and rootkey_restore_record, if your token has the rootkey.delete scope. A restore never needs your approval. If your organization asks you to approve every delete, the delete is refused the first time, you approve it in the ROOTKey app under Pending approvals, and Claude then repeats the same call once: see Delete approvals.

Keep the token narrow

A token with only rootkey.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

Setting ROOTKEY_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.
This is useful for analysis and reporting sessions where nothing should change. Treat it as a convenience rail rather than a security control: what a call can do is decided by the token’s scopes and the organization’s agent mode, not by this switch, so anything else holding the token can still do whatever the token allows.

Upgrading from an API key

Version 0.3.0 accepts only a personal access token. A configuration that still sets ROOTKEY_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:
  1. Create a personal access token with the scopes you need, covering the organization or organizations the key belonged to.
  2. In your client configuration, replace ROOTKEY_API_KEY with ROOTKEY_TOKEN, and set ROOTKEY_ORGANIZATION to the organization id (rootkey_list_organizations shows it). If the key was a test key, add ROOTKEY_TEST_MODE=true.
  3. 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.
What changes with the token:
  • 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_point and the backup_workspace prompt are gone: the API refuses them to agents. Use the ROOTKey app for them. rootkey_list_recovery_points stays.
  • 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.
The organization API key itself keeps working with the REST API. To stay on version 0.2 for now, run npx -y @rootkey/[email protected].

Troubleshooting

Confirm Node.js 20 or newer is installed and on the PATH (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 refuses to start, and says why on stderr, when 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.
The API does not accept the token. It may have expired (a token lasts at most 90 days), been revoked, or belong to an account that was deactivated, and the API gives the same answer for all of these. Create a new token under Account Settings → Personal access tokens and update ROOTKEY_TOKEN. Ask Claude to run rootkey_get_environment_info to see the API address the server is using.
The token can reach more than one organization and none was chosen. Ask Claude to call rootkey_list_organizations and tell it which one you mean, or set ROOTKEY_ORGANIZATION in the configuration. See Choosing the organization.
Refusals from the organization, your role or the token are decisions, not faults. The tool error names the cause and what has to change, and Claude is told to relay it to you and stop: not to retry, and not to try the same thing in another organization. Each one has an entry in Errors:Not sure which one applies? Ask Claude to run rootkey_get_environment_info: it shows the organization’s agent mode and the scopes your token has there.
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.
It is classified Restricted. Restricted vaults and tables are listed with 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.
That is expected. An agent can only list recovery points, so the server offers 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.
Your organization asks you to approve every delete an agent asks for. Nothing was deleted. Open the ROOTKey app, go to Pending approvals and approve it with a fresh two-factor check, then tell Claude to repeat the call. Claude should do it once and not in a loop. See Delete approvals.
A request went over a rate limit: your plan’s API rate limit, or the limit of an operation that has its own - Rate Limits says which apply. The server automatically retries once the period indicated by the 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.
ROOTKey was too busy to take the request for a moment. The server waits as long as the Retry-After header says and tries again, up to three attempts in all. It does this for listing and fetching, updating and deleting (GET, PUT and DELETE requests), but not for anything it sends as a POST, such as creating a file, a record or a vault: a repeat could create the same item twice. If one of those tools reports a 503, ask Claude to list the vault or table to see whether the item was created before you run the tool again. If a 503 keeps coming back, wait a little and try again, and contact [email protected] with the requestId the tool reports.
The write succeeded. Several ROOTKey create endpoints do not return the id of what they created, so the server looks it up immediately afterwards; when anchoring has not yet surfaced the item, that lookup comes back empty. Ask Claude to list the vault or table again in a moment and the item will be there.
Use the 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.

AI agents in your organization

Choose what agents may do in your organization, require two-factor authentication and block a member.

Hosted connector

Connect Claude or any MCP client by signing in, with no token.

Authentication

Create, scope and revoke the personal access token the server uses.

API Reference

Every endpoint the server wraps, with interactive examples.

Errors

Every code an agent can be refused with, and what to change.