Managing MCP servers
Open the MCP management interface with:Common subcommands
| Command | Description |
|---|---|
/mcp | Open the MCP management UI |
/mcp enable <name> | Enable a specific server by name |
/mcp disable <name> | Disable a specific server by name |
/mcp enable all | Enable all configured servers |
/mcp disable all | Disable all configured servers |
/mcp reconnect <name> | Reconnect a server that has dropped |
Server types
Claude Code supports three transport types for MCP servers:stdio — local process
stdio — local process
The server runs as a local child process. Claude Code spawns it and communicates over stdin/stdout. This is the most common type for local tools.
type is optional for stdio servers—omitting it defaults to stdio.SSE — server-sent events (remote)
SSE — server-sent events (remote)
The server is a remote HTTP endpoint that uses Server-Sent Events. Use this for hosted or shared MCP servers.SSE servers support optional OAuth configuration for delegated authentication.
WebSocket
WebSocket
The server communicates over a persistent WebSocket connection. Suitable for low-latency or streaming tool responses.
Configuration format
MCP server configuration is a JSON object where each key is the server name and the value is the server config. Configuration can live at two scopes:- Project scope —
.claude/settings.jsonin your project directory (affects only that project) - User scope —
~/.claude/settings.json(available in all projects)
Official MCP registry
Claude Code can browse and install servers from the official MCP registry. The registry is fetched at startup and updated automatically. To explore the registry, open the MCP management UI with/mcp and navigate to the Add server section.
MCP authentication
Some MCP servers require their own authentication flow. Use the/mcp interface and select a server to initiate its auth flow. Claude Code stores the resulting credentials separately per server.
For servers that support OAuth, the authorization flow opens in your browser, similar to the main Claude Code OAuth flow.
Listing MCP resources
MCP servers can expose resources in addition to tools. Resources are files, documents, or data that Claude Code can read and include in context. To see available resources from connected servers, use:Scoped MCP servers
MCP servers are scoped to control where they are available:| Scope | Where it applies |
|---|---|
user | All projects for the current user (~/.claude/) |
project | The current project only (.claude/) |
local | Current session only (not persisted) |
Bundled plugins that use MCP
Some built-in Claude Code plugins expose their functionality as MCP servers internally. The GitHub and Slack integrations are examples—they register MCP servers automatically when the plugin is enabled. You do not need to configure these servers manually. See Plugins for more information on enabling bundled plugins.Troubleshooting
Server fails to connect
Server fails to connect
- Verify the
commandorurlis correct and reachable from your machine. - Check that all required environment variables are set in the
envblock of the server config. - Run
/mcp reconnect <name>to retry the connection. - Run
/doctorto check the overall health of your Claude Code setup.
Tools from an MCP server are not appearing
Tools from an MCP server are not appearing
- Confirm the server is listed as connected in
/mcp. - Check that the server is not disabled. Use
/mcp enable <name>to re-enable it. - Restart Claude Code if you recently added or modified the server configuration.
Authentication errors on remote servers
Authentication errors on remote servers
- Open
/mcpand select the server. - Use the auth option to re-run the authentication flow.
- Verify that
headerscontaining tokens are still valid and not expired.