Skip to content

Claude Code Integration

Claude Code supports MCP servers via the claude mcp add command. This is the fastest way to add mpak bundles.

Add any mpak bundle with a single command:

Terminal window
claude mcp add --transport stdio echo -- mpak run @nimblebraininc/echo

That’s it. The server is now available in Claude Code.

  1. claude mcp add registers the MCP server with Claude Code
  2. --transport stdio tells Claude Code this is a local process
  3. mpak run downloads, caches, and executes the bundle

For bundles that need API keys or other configuration:

Terminal window
claude mcp add --transport stdio ipinfo \
--env IPINFO_API_TOKEN=your-token-here \
-- mpak run @nimblebraininc/ipinfo

You can pass multiple --env flags:

Terminal window
claude mcp add --transport stdio myserver \
--env API_KEY=xxx \
--env DEBUG=true \
-- mpak run @owner/myserver

Claude Code supports different scopes for MCP server configuration:

Terminal window
# Local (default) - stored in ~/.claude.json, not shared
claude mcp add --transport stdio echo -- mpak run @nimblebraininc/echo
# Project - stored in .mcp.json, checked into git
claude mcp add --transport stdio --scope project echo -- mpak run @nimblebraininc/echo
# User - stored in ~/.claude.json globally
claude mcp add --transport stdio --scope user echo -- mpak run @nimblebraininc/echo
Terminal window
claude mcp add --transport stdio echo -- mpak run @nimblebraininc/echo@1.0.0
Terminal window
# List all configured servers
claude mcp list
# Get details for a server
claude mcp get echo
# Remove a server
claude mcp remove echo
# Check server status (within Claude Code)
/mcp

Instead of passing --env flags, you can store configuration with mpak:

Terminal window
# Store config once
mpak config set @nimblebraininc/ipinfo api_key=your-token
# Then add without env flags
claude mcp add --transport stdio ipinfo -- mpak run @nimblebraininc/ipinfo

mpak resolves stored config automatically when running.

  1. Test the bundle runs directly:

    Terminal window
    mpak run @nimblebraininc/echo
  2. Check Claude Code’s MCP status:

    /mcp

Ensure mpak is installed globally:

Terminal window
npm install -g @nimblebrain/mpak
which mpak # Should show the path

Run the bundle directly to see any error output:

Terminal window
mpak run @nimblebraininc/echo