AI Agent Integration

By registering NodeCrypto with an AI agent such as Claude Code or Codex, you can build cryptographic workflows in natural language. The agent reads the node catalog, authors a workflow draft, verifies it against test vectors, and saves it as an .ncw file. You then open that file in the web app to inspect and review it on the canvas.

1. guide & catalog Lookup node schemas 2. validate Check types & ports 3. run (expect) Verify test vectors 4. expand Save .ncw file 5. Web App File > Open Runs 100% locally via stdio MCP (npx -y @curealls/nodecrypto mcp) with zero network ports

Installation

Every MCP client uses the exact same server command. It downloads and runs the npm package @curealls/nodecrypto; on one line it is:

npx -y @curealls/nodecrypto mcp

What each part means. In a configuration file, the leading npx is the command and the rest is the args array. Only the place where you register it differs by client.

Step 1. Prerequisite: check Node.js

Node.js 20 or later is required. There is no separate NodeCrypto installer. Open a terminal (PowerShell on Windows, Terminal on macOS/Linux) and run both commands:

node --version
npx --version

If a version of v20.0.0 or higher is printed, you are ready. If a command is not found or the version is below 20, install the LTS release from https://nodejs.org/ and open a new terminal.

Step 2. Check that the package runs (recommended)

This step is optional. Even if you do not install the package beforehand, npx -y downloads it automatically when the agent first starts the server. Running it in advance is still recommended: otherwise the connection may be delayed or time out during those first few seconds, and you learn about network or Node.js problems before registering. A downloaded package stays in the cache and is reused.

npx -y @curealls/nodecrypto --version

Check that a version is printed.

Step 3. Register with your agent

Claude Code

Register the server with a single terminal command. Everything after -- is the command used to launch the server. Run only the one line that fits your purpose.

For the current project only (default):

claude mcp add --transport stdio nodecrypto -- npx -y @curealls/nodecrypto mcp

For all projects:

claude mcp add --transport stdio --scope user nodecrypto -- npx -y @curealls/nodecrypto mcp

Saved in the project's .mcp.json and shared with your team:

claude mcp add --transport stdio --scope project nodecrypto -- npx -y @curealls/nodecrypto mcp

Then verify with:

claude mcp list

Codex

OpenAI Codex (CLI and IDE extension) registers the server with a single terminal command. Everything after -- is the command used to launch the server.

codex mcp add nodecrypto -- npx -y @curealls/nodecrypto mcp

Then verify with:

codex mcp list
[mcp_servers.nodecrypto]
command = "npx"
args = ["-y", "@curealls/nodecrypto", "mcp"]

VS Code, Cursor, and Other Clients

Add the same command to your client's MCP configuration file. The file location and top-level JSON key vary by client.

ClientConfiguration FileTop-Level Key
VS Code.vscode/mcp.json in the workspace, or "MCP: Add Server" in the Command Paletteservers
Cursor.cursor/mcp.json in the project, or ~/.cursor/mcp.json in your home directorymcpServers

VS Code example:

{
  "servers": {
    "nodecrypto": {
      "command": "npx",
      "args": ["-y", "@curealls/nodecrypto", "mcp"]
    }
  }
}

Cursor uses the same mcpServers structure as Claude Code's .mcp.json. For any other MCP client, look for where it registers a "standard I/O (stdio) server: command npx, arguments -y @curealls/nodecrypto mcp".

Client configuration formats change frequently. If your client UI differs from the instructions above, consult your client's official MCP documentation. The examples above were verified against each client's official documentation on 2026-10-19.

Windows

Verifying the Connection

Try asking your agent:

Prompt
Use the NodeCrypto tool to find the node that encrypts with AES.

If the agent invokes the catalog tool of nodecrypto and shows nodes such as symmetric-aes-encrypt, the connection is working. If the agent asks for permission the first time it calls a tool, approve it.

Usage Example

Prompt
Build an HMAC-SHA256 workflow using RFC 4231 Test Case 1, verify it, and save it as a file.

