MCP server
The Model Context Protocol (MCP) is an open-source standard for connecting AI tools to external systems. An MCP server exposes a service’s tools, data and APIs so Claude Code can read and act on that system directly instead of working from text you paste in.
Claude Code adds servers with the claude mcp add command. Remote servers connect over HTTP, which the docs recommend for cloud services; local servers run as a process on your machine. Inside a session, /mcp shows connected servers and handles sign-in.
On AgentStackList, a tool gets the “MCP” badge when its official plugin bundles an MCP server configuration, or when the vendor documents an official server.
Every coding agent stores servers in its own file. Claude Code shares project servers through a .mcp.json at the repository root and asks for approval before using them; claude mcp reset-project-choices clears earlier approvals. MCP tools show up under names like mcp__github__create_issue, which is the name to use in permission rules.
Servers run with real access, so the MCP project publishes security best practices. A local server runs with your privileges, which is why clients offering one-click setup must show the full command and ask for approval, and why local servers should prefer the stdio transport. Servers must not accept tokens that were not issued to them (no token passthrough), and should ask for narrow scopes rather than wildcards such as files:*.
Claude Code also warns about prompt injection from servers that fetch outside content, and caps a single tool result at 25,000 tokens by default (adjust with MAX_MCP_OUTPUT_TOKENS). See our MCP security guide for the full list.
Where each coding agent configures MCP servers
- Claude Code MCP setup ·
.mcp.json (project, shared), ~/.claude.json (user / local scope) - OpenAI Codex MCP setup ·
~/.codex/config.toml (user), .codex/config.toml (project, trusted projects only) - Cursor MCP setup ·
.cursor/mcp.json (project), ~/.cursor/mcp.json (global) - GitHub Copilot MCP setup ·
.vscode/mcp.json (workspace; labeled deprecated in the guided flow, still supported), User-profile mcp.json (same label), .mcp.json at the workspace root (portable, mcpServers; experimental in MCP: Add Server) - Google Antigravity MCP setup ·
~/.gemini/config/mcp_config.json (global), .agents/mcp_config.json (workspace)
Sources, checked Oct 24, 2026: