CLI commands and flags

claude mcp login <name>

Executes OAuth authentication for a specified MCP server directly from the command line.

Syntax

claude mcp login <name>

Example

Terminal
claude mcp login sentry

Type to search the reference, templates and lessons.