MCP Servers for Claude Code

Connect MCP servers to Claude Code using project .mcp.json or the claude mcp commands, with deliberate scope and tool permissions.

Connect tools to Claude Code

Claude Code can connect terminal-based agent sessions to local or remote MCP servers. Scope matters: a project connection is shared through the repository, while a user connection follows you across projects. Prefer the CLI for registration when credentials or user-level settings are involved, and inspect a repository’s MCP file before trusting its processes.

Configuration location

Config file · Project scope: .mcp.json at the repository root

The project file uses mcpServers. For user scope, use claude mcp add --scope user rather than assuming .mcp.json in your home directory is the user configuration. Check the client documentation for managed settings and storage details.

  1. 1. Choose the scope explicitly

    Use project scope only for settings appropriate to share with repository collaborators. Use the CLI’s user scope for a private connection you want in multiple projects. Review all commands and endpoint hosts before registration, including any arguments copied from a README.

  2. 2. Register the connection

    For a local server, the CLI shape is claude mcp add --transport stdio <name> -- <command> <args>. For a Streamable HTTP server, use claude mcp add --transport http <name> <url>. Replace angle-bracket placeholders with documented values. Add --scope project when you intentionally want a project entry.

  3. 3. Inspect status and authentication

    Use claude mcp list to inspect registered servers and /mcp inside a Claude Code session to review connection state. Complete authentication only for a trusted service. If you edit .mcp.json directly, keep the mcpServers wrapper and merge rather than replacing unrelated entries.

  4. 4. Run a bounded tool call

    Start with a read-only request against a test resource. Review the tool’s permission request and arguments before approval. Keep secret tokens out of the shared project file, and use the provider’s documented environment or authentication mechanism instead.

Configuration example

Example: local Playwright MCP (requires Node.js 18+)
{
  "mcpServers": {
    "playwright": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "@playwright/mcp@latest"
      ]
    }
  }
}

This example launches a browser server via npx. Review the package and its current README before running it. Merge the named entry into your existing configuration, and do not commit secrets. Examples demonstrate the file format; they do not bypass a client’s trust or approval prompts.

Playwright MCP installation and tools

Troubleshooting

Check the selected scope, runtime, and working directory if a local server fails. For remote endpoints, distinguish http from legacy sse and use the documented transport. CLI flags and managed configuration can change; check the client documentation before relying on an unfamiliar option.

Check the client documentation

Client versions and menus change. When the installed version differs from this guide, prefer its current documentation.

20 servers to explore with Claude Code

A discovery shortlist, not a guarantee that every transport works in your installed client. Check each server’s configuration and authentication requirements.

# / ServerWhy pick itStarsLast commitRuntimeRemote
Choose structured browser interaction with persistent state and detailed inspection tools.38,243Oct 8, 2026nodeNo
Combine web discovery, structured extraction, live interaction, and recurring monitoring for agents.7,615Oct 16, 2026nodeNo
Bring the design's structure and assets into coding, with context filtering built into the handoff.15,999Oct 16, 2026nodeNo
Generate customizable UI components in your editor with previews and 21st.dev design inspiration.6,063Sep 9, 2026nodeNo
Use a compact browser toolset with a hosted starting point and configurable self-hosted alternative.3,399Jul 20, 2026nodeNo
Access MiniMax speech, voice, image, video, and music workflows from one MCP-enabled assistant.1,590Aug 20, 2026pythonNo
Combine prompt-driven Blender editing with scene inspection and optional external 3D asset pipelines.31,192Oct 6, 2026pythonNo
Use it for search plus page collection, with either local execution or authenticated hosted access.2,433Oct 15, 2026nodeNo
Choose between public project deployment and a hosted single-page preview, with the distinction explicit.439Jul 7, 2026nodeNo
Choose Neon-native branching and migrations with hosted authentication and project-scoped access.652Oct 16, 2026nodeNo
A focused chat-history query and summary server when the companion chatbot already collects your messages.1,028Dec 4, 2024nodeNo
A broad GitHub tool catalog for code and collaboration, with installation details explicitly unconfirmed.Not recordedPart of the modelcontextprotocol/servers monorepoOct 13, 2026nodeNo
A compact URL-and-prompt interface for turning web pages into structured JSON inside MCP workflows.181Oct 8, 2026nodeNo
Pick it to discover task-relevant MCP servers without knowing their names in advance.89Oct 16, 2026nodeNo
Connect AI-assisted coding with direct Unity scene, asset, testing, and build operations.15,026Oct 8, 2026c#No
Give agents GitHub-native repository context and issue, review, workflow, and security operations.33,663Oct 15, 2026goNo
Add symbol-aware IDE capabilities to coding agents instead of relying entirely on text search and edits.30,329Oct 15, 2026pythonNo
Choose task-specific AWS context and workflow integrations from a broad open-source server collection.9,782Oct 16, 2026pythonNo
Ground coding assistance in targeted library documentation, including version-specific examples.63,157Oct 16, 2026nodeNo
Combine Jira delivery workflows and Confluence knowledge access in one assistant integration.6,008Sep 19, 2026pythonNo