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

Add the server

  1. Run claude mcp add with the server URL

    Claude 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.

  2. Verify it registered

    claude mcp list

    You 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.

  3. 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 --allowedTools to your shell alias if you trust the server.

Local vs. user scope. By default 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:

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.