Claude Code MCP Setup Guide: 3 Ways to Configure & Fix Errors Claude Code connects to external tools such as browsers, databases, and GitHub through MCP (Model Context Protocol), which supports two transport types: HTTP for already-deployed remote servers and stdio for locally run servers, according to a setup guide. HTTP servers are added with the command `claude mcp add --transport http `, with authentication tokens passed via `--header "Authorization: Bearer YOUR_TOKEN"`, while local servers use `claude mcp add --transport stdio -- [arguments]`, as in `claude mcp add --transport stdio playwright -- npx @playwright/mcp@latest`. The guide instructs users to verify connections with the `/mcp` command and troubleshoot failures in the order of MCP address, authentication information, network connection, and remote server status. Although Claude Code can complete tasks such as code writing and file operations, it still needs external tools to expand its capabilities in scenarios like browser automation, database queries, and GitHub operations. MCP Model Context Protocol is precisely the protocol that connects Claude Code with external tools. This article will introduce the role of MCP, Server selection, 3 configuration methods, and common error troubleshooting. MCP Model Context Protocol is an open protocol connecting AI applications, external tools, and data sources. Claude Code itself can perform tasks like code writing and file handling, while through MCP, it can further access external capabilities such as browsers, databases, and code repositories. From the perspective of working principles, Claude Code is responsible for understanding user needs and determining whether to call external tools, while the MCP Server is responsible for providing specific capabilities. Upon receiving a call request, the Server executes the corresponding operation and returns the result to Claude Code. In this way, different tools can be connected according to a unified protocol without building separate connection mechanisms for each tool. Currently, there are two main common transmission protocols for MCP: After understanding the transmission protocol of MCP, choosing an MCP Server can be distinguished according to the actual capabilities provided: Therefore, when choosing MCP, there is no need to blindly pursue quantity. First clarify the capabilities that need to be expanded, and then choose according to the function and running environment of the Server. HTTP MCP Servers are usually already deployed in remote environments, and Claude Code only needs to connect to the corresponding service address without installing and starting the Server locally. For beginners, this method has fewer configuration steps and is suitable for quickly connecting to an already set up MCP service. The basic command executed in Claude Code is as follows: claude mcp add --transport http