
What Is Claude Code MCP and How Does It Connect to SuperLab?
Claude Code without MCP is blind to your workspace.
Claude Code MCP (Model Context Protocol) is an open standard that lets Claude Code sessions communicate with external services through a structured tool interface. SuperLab's MCP server implements this protocol, exposing 32 named tools that map to the SuperLab REST API at
https://superlab.my/api/claude-code/*. Claude calls these tools directly during a session, reads or writes your SuperLab data, and surfaces the results inline with no manual copy-paste of project state.
Quick version. Tested with Claude Code 2.1.330 on 22 November 2026. Once the server is built (Steps 1 and 2 below) and SUPERLAB_API_KEY is set, three commands connect it. Replace ~/.superlab with your install folder if it differs:
claude mcp add --scope user --transport stdio superlab \
--env SUPERLAB_API_KEY="$SUPERLAB_API_KEY" \
--env SUPERLAB_URL=https://superlab.my \
-- node ~/.superlab/mcp-server/dist/index.js
claude mcp get superlab # expect: Status: ✔ Connected
claude mcp list # expect: superlab: node ... - ✔ Connected
Without MCP, every Claude Code session starts blank. You manually describe your open goals, active projects, and task queue in each prompt. That works for one-off requests. It breaks down for ongoing agent work across dozens of repos.
With the SuperLab MCP server connected, you call superlab_overview at session start and get a live snapshot of active goals and projects. From there, every tool call reads or writes real data.
The server uses stdio transport (it runs as a local process, not a network daemon) and authenticates to superlab.my with a bearer token tied to your account. The Model Context Protocol specification defines the wire format; SuperLab's server implements it on top of @modelcontextprotocol/sdk (its package.json accepts ^1.12.1; the build we tested resolved version 1.27.1).
What Tools Does the SuperLab MCP Server Give You Access To?
Thirty-two tools, organized into six functional groups plus learning hub and employee-management add-ons.
The SuperLab MCP server exposes 32 callable tools across six core categories plus learning hub and employee-management add-ons: goals and milestones, projects and tasks, notes, CRM, skills, and agent workflow. Each tool hits a specific endpoint on the SuperLab API and returns a JSON response. Errors surface as inline tool results with
isError: trueso Claude can retry or escalate without crashing the session.
| Category | Tools |
|---|---|
| Goals | superlab_overview, superlab_list_goals, superlab_create_goal, superlab_update_goal, superlab_manage_milestone |
| Projects & Tasks | superlab_list_projects, superlab_create_project, superlab_update_project, superlab_link_project, superlab_link_project_to_goal, superlab_manage_tasks, superlab_manage_subtasks, superlab_manage_routines, superlab_get_project_config |
| Notes & Activity | superlab_notes (search, create, list), superlab_log_activity |
| CRM | superlab_crm_contacts, superlab_crm_interactions |
| Skills | superlab_list_skills, superlab_get_skill, superlab_create_skill, superlab_update_skill, superlab_delete_skill |
| Agent Workflow | superlab_approve_task, superlab_request_decision, superlab_check_decision, superlab_agent_status |
| Learning Hub | superlab_search_learning, superlab_get_learning_item |
| AI Employees | superlab_manage_employees, superlab_employee_memory, superlab_employee_report |
We counted these by starting the server we built from the download and asking it for its tool list on 22 November 2026: 5 goal tools, 9 project and task tools, 2 notes and activity tools, 2 CRM tools, 5 skills tools, 4 agent workflow tools, 2 learning hub tools and 3 employee tools, 32 in total. superlab_manage_employees is for user sessions; the other two employee tools are for employee sessions.
Start every session with superlab_overview. It fires two parallel API calls — one for active goals, one for active projects — and merges them into a single response. That single call replaces manually re-reading your project notes at the start of each session.
What Are the Prerequisites for This Setup?
Three prerequisites. No exceptions.
You need a current Claude Code release, a recent Node.js, and a SuperLab account at superlab.my. The MCP server builds from TypeScript using
tscand uses ES modules. We built and ran it on Node.js 24.22.3, with Claude Code 2.1.330, on 22 November 2026. Sign in to Claude Code with your Claude account or an Anthropic API key; the SuperLab server needs neither.
SuperLab accounts are invitation-only today. If you do not have one yet, join the early-access list on the SuperLab home page.
Check both before starting:
claude --version
node --version # we tested on v24.22.3
If Node.js is missing or very old, install a current release from nodejs.org. The MCP server package uses "type": "module" in package.json. We did not test older Node.js versions, so we do not state a minimum.
Claude Code CLI is available as a standalone binary and inside the Claude desktop app. Either works. The MCP registration persists across sessions once added.
How Do You Get Your SuperLab API Token?
Generate it from the SuperLab settings panel. It is shown once.
Your SuperLab API token is a bearer credential generated from the Claude Code card on the Integrations settings page. SuperLab stores the SHA-256 hash, not the plaintext, so once you leave the page the token cannot be retrieved. Regenerating a token invalidates the previous one. Treat it like a password: keep it in an environment variable or a secrets manager, never in committed files.
Steps:
- Log in at
https://superlab.my - Open Settings → Integrations and find the Claude Code card
- Click Generate Token (or Regenerate Token if you already have one)
- Copy the displayed token immediately
The token authenticates both the MCP server and the agent daemon. One token covers both services.
How Do You Install and Register the SuperLab MCP Server?
Download and build the server, then register it with claude mcp add.
Download the SuperLab MCP server from superlab.my, run
npm install && npm run buildinside the extractedmcp-server/folder, then register the compiled server withclaude mcp add --scope user. User scope makes the registration available in every project on that machine, and the server starts with each new session. On our test machine the download, install and build took well under a minute.

Step 1: Download and build the MCP server
mkdir -p ~/.superlab
curl -fsSL -o /tmp/mcp-server.tar.gz https://superlab.my/downloads/mcp-server.tar.gz
tar xzf /tmp/mcp-server.tar.gz -C ~/.superlab
cd ~/.superlab/mcp-server
npm install
npm run build
The archive extracts to a mcp-server/ folder. The build compiles the TypeScript sources to dist/. Confirm dist/index.js exists before proceeding. If you have access to the SuperLab repository, you can run the same npm install && npm run build inside its mcp-server/ folder instead.
Step 2: Set environment variables
Export both variables in the shell you register from. To keep them across terminals, add them to ~/.zshrc (or ~/.bashrc), or load the token from a secrets manager. A plain-text token in a profile file is convenient but is the weakest option:
export SUPERLAB_API_KEY="your-token-here"
export SUPERLAB_URL="https://superlab.my"
# macOS: make vars available to daemon and spawned sessions
launchctl setenv SUPERLAB_API_KEY "$SUPERLAB_API_KEY" 2>/dev/null
launchctl setenv SUPERLAB_URL "$SUPERLAB_URL" 2>/dev/null
Reload: source ~/.zshrc
The launchctl setenv lines are required if you plan to run the agent daemon. The daemon spawns Claude Code sessions via launchd, which does not inherit your interactive shell environment. Without launchctl setenv, those sessions cannot reach SUPERLAB_API_KEY and every tool call returns a 401.
Step 3: Register with Claude Code
claude mcp add --scope user --transport stdio superlab \
--env SUPERLAB_API_KEY="$SUPERLAB_API_KEY" \
--env SUPERLAB_URL="$SUPERLAB_URL" \
-- node ~/.superlab/mcp-server/dist/index.js
On Claude Code 2.1.330 this printed Added stdio MCP server superlab ... to user config. If your shell does not expand ~ in the command, use the absolute path.
Scopes. Local scope (the default) registers the server for one project only. Project scope writes a .mcp.json file at the project root so a team can share it. User scope registers it for every project on your machine, which suits a personal workspace tool.
Project scope and .mcp.json. When we ran the same command with --scope project, Claude Code wrote a .mcp.json file and kept "SUPERLAB_API_KEY": "${SUPERLAB_API_KEY}" as a literal reference. The server then showed ⏸ Pending approval (run claude to approve), which means it will not run until you approve it by starting claude in that project. Use the ${VAR} form in any file you commit and never commit a real token.
Step 4: Verify the connection
Check the registration from your shell:
claude mcp get superlab
claude mcp list
On Claude Code 2.1.330 the first command printed Scope: User config, Status: ✔ Connected and Type: stdio, and the second printed superlab: node ... - ✔ Connected. Note that claude mcp get prints the environment values in clear text, so with a real token it prints your token. Do not paste that output into chats, tickets or screenshots.
Then start Claude Code with claude and run /mcp inside the session. SuperLab should appear in the connected server list. Call superlab_overview: if it returns your active goals and projects, the API key is valid and the server is reachable.

