Claude MCP servers let Claude Code work with external tools and data, and you can connect several servers to the same session. To adapt that architecture, choose whether each connection belongs to you or your project team, register the server, and limit what its tools can change.

Model Context Protocol (MCP) is an open standard that gives AI applications a common way to connect to external systems. In Claude Code, those connections can reach databases, APIs, and local processes—bringing actions such as querying data or publishing a post into the conversation.

What do MCP servers do in Claude Code?

Net Ninja demonstrates Claude Code MCP setup in a terminal using Context7 and Playwright examples.

An MCP server exposes tools and data that Claude Code can use through the protocol. Think of it as an adapter: the server handles the connection to a particular system, while Claude Code coordinates the tools available in your session.

Anthropic’s MCP documentation describes both local servers and remote HTTP connections. A local server can communicate over stdio, short for standard input and output: Claude Code exchanges messages with a process running on your computer. A remote server instead provides a connection over HTTP.

The distinction matters when you’re getting started. A local connection needs a command that launches the server process; a remote connection uses a different transport. You don’t need to turn every local integration into a hosted web service.

Tutorial presenter Net Ninja describes the purpose as the ability to:

“connect and communicate with external data sources, services, and APIs.” — Net Ninja, tutorial presenter, on YouTube

How independent MCP servers divide the work

Claude Code connects to four independent MCP servers, each linked to its own resource: the Spellcast API, PostgreSQL, macOS Photos through JXA, or Markdown files.

A developer writing on HackerNoon reports using four independent MCP servers with 259 tools in total. The arrangement connects social publishing, product analytics, a photo library, and a Markdown blog to Claude Code.

ServerToolsMain functionsConnected system
Spellcast MCP133Social publishing, analytics, campaigns, automation, and engagementSpellcast API
Lunary MCP97Product analytics, content, astrology functions, and operationsPostgreSQL
Photos MCP22Photo search, management, and publication preparationmacOS Photos through JXA and osascript
Blog MCP7Listing, retrieving, creating, updating, deleting, and publishing postsMarkdown files

In the developer’s account, Claude Code launches all four servers as Node.js processes using stdio. The servers neither call one another nor share state; Claude coordinates the workflow across them. For Photos MCP, JXA—JavaScript for Automation—provides the bridge to macOS Photos through osascript.

That division offers a useful architectural choice. You can organize integrations around distinct systems and responsibilities rather than building one server that must handle everything. A blog’s file operations and a photo library’s automation interface can remain separate even when you use both from one conversation.

The author reports roughly 15,000 lines of TypeScript across the implementation, with Zod validating parameters in Spellcast MCP and Lunary MCP. The account also describes replacing tools that mirrored individual API endpoints with composite tools built around recurring workflows. That is a design choice worth considering when several low-level calls always belong to the same task.

The author estimates saving 8–10 hours per week and reports Photos queries taking 1–2 seconds in this implementation. Those figures describe the developer’s own estimated savings and observed query times.

Does a large tool catalog fill Claude’s context?

Claude Code’s tool search defers MCP tool definitions until they’re needed, reducing the amount of tool-description text loaded into context. A tool definition describes an action and the inputs it accepts; a large catalog therefore raises a discovery question as well as an organization question.

For your own design, focus on whether Claude can find an appropriate tool and whether its responsibility is clear. Grouping tools by useful workflows can help keep that responsibility understandable as the catalog grows.

Where should personal and shared MCP settings live?

Claude Code separates a server’s configuration scope from its transport. A server that runs locally can have settings that apply to one project, follow you across projects, or are shared with a project team.

ScopeConfiguration fileWho uses the configuration
Local~/.claude.jsonYou, within the current project
Project.mcp.json at the project rootPeople sharing the project
User~/.claude.jsonYou, across your projects

Choose local scope for a personal connection tied to one project. Choose user scope when you want that personal connection available across your projects. Project scope fits a team that needs a common server configuration.

The developer’s four-server account uses a .claude.json example for its arrangement. For a team-shared project connection, Anthropic specifies .mcp.json at the project root. That scope decision determines who receives the configuration when the project is shared.

How do you register a local stdio server?

Anthropic gives this command pattern for registering a local stdio server:

claude mcp add --transport stdio <name> -- <command> [args...]

The parts have distinct jobs:

  • <name> identifies the server in Claude Code.
  • <command> launches the server process.
  • [args...] represents any arguments that process needs.
  • -- separates Claude Code’s options from the server command and its arguments.

Replace the angle-bracketed fields with the values for your server. Put server-specific flags after -- so Claude Code doesn’t interpret them as its own options. Anthropic also supports passing required environment variables with --env.

The Node.js processes in the developer’s account illustrate this local-process model. The registration pattern tells Claude Code how to launch a server; the server’s own implementation handles access to its API, database, application, or files.

How do you control what MCP tools can change?

MCP tools can have consequential access: the blog server described here includes deletion and publishing, while the analytics server queries a database. Set permissions around those individual actions and the credentials behind them.

Anthropic advises connecting only to servers you trust and warns that external content retrieved through a server can create prompt-injection risk. In practical terms, outside text may contain instructions intended to redirect the assistant. Bringing content into the conversation also brings that risk into the workflow.

For database work that only needs queries, Anthropic’s example recommends a read-only database account. This constrains access at the database itself: the account’s privileges determine whether it can modify data.

If the task only needs database reads, give the database account read-only access. Put the restriction at the system that holds the data.

Claude Code’s permission controls support rules that allow an action, ask for approval, or deny it. For a blog integration, listing posts and deleting them are separate operations that deserve separate permission decisions, even when one server exposes both.

If you build an MCP server and an action must receive a human decision every time, Anthropic supports this tool metadata setting:

_meta["anthropic/requiresUserInteraction"]: true

That flag forces a permission prompt for every call to the marked tool. It belongs to the tool’s metadata. Approval to use a project-scoped server and approval for a particular tool call are separate controls.

How can you tell whether an MCP server is connected?

Claude Code provides several ways to inspect a server after registration:

  • claude mcp list lists configured servers and their status.
  • claude mcp get <name> inspects a particular server’s configuration.
  • /mcp opens the server panel inside Claude Code.

Connection statuses include Connected, Needs authentication, and Failed to connect. A successful add operation writes the configuration; the connection status tells you whether the server has connected or needs further attention.

After registering a server, open /mcp in the session you intend to use and check for Connected before asking Claude to use its tools.