Skip to content
Academy ofAI Learning

Connect an MCP server to Claude

How to add a remote MCP server as a custom connector in the Claude app, add servers in Claude Code with claude mcp add, choose a scope and sign in. 8 min

Watch it done: connect an MCP server to Claude Code

$

Step 1 of 6

Add a remote server over HTTP: a name, then its URL. This uses the default local scope, so only you see it, and only in this project. Add --scope project to share it with the repository through .mcp.json.

  1. Add a remote server over HTTP: a name, then its URL. This uses the default local scope, so only you see it, and only in this project. Add --scope project to share it with the repository through .mcp.json. Type: claude mcp add --transport http team-docs https://mcp.example.com/mcp. prints an Added line to confirm the server was saved.
  2. Check every server you have added and whether Claude Code can reach it. Type: claude mcp list. lists each server with its health, for example Connected, Needs authentication or Failed to connect.
  3. Look at one server in detail. When you no longer need it, claude mcp remove team-docs takes it away. Type: claude mcp get team-docs. shows the details saved for that one server.
  4. Start a Claude Code session in the same project folder. Type: claude.
  5. Sign in to servers that use OAuth. Claude Code stores and refreshes the token for you, and Clear authentication in the same menu revokes it. Type: /mcp. shows each server and its status. Choose one that needs authentication and finish the sign-in in your browser.
  6. Ask in plain English. You do not name the tool: Claude picks it from the descriptions the server provides. Type: what does the team handbook say about booking leave?. Claude uses the server's tools if they fit the question and replies with what it found.

Commands from the official Claude Code MCP docs, checked 18 November 2026. mcp.example.com is a placeholder for your own server. Lines marked Note describe what happens and are not real output.

Step 1 of 6

Read

In the Claude app: add a custom connector

Remote MCP servers appear in the app as connectors. On Pro or Max, open Customize > Connectors, click + Add, then Add custom connector. Enter a name and the server's URL, review the sign-in settings Claude detects, and click Add. To use it, click + in a chat, choose Connectors and switch it on for that conversation. Where the sidebar now says Plugins instead of Customize, connectors are on that page.

On Team only Owners or Primary Owners can add one, under Organization settings > Connectors (Enterprise can also give this to a custom role). Members then find it in their connector list and click Connect to sign in with their own account.

Two limits, checked 18 November 2026: Free accounts get one custom connector, and the connection is made from Anthropic's cloud, not your computer. The server must be reachable on the public internet over the standard HTTPS port, so a localhost address will not work. A server behind your office VPN will not connect unless you allowlist Anthropic's published IP ranges.

Lesson notes: Connect an MCP server to Claude

Everything in this lesson as text, for revision or to read without the interactive steps. By the end you will be able to: You have connected an MCP server in the app or Claude Code with the right scope and sign-in.

  1. Step 1 of 6 · Read

    In the Claude app: add a custom connector

    Remote MCP servers appear in the app as connectors. On Pro or Max, open Customize > Connectors, click + Add, then Add custom connector. Enter a name and the server's URL, review the sign-in settings Claude detects, and click Add. To use it, click + in a chat, choose Connectors and switch it on for that conversation. Where the sidebar now says Plugins instead of Customize, connectors are on that page.

    On Team only Owners or Primary Owners can add one, under Organization settings > Connectors (Enterprise can also give this to a custom role). Members then find it in their connector list and click Connect to sign in with their own account.

    Two limits, checked 18 November 2026: Free accounts get one custom connector, and the connection is made from Anthropic's cloud, not your computer. The server must be reachable on the public internet over the standard HTTPS port, so a localhost address will not work. A server behind your office VPN will not connect unless you allowlist Anthropic's published IP ranges.

  2. Step 2 of 6 · Read

    Sign-in choices

    OAuth. Most hosted servers ask you to sign in through the browser. You can sign in now, sign in when it is first needed, or choose no sign-in for a public server. Leave the OAuth client on the recommended option unless the server's documentation says otherwise.

    Fixed credentials. If the server uses an API key or token instead, add it under Request headers and Claude sends it with every request. On Team and Enterprise that credential is shared by everyone who uses the connector, so give it only the access every member should have.

    Approve tool calls one at a time until you know how a server behaves. Choose Allow always only for a server and tool you are happy to let run unsupervised.

  3. Step 3 of 6 · Read

    In Claude Code: claude mcp add

    For a remote server, use the HTTP transport. For a program that runs on your own machine, use stdio and put its command after --. Then claude mcp list shows every server with its health, and /mcp inside a session shows status and handles sign-in.

    Connectors from your Claude account can also appear in Claude Code. If the same server name is defined in more than one place, Claude Code uses one definition, in this order of priority: local, project, user, plugin, then claude.ai connectors. Settings are not merged between them.

    Remote server
    claude mcp add --transport http notion https://mcp.notion.com/mcp
    Remote server with an API key header
    claude mcp add --transport http secure-api https://api.example.com/mcp \
      --header "Authorization: Bearer your-token"
    Local server
    claude mcp add --env AIRTABLE_API_KEY=YOUR_KEY --transport stdio airtable \
      -- npx -y airtable-mcp-server
    Check and tidy
    claude mcp list
    claude mcp get notion
    claude mcp remove notion
  4. Step 4 of 6 · Try it in the terminal

    Add a remote server

    Add the Notion MCP server at https://mcp.notion.com/mcp to Claude Code using the HTTP transport, named notion, at the default scope.

    Hint: claude mcp add, the --transport flag with http, then the name and the URL.

    Show the command
    $ claude mcp add --transport http notion https://mcp.notion.com/mcp
    Added HTTP MCP server notion with URL: https://mcp.notion.com/mcp to local config
  5. Step 5 of 6 · Read

    Scopes and sign-in in Claude Code

    Local (the default): only you, only in this project, stored in ~/.claude.json. Project: everyone in the repository, stored in .mcp.json at the project root, which you commit. User: you, in every project, also stored in ~/.claude.json. Add --scope project or --scope user to pick one.

    Never commit secrets in .mcp.json. Reference environment variables instead and let each person set their own. Claude Code asks each person to approve a project's servers before it uses them.

    If a server uses OAuth, run /mcp in a session and finish the browser sign-in. Claude Code stores and refreshes the token, and Clear authentication in the same menu revokes it.

    .mcp.json with a token from an environment variable
    {
      "mcpServers": {
        "crm": {
          "type": "http",
          "url": "https://crm.example.com/mcp",
          "headers": { "Authorization": "Bearer ${CRM_TOKEN}" }
        }
      }
    }
  6. Step 6 of 6 · Quiz

    Check your understanding

    Six developers need the same internal docs server whenever they work in one repository. Which scope?

    • Project, committed in .mcp.json, with any token read from an environment variable
    • Local, the default
    • User
    Show the answer

    Project, committed in .mcp.json, with any token read from an environment variable Everyone who clones the repository gets the server, approves it once, and keeps their own credentials.