mcp-server
v0.1.1Nanorix Model Context Protocol (MCP) server — drive sealed ephemeral capsule lifecycle as agent tools.
This is the agent-native front door to Nanorix. An orchestrating agent (Claude Desktop, Cursor, Windsurf, or your own internal agent) decides at runtime to route a sensitive task through a capsule, and these MCP tools are how it does that. Nanorix attests structural facts: that capsule *X* ran and produced AuditProof *Y*, and that *Y*'s hash chain and signature are intact. Nanorix does not certify regulatory adequacy — that is the role of your auditor.
Summary extracted from the README.
@nanorix/mcp-server
Nanorix as a Model Context Protocol (MCP) server. Give an AI agent the ability to spin up a sealed, ephemeral Nanorix capsule, run a regulated job inside it, fetch the result, and obtain an AuditProof — cryptographic evidence of what ran and that the data was destroyed — then verify that proof independently.
This is the agent-native front door to Nanorix. An orchestrating agent (Claude Desktop, Cursor, Windsurf, or your own internal agent) decides at runtime to route a sensitive task through a capsule, and these MCP tools are how it does that.
What makes this different from a Vault / AWS / Snowflake MCP server: every capsule the agent drives produces an AuditProof — an independently verifiable cryptographic record of the work. The
nanorix_verify_auditprooftool lets the agent (or a downstream consumer) confirm that record offline, without trusting the Nanorix API. None of the other secret/data MCP servers emit verifiable evidence of what the agent actually did.
What it is (and isn't)
- It is a thin consumption surface over the existing Nanorix REST API and
the official
@nanorix/sdkoffline verifier. It adds no new cryptographic object — the AuditProof is produced by the ordinary capsule lifecycle (create -> exec -> destroy), exactly as it is for SDK or API callers. - It isn't a new signed primitive, a "session manifest," or any change to the AuditProof format.
What Nanorix attests vs. what it doesn't
Nanorix attests structural facts: that capsule X ran and produced
AuditProof Y, and that Y's hash chain and signature are intact. Nanorix does
not certify regulatory adequacy — that is the role of your auditor. When the
nanorix_verify_auditproof tool returns PASS, that is a structural
integrity result (the chain and signature verify), not a statement that any
regulation is fulfilled.
You declare the data_classification (PHI / PII / financial / credentials /
general) and any metadata. Nanorix never inspects or infers them.
Tools
| Tool | What it does |
|---|---|
nanorix_create_capsule |
Open a sealed capsule for a regulated job. Returns a capsule_id. |
nanorix_upload |
Put an input file into the capsule (text or base64). |
nanorix_exec |
Run a command inside the capsule; returns stdout/stderr/exit code. |
nanorix_download |
Retrieve an output file (do this before destroy). |
nanorix_destroy |
Destroy the capsule; returns the terminal AuditProof. |
nanorix_get_auditproof |
Fetch the AuditProof JSON for a capsule. |
nanorix_verify_auditproof |
Independently verify an AuditProof, offline. Returns structural PASS/FAIL. |
nanorix_status |
Check a capsule's lifecycle status. |
nanorix_list_capsulefiles |
List the runtimes/entrypoints (Capsulefiles) you can launch. |
A typical agent flow:
nanorix_list_capsulefiles
-> nanorix_create_capsule (capsulefile, data_classification)
-> nanorix_upload (input files)
-> nanorix_exec (run the workload)
-> nanorix_download (fetch outputs)
-> nanorix_destroy (get the AuditProof)
-> nanorix_verify_auditproof (confirm it independently)
Install & build
cd tools/nanorix-mcp-server
npm install
npm run build # produces dist/
npm test # vitest
Requires Node.js >= 18 (the offline verifier uses Web Crypto Ed25519).
Authentication
The server reads your Nanorix API key from the NANORIX_API_KEY environment
variable. Keys begin with nrx_live_ (production) or nrx_test_ (test). Get a
key at https://app.nanorix.io/settings/api-keys.
export NANORIX_API_KEY="nrx_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
nanorix_verify_auditproof runs entirely offline and needs no API key.
Its result includes verification_scope (except when the proof was given as a
string that is not JSON), which says what PASS covers: the
signature was checked against the key the proof itself carries (stage 7), and
that key was not resolved against a trust chain, so who signed is not
established. PASS and FAIL keep their meaning as a cryptographic check.
Claude Desktop configuration
Add this to your Claude Desktop config file
(~/Library/Application Support/Claude/claude_desktop_config.json on macOS,
%APPDATA%\Claude\claude_desktop_config.json on Windows), then restart Claude
Desktop:
{
"mcpServers": {
"nanorix": {
"command": "node",
"args": ["/absolute/path/to/tools/nanorix-mcp-server/dist/index.js"],
"env": {
"NANORIX_API_KEY": "nrx_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
}
}
}
Replace the path with the absolute path to the built dist/index.js, and set
your real nrx_live_ key.
Cursor / Windsurf
Cursor and Windsurf use the same MCP server-config shape. In Cursor, open
Settings -> MCP -> Add new MCP server (or edit ~/.cursor/mcp.json); in
Windsurf, edit ~/.codeium/windsurf/mcp_config.json. Use the same block:
{
"mcpServers": {
"nanorix": {
"command": "node",
"args": ["/absolute/path/to/tools/nanorix-mcp-server/dist/index.js"],
"env": {
"NANORIX_API_KEY": "nrx_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
}
}
}
Any MCP-compatible host that launches a stdio server works the same way.
Transports
- stdio (primary):
node dist/index.js— what the config blocks above use. - HTTP (optional, hosted):
node dist/http.jslistens onPORT(default8765) atPOST /mcpusing the Streamable HTTP transport. stdio is recommended for desktop agents.
License
UNLICENSED / proprietary. Copyright Nanorix Inc. See repository terms.