TL;DR. Run claude mcp add --transport http {name} {url} --header "Authorization: Bearer {token}" from any terminal. Claude Code registers the MCP server immediately — no restart needed. Verify with claude mcp list.
What is an MCP server?
An MCP server (Model Context Protocol) is an external tool that Claude Code can call — search a database, deploy an app, query an API. MCP is the open protocol Anthropic uses to let Claude Code talk to tools without custom integrations for each one. Any service that speaks MCP is pluggable.
Hatchable's /mcp endpoint exposes tools for creating projects, deploying code, running queries against the project database, and more — all of it available to Claude Code once you register the server.
Before you start
- Claude Code installed. If you don't have it yet:
npm install -g @anthropic-ai/claude-codethenclaude loginto connect your Anthropic account. - A bearer token for the MCP server you're adding. For Hatchable, grab one for free — no signup form — at hatchable.com. Click Copy on any code panel and the command already contains a fresh token.
Add the server
-
Run
claude mcp addwith the server URLClaude Code accepts MCP servers on the HTTP transport with a single command. For Hatchable:
claude mcp add --transport http hatchable https://hatchable.com/mcp \ --header "Authorization: Bearer YOUR_TOKEN"For a different provider, swap in their URL and token. The format is the same.
-
Verify it registered
claude mcp listYou should see
hatchable(or whatever name you gave it) in the output, listed as connected. If it's missing, the add step returned an error you'll want to scroll back and read. -
Try it from inside a Claude Code session
Open any Claude Code session and ask a question that requires the server. For Hatchable, try:
claude "Create a new Hatchable project called hello-world and deploy a page that says hi."Claude Code will call the MCP server's tools in response. First time through it will ask for permission to invoke each tool — accept or add
--allowedToolsto your shell alias if you trust the server.
claude mcp add registers the server for the current project directory only. Pass --scope user to make it available in every Claude Code session, or --scope project to commit it to the current repo's .claude/settings.json so teammates share the same config.
Removing or updating a server
Remove with claude mcp remove {name}. To update (for example, to rotate a token), remove and re-add — claude mcp add will overwrite any existing entry with the same name.
Troubleshooting
Claude Code says "MCP server failed to connect"
Most often this is a transport mismatch. Make sure you passed --transport http for Hatchable — without it, Claude Code tries the default (stdio) and can't find a local binary to launch. Other common causes:
- Token expired. Hatchable auto-signup tokens are good for 30 days of inactivity. Generate a fresh one at hatchable.com.
- Typo in the URL. The endpoint is
https://hatchable.com/mcp— not/mcp/with a trailing slash. - Behind a corporate proxy. Claude Code honors the standard
HTTPS_PROXYenv var; if your workplace uses a TLS-inspecting proxy, add it before runningclaude mcp add.
The server is listed but tools aren't showing up
Run claude mcp list --verbose. If a server is listed but greyed out, Claude Code couldn't fetch its tool manifest — usually a 401 (bad token) or 404 (wrong URL). Re-run the add command with the correct value.
I want Claude Code to auto-approve tools
Pass --allowedTools mcp__hatchable__* to claude when launching, or add it to a .claude/settings.json in the project. Only do this for servers you fully trust — the whole point of the prompt is to give you a chance to refuse.
Deploy apps with Claude Code in minutes.
Free forever hosting with database, auth, and storage included.
Get started free →Frequently asked questions
Does adding an MCP server to Claude Code cost money?
Adding a server is free. What it costs to use depends on the server. Hatchable's MCP server is free — you bring your own Claude subscription, we host the apps it builds without charging for AI usage.
Can I use multiple MCP servers at the same time?
Yes. Claude Code keeps every registered server connected for the session and surfaces all of their tools. Register as many as you need with separate claude mcp add commands.
Where does Claude Code store MCP server config?
By default in the current project's .claude/settings.json. Use --scope user to store it globally under ~/.claude/ instead.
Do I need Claude Code to use Hatchable?
No. Hatchable works with any MCP-compatible AI tool — including Cursor, Codex, Antigravity, and OpenClaw. See our Cursor guide or Codex guide for the config format each one uses.
Is my Anthropic API key the same as my Hatchable token?
No. Your Anthropic key authenticates Claude Code to Anthropic's models. Your Hatchable token authenticates Claude Code (acting on your behalf) to the Hatchable MCP server. They're issued by different services and used for different things.