Sachin Uppal

MJO · Connect guide · Claude Code

How to connect an MCP server to Claude Code

By Sachin Uppal · 26 November 2026 · 3 min read · vendor docs checked 26 Nov 2026

MCP Journey Optimization (MJO), a term coined by Sachin Uppal, is the discipline of designing and measuring every step a person takes to find, connect, authorize, pay for and keep using a product inside an AI client such as Claude, ChatGPT, Gemini or an IDE over the Model Context Protocol.

Claude Code adds a remote MCP server with one terminal command, claude mcp add --transport http, and signs in through the /mcp menu. Connectors you have already added on claude.ai can appear in Claude Code without any setup.

For MCP Journey Optimization, Claude Code is the shortest Install stage of any client: one line, pasted once. The comparison with every other client is in the field guide.

What you need

Steps

  1. In your terminal, add the server:
    claude mcp add --transport http crushedwithit <your server URL>
    If the provider gave you a key instead of a sign-in, add it as a header: --header "Authorization: Bearer your-token" (short form -H).
  2. Choose where it is stored with --scope:
    ScopeStored inWho can use it
    local (default)~/.claude.jsonYou, in the current project
    project.mcp.json in the project rootEveryone on the project, through version control
    user~/.claude.jsonYou, in every project
  3. Start Claude Code and run /mcp. Select the server and follow the browser steps to sign in. Anthropic says tokens are stored securely and refreshed automatically. From the shell, claude mcp login crushedwithit does the same.
  4. Check it: claude mcp list shows every server; claude mcp get crushedwithit shows one.

Already added it on claude.ai?

If you are signed in to Claude Code with a claude.ai account, Anthropic says connectors you added at claude.ai/customize/connectors appear in Claude Code automatically, marked as coming from claude.ai. They load only when your active login is a claude.ai subscription; if /mcp doesn't list one, run /status to check. See the Claude guide.

What it looks like (captured 26 Nov 2026)

The command, and the real status Claude Code reported for a project-scoped server in a fresh folder.

Terminal: claude mcp add command and claude mcp list showing crushedwithit pending approval
A project-scoped server waits for you to approve it the next time you run claude; then /mcp signs you in.

Try it

Ask for something read-only. With the CrushedWithIt server as the example:

Use the crushedwithit tools to show my account and how many credits I can spend now.

For any server: "List the tools from <server name> and call the simplest read-only one." /mcp shows whether the server is connected if nothing happens.

Common errors and fixes

What you seeFixBasis
"Incompatible auth server: does not support dynamic client registration"The server needs pre-registered credentials. Register an OAuth app with the provider (redirect http://localhost:PORT/callback), then add with --client-id, --client-secret and --callback-port set to that port.Claude Code docs
Server slow to startRaise the startup timeout, e.g. MCP_TIMEOUT=10000 claude for 10 seconds.Claude Code docs
Warning about large tool outputClaude Code warns above 10,000 tokens; the default maximum is 25,000. Raise it with MAX_MCP_OUTPUT_TOKENS, or ask the server for smaller results.Claude Code docs
Project server not startingServers in .mcp.json need approval in interactive sessions. claude mcp reset-project-choices resets earlier choices.Claude Code docs
Connector shows "session token rejected"claude.ai rejected your Claude Code login token; authorising the connector again doesn't clear it. Follow the steps on Anthropic's errors page.Claude Code docs
Server SSE-onlyUse --transport sse. Anthropic says newer versions try HTTP first and fall back to SSE.Claude Code docs

How to disconnect

  1. Sign out first so the token is revoked: claude mcp logout crushedwithit (or Clear authentication in the /mcp menu).
  2. Remove it: claude mcp remove crushedwithit.

Anthropic notes that removing a remote server deletes its stored tokens locally but doesn't revoke them at the authorization server, which is why logout comes first.

Sources

Screenshots are being added.

Other clients: the MCP field guide compares all ten. The framework: MCP Journey Optimization (MJO).

Cite as: Uppal, S. (2026). How to connect an MCP server to Claude Code. sachinuppal.com.