The agent typically works through the following five steps:

  1. guide: Reads the authoring guide.
  2. catalog: Searches for the required nodes and inspects their exact port and property definitions rather than guessing node types or port names.
  3. validate: Checks the draft workflow for structural or type errors and fixes any issues.
  4. run: Executes the workflow and compares the output against the expected test vector values (expect).
  5. expand: Saves the verified workflow as an .ncw file and reports the saved file path.

Agents typically attach per-node memos explaining which RFC section or test vector was used and why specific parameter values were chosen, making it much easier to review the workflow on the canvas.

Saving and Opening Workflows

Where Files Are Saved

Overwriting Existing Files

If a file with the same name already exists, it is overwritten by default. If you do not want existing files overwritten, include "Do not overwrite if the file already exists; let me know instead" in your prompt. The agent will call expand with overwrite: false, which aborts saving and reports when the file already exists.

Opening in the Web App

  1. Open the NodeCrypto web app (https://nodecrypto.dev/).
  2. Click "File > Open" in the menu and select the saved .ncw file.
  3. The workflow opens in a new tab. Because an opened file tab is not yet persisted to browser storage, use "Save As" if you want to keep a copy in your workspace.

The web app does not connect directly to the AI agent; the .ncw file is the bridge between the two.

Security Precautions

Conversations with an AI agent pass through an external AI service. Never include production secret keys, passwords, or personal data in your prompts or input values. Always build and verify workflows using public test vectors (such as RFC test vectors), and enter real keys only inside the local web app.

Upgrading

NodeCrypto MCP runs through npx rather than a global install, so there is no installer to update. If your registration does not pin a version of @curealls/nodecrypto, the latest version is used when you restart the agent after a new release. However, npx keeps previously downloaded packages in its cache and may reuse them, so an older version can keep running even after a restart.

  1. Check which version actually runs.
    npx -y @curealls/nodecrypto --version
  2. Force a download of the latest version to compare.
    npx -y @curealls/nodecrypto@latest --version
  3. To always use the latest version, change the registered arguments to -y @curealls/nodecrypto@latest mcp. To pin a specific version, write the version number instead, such as @0.2.5. With a pinned version you must edit this number yourself to upgrade.
  4. If an older version still runs, clear the npx cache. Find the cache location with npm config get cache and delete the _npx folder inside it; the next run downloads the package again.
  5. Fully quit and restart the agent. The server is a process started by the agent, so a restart is required for the new version to take effect.

If you installed globally with npm install -g @curealls/nodecrypto, update it with npm update -g @curealls/nodecrypto.

Uninstalling

Removing the registration from your client is enough. Once it is removed, the agent no longer starts the server.

1. Remove the registration from your client

2. Clean up the cache and global install (optional)

3. Saved workflow files

Removing the registration or clearing the cache does not delete the .ncw files the agent saved. If you no longer need them, delete them yourself from the save location (default: the nodecrypto-workflows folder in your home directory).

Troubleshooting

SymptomWhat to Check
Tools do not appearCheck the JSON syntax (commas and quotes) in your configuration file. In Codex, restart it for config changes to take effect. Check the server status with codex mcp list (Codex) or claude mcp list (Claude Code).
npx cannot be foundCheck whether node --version and npx --version work in a terminal. If they work in a terminal but fail inside the agent, the agent's launch environment does not have npx on its PATH. Specify the full absolute path to npx in command, or reinstall Node.js and restart the agent. On Windows, also check that the %APPDATA%\npm folder exists.
Disconnects immediately after connectingVerify that Node.js is version 20 or higher. Run npx -y @curealls/nodecrypto mcp directly in a terminal: if it waits silently for input without printing an error, the server is working properly (press Ctrl+C to exit). If it prints an error message, follow that message. You can also inspect the client's MCP logs for server stderr output.
Cannot find where the file was savedAsk the agent: "Tell me the full path of the saved file." If no custom path was used, check the nodecrypto-workflows folder inside your home directory.
Opened file shows old contentSaving again with the same file name overwrites the file on disk, but any tab already open in the web app does not reload automatically. Re-open the file via "File > Open".