Skip to content
BENIBIX Learn

claude mcp login Command

Also known as claude mcp login, claude mcp logout, MCP sign-in from the shell

It signs you in to one MCP server from the shell.

Think of it like

It is like you show your card at the door, and then they let you in.

Example

Jack works on a remote machine over SSH. He runs claude mcp login with --no-browser, opens the link on his laptop, and pastes the result back.

Why it matters

A server that needs you to sign in can be set up by a script or over SSH too.

Definition

claude mcp login signs you in to one MCP server from the shell. You do not need to open /mcp in a session. It works for servers on the web and for claude.ai connectors. Over SSH, add --no-browser to print the sign-in link and not open a browser. claude mcp logout clears the sign-in it kept for that server.

Example code

bash
claude mcp login sentry --no-browser
Sign in to a server over SSH.
claude mcp login runs this sign-in for one server.

Common mistake

Running it for a server that runs on your computer. Those do not sign in this way. Only web servers and connectors do.

Key takeaways

  1. 1
    One server. By name.
  2. 2
    --no-browser. For SSH.
  3. 3
    logout. Clears it.

Learn it properly