promptgarten ๐ŸŒฑ
๐ŸŒ ES

Command reference ยท Claude Code

/mcp

Manages MCP server connections and OAuth authentication.

Manages MCP server connections and OAuth authentication. Without an argument, an interactive server list appears. 'reconnect <server>', 'enable'/'disable' with a name or 'all'. From v2.1.205 also non-interactive (-p) with a text summary.

โœ… WHEN TO USE IT?

Fix the connection status of an MCP server

An MCP server stops responding โ†’ run /mcp reconnect <server> to rebuild the connection.

Selectively disable individual MCP servers

Use /mcp disable <server> to temporarily turn off a rarely used server and reduce context/tool footprint.

โ›” WHEN NOT TO?

Setting up a brand-new MCP server for the first time

/mcp only manages existing connections (reconnect, enable, disable) and OAuth authentication, it does not create a new server configuration.

Better: Add the server to the MCP configuration (project or user level) first, then use /mcp to manage it.

SOURCES