Have the server running and want to test it end-to-end? Call
superlab_overviewin your next Claude session. If you see your active goals and project counts, the connection is live.
How Do You Configure Per-Project Context?
One line in each repo's CLAUDE.md.
Add
SUPERLAB_REPO_URL: https://github.com/org/repoto each project repo'sCLAUDE.mdfile. SuperLab's session startup hook reads this URL, looks up the matching project, and pre-loads its task and goal context at session start. Without this line, tools that require arepo_urlparameter — including note creation and project linking — will return a validation error.
Example CLAUDE.md entry:
SUPERLAB_REPO_URL: https://github.com/SuperVentureStudio/SuperLab
This ties the session to a specific SuperLab project. When you call superlab_manage_tasks without passing a project_uuid, the server can resolve the correct project from the repo URL.
If a project doesn't have a GitHub remote yet, use superlab_link_project to create and associate it:
superlab_link_project with:
github_repo_url: "https://github.com/org/repo"
local_path: "/absolute/path/to/repo"
Omit project_uuid to create a new project. Pass it to link to an existing one.
How Do You Use SuperLab MCP Tools in a Claude Session?
Call them by name. They behave like any other tool.
SuperLab MCP tools are available the moment you open a registered Claude Code session. Call them by name with structured JSON arguments. Responses return JSON. Errors return inline with
isError: trueso Claude can handle them in-context. The most common session pattern isoverview → list tasks → create or update— three calls covering most daily workflow needs.
Common patterns:
Orientation at session start:
superlab_overview → active goals + project list with task counts
Check approved task queue:
superlab_manage_tasks
action: "list"
status: "approved"
Create a task under a project:
superlab_manage_tasks
action: "create"
project_uuid: "<uuid from list_projects>"
title: "Implement the payment gateway integration"
description: "..."
priority: "high"
Log an architectural decision:
superlab_notes
action: "create"
repo_url: "https://github.com/org/repo"
type: "decision"
title: "Chose Stripe over Paddle for MY market"
content: "Reason: Stripe supports MYR natively..."
Approve a task for the daemon to execute:
superlab_approve_task
uuid: "<task-uuid>"
execution_context: "local"
The daemon picks up approved tasks within its poll interval (default: 5 minutes) and spawns a dedicated Claude Code session.
What Are Common Claude Code MCP Setup Mistakes?
Six failure modes cover most broken setups.
The six most common Claude Code MCP setup mistakes are: registering the server before building it (empty
dist/), not runninglaunchctl setenvfor daemon sessions (401 errors in spawned sessions), registering with a relative path instead of an absolute path (server fails silently on reload), not updatingdist/after source changes, putting--envdirectly before the server name, and pasting a token with hidden whitespace. They produce different symptoms but share one fix: re-run the setup steps in order and checkclaude mcp get superlab.
Mistake 1: Registering before building
If dist/index.js doesn't exist when you run claude mcp add, Claude Code registers the path but the server process fails immediately. We reproduced this with a path that does not exist: claude mcp get showed Status: ✘ Failed to connect and Issue: CONNECTION_CLOSED: Connection closed. Fix: run npm run build first, then re-register.
Mistake 2: Missing launchctl setenv for daemon use
The daemon spawns Claude Code sessions via launchd. Those sessions don't inherit your shell's export vars. The MCP server inside those sessions gets undefined for SUPERLAB_API_KEY and exits with a fatal error. Fix: add both launchctl setenv lines to your shell profile and reload.
Mistake 3: Using a relative path in the registration command
# Wrong — breaks when Claude Code changes its working directory
claude mcp add superlab -- node ./mcp-server/dist/index.js
# Correct — absolute path always resolves
claude mcp add superlab -- node /Users/yourname/superlab/mcp-server/dist/index.js
Mistake 4: Not updating dist/ after source changes
After editing any file in mcp-server/src/, you must rebuild and replace the local installed copy:
cd mcp-server && npm run build
cp dist/index.js ~/.superlab/mcp-server/dist/index.js
Skip this and the server runs the old compiled version. Tool behavior changes from src/ don't reach live sessions until the installed copy is updated.
Mistake 5: Putting --env directly before the server name
# Wrong: the flag swallows the server name
claude mcp add --env SUPERLAB_API_KEY=... superlab -- node ~/.superlab/mcp-server/dist/index.js
# Correct: name first, flags after
claude mcp add --scope user --transport stdio superlab --env SUPERLAB_API_KEY=... -- node ~/.superlab/mcp-server/dist/index.js
On Claude Code 2.1.330 the wrong form failed with Invalid environment variable format: superlab, environment variables should be added as: -e KEY1=value1 -e KEY2=value2.
Mistake 6: Pasting a token with a trailing newline or space
Per the Claude Code documentation, Claude Code warns when an MCP config value carries hidden leading or trailing whitespace, which often comes from pasting a token with a trailing newline. We did not test this warning. If you see it, copy the token again without the trailing character and re-register.
What Is the Difference Between a Claude Code Plugin and an MCP Server?
A plugin is a bundle. An MCP server is one tool provider that a plugin can include.
A Claude Code plugin can bundle skills, hooks and MCP servers, while an MCP server is a single process that exposes tools over the Model Context Protocol. SuperLab is a plain MCP server, not a plugin, so you add it with
claude mcp addand manage it withclaude mcpcommands. Per the Claude Code documentation, servers that come from a plugin are added and removed by installing or uninstalling the plugin, not through/mcp.
If you see "Claude Code" and "MCP" used as if they were competing options, they are not: Claude Code is the client, and MCP is the protocol it uses to talk to servers such as SuperLab.
What Do You Do When the Connection Fails?
Read the status line first, then run the server by hand.
When SuperLab does not connect, run
claude mcp get superlaband read theStatus:andIssue:lines. A broken path or an unbuilt server shows✘ Failed to connectwithCONNECTION_CLOSED. A missing token makes the server exit withFATAL: SUPERLAB_API_KEY environment variable is required. SuperLab authenticates with a bearer token, not OAuth, so a 401 after a regenerated token means you must update the token and re-register.
What we tested on Claude Code 2.1.330 on 22 November 2026:
- Wrong or missing build.
claude mcp getshowedStatus: ✘ Failed to connectandIssue: CONNECTION_CLOSED: Connection closed. - Missing key. Starting the server by hand with
node ~/.superlab/mcp-server/dist/index.jsand noSUPERLAB_API_KEYprintedFATAL: SUPERLAB_API_KEY environment variable is required. Running the server in a terminal like this is the quickest way to see its own error message. - Regenerated token. Generate a new token on the Integrations page, update
SUPERLAB_API_KEY, then remove and re-add the server (claude mcp remove superlab -s user, then theclaude mcp addcommand from Step 3).
Per the Claude Code documentation (not run for this article): in an interactive session, /mcp lets you reconnect a failed server, and /mcp reconnect all retries every failed server on Claude Code 2.1.284 or later. The documentation also describes automatic reconnection for remote servers that drop mid-session; SuperLab uses a local stdio server, so that path does not apply to it.
How Do You Set Up the Daemon for Autonomous Task Execution?
Install it as a macOS LaunchAgent. It runs persistently in the background.
The SuperLab agent daemon polls the SuperLab API every 5 minutes (configurable via
POLL_INTERVAL), claims approved tasks with matchingexecution_context, and spawns Claude Code sessions to execute them. It runs as a macOS LaunchAgent and survives reboots.MAX_SESSIONS(default: 2) caps concurrent execution to prevent resource exhaustion.

Install
mkdir -p ~/.superlab/daemon ~/.superlab/skills
cp /path/to/superlab/agent-daemon/dist/* ~/.superlab/daemon/
cp /path/to/superlab/agent-daemon/package.json ~/.superlab/daemon/
Configure
Create ~/.superlab/daemon/.env:
SUPERLAB_URL=https://superlab.my
SUPERLAB_API_KEY=your-token-here
AGENT_NAME=local-daemon
AGENT_TYPE=local
MAX_SESSIONS=2
POLL_INTERVAL=300000
PROJECT_DIR=/Users/yourname/Code
SKILLS_DIR=~/.superlab/skills
Lock permissions:
chmod 600 ~/.superlab/daemon/.env
Key configuration notes:
AGENT_TYPE=local— claims tasks withexecution_context=localorany. Does not claimremotetasks.PROJECT_DIR— fallback root when a task'slocal_pathis missing or mismatched.MAX_SESSIONS— the daemon queues tasks beyond this limit and claims them as sessions complete.ANTHROPIC_API_KEY— not needed for Claude OAuth subscriptions. Only set if using API-key-based auth.
Start
~/.superlab/daemon/start.sh
Expected output:
[daemon] SuperLab Agent Daemon starting
[daemon] Polling every 300s
[daemon] Agent name: local-daemon
[daemon] No claimable or resumable tasks found
When a task is approved via superlab_approve_task, the daemon claims it on the next poll cycle, spawns a session in the task's project directory, and runs it with the task description as its initial prompt.
For persistent background execution, register it as a LaunchAgent in ~/Library/LaunchAgents/com.superlab.daemon.plist. The setup guide at docs/local-setup.md in the SuperLab repo includes the full plist template.
Can You Use the SuperLab MCP Server from an Agent Framework?
Yes. MCP is not tied to Claude Code.
Any MCP client can run the SuperLab server over stdio, including agent frameworks. We connected Microsoft Agent Framework's
MCPStdioToolto the SuperLab server on 22 November 2026 withagent-framework1.26.0 and it listed all 32 tools. The code and the framework comparison are in our multi-agent framework guide.
See the multi-agent framework comparison for the tested snippet and how the frameworks differ.
Keep Reading
- Multi-Agent Framework Comparison
- How to Build an MCP Server
- AI Project Management: Tools, Features & Setup
Frequently Asked Questions
How do I verify that Claude Code MCP is connected to SuperLab?
Run claude mcp get superlab in your terminal. On Claude Code 2.1.330 it printed Status: ✔ Connected for a working server, and claude mcp list showed the same state. Then open a session, run /mcp, and call superlab_overview: if it returns your active goals and project list, the token is valid. A 401 means the token was regenerated; get a new one from Settings → Integrations.
Do I need an Anthropic API key to use Claude Code MCP?
No. The SuperLab server needs no Anthropic credentials. Claude Code itself signs in with your Claude account or an Anthropic API key, whichever you use today. The SUPERLAB_API_KEY environment variable is your SuperLab workspace token, unrelated to Anthropic credentials. You only need ANTHROPIC_API_KEY if you run Claude Code in API-key mode, for example in a CI pipeline or the agent daemon on a remote server.
How many tools does the SuperLab MCP server expose?
The build we tested on 22 November 2026 lists 32 tools: 5 goal tools, 9 project and task tools, 2 notes and activity tools, 2 CRM tools, 5 skills tools, 4 agent workflow tools, 2 learning hub tools and 3 employee tools. Run superlab_list_skills to see which skills are installed on your account, these complement the base tools with workflow-level playbooks.
What happens if the daemon does not claim approved tasks?
Check three things: (1) AGENT_TYPE=local is set in the daemon config and the task's execution_context is local or any — tasks with execution_context=remote are never claimed by a local daemon; (2) MAX_SESSIONS has not been reached — check superlab_agent_status for running session count; (3) the poll cycle has completed — the daemon checks every POLL_INTERVAL milliseconds (default 300000 = 5 minutes), so tasks approved just after a poll wait for the next cycle.
Can I run the MCP server without setting up the daemon?
Yes. The MCP server and daemon are independent components. The server runs inside interactive Claude Code sessions and handles tool calls in real time. The daemon handles autonomous background task execution on a poll schedule. Most workflows start with the server only. Add the daemon when you want tasks to run unattended — for example, scheduled routines or a queue of approved agent tasks.