Skip to content
Go To Dashboard

Connect Claude Code with MCP

Connect Claude Code directly to Sapiom’s local authoring MCP when you want to work from Claude’s terminal or IDE experience without opening Agent Studio.

You need Claude Code, Node.js 18 or newer, and network access for the first uncached npx download. A Sapiom account is not required to scaffold, check, or run an agent locally.

  1. From the folder in which you plan to use Claude Code, run exactly:

    Terminal window
    claude mcp add sapiom -- npx -y @sapiom/mcp

    Claude Code registers a local-scope stdio server by default. The configuration stores:

    FieldValue
    Registration aliassapiom
    Commandnpx
    Arguments-y @sapiom/mcp

    The -y flag accepts the npx package-install prompt. It does not authenticate you to Sapiom.

  2. Run:

    Terminal window
    claude mcp get sapiom

    The entry should report Connected and show npx with the arguments -y @sapiom/mcp. If Claude Code was already open, start a new session so it loads the new server.

  3. Three names appear in this setup, and each owns a different layer:

    NameWhat it identifies
    sapiomThe client-local alias you chose in claude mcp add
    @sapiom/mcpThe npm package Claude starts through npx
    sapiom_dev_*The local authoring tool namespace exposed by the server

    The alias does not rename the tools. After connecting, Claude should see tools including sapiom_dev_agents_scaffold, sapiom_dev_agents_check, and sapiom_dev_agents_run_local.

  4. Ask Claude to scaffold into an empty directory by calling sapiom_dev_agents_scaffold with an absolute dir and the default template. The scaffold is npm-install-ready, so run npm install before the first full check.

    Continue to Build your first agent for the exact scaffold, check, input, and verified local-run result.

The same package exposes local authoring and authenticated cloud-lifecycle tools:

OperationRequires a Sapiom account?Boundary
ScaffoldNoWrites a local project; may query npm for package versions
CheckNoType-checks, bundles, and validates locally
Local runNoRuns real step code with stubbed capabilities and no capability spend
Link, deploy, production run, inspect, schedule, signalYesReads or changes hosted Sapiom state

If a local operation works while sapiom_status reports signed out, that is expected. Authenticate only when you reach the first cloud action.

Install Claude Code and confirm the claude executable is on your PATH, then rerun the registration command.

Run claude mcp get sapiom outside an active Claude session. Confirm the command and arguments match this page, then start a new session. The first uncached start needs access to the npm registry.

The scaffold does not install dependencies. Run npm install in the scaffolded agent project, then call sapiom_dev_agents_check again.