MCP servers
MCP (Model Context Protocol) servers give an agent new tools: a database, a browser, your issue tracker.
Adding one
claude mcp add docs -- npx docs-mcp-servercodex mcp add docs -- npx docs-mcp-serverclaude mcp list
The part after -- is the command that starts the server. Once added, its tools are available in every session of that agent. /mcp inside a session lists what's connected.
The cost
Each server adds its whole list of tools, with their descriptions, to the context of every conversation, whether you use them or not. Add the servers you need for the project you're on, and remove the rest with claude mcp remove <name>. In the simulator, each server shows up as a yellow block in the context window.
Trust
An MCP server is a program that runs on your computer and sees what the agent sends it. Install servers from sources you trust, the same way you would any other package.