What is an MCP server, and how does it work?
When Claude Code reads a Sentry error or files a Linear issue for you, it does so through an MCP server, and that is the short answer to what an MCP server is: a program that gives an AI application actions it can call (tools), data it can read (resources) and ready-made instructions (prompts). The official definition calls MCP servers "programs that expose specific capabilities to AI applications through standardized protocol interfaces" (MCP docs). Claude Code, ChatGPT or Cursor connects to the server, asks what it offers, and the model can then search your issues, read a database or send a message through it. Some servers run on your own computer and some live at a web address. The protocol itself, and why it exists, has its own explainer: what MCP (Model Context Protocol) is.
Where does the server sit?
MCP has three roles, and the specification (current revision 2026-07-28) defines each one (specification). Hosts are "LLM applications that initiate connections", such as Claude Code. Clients are "Connectors within the host application", one per server. Servers are "Services that provide context and capabilities". Messages between them are JSON-RPC 2.0.
So when you add a GitHub server to Claude Code, Claude Code is the host, it starts a client for GitHub, and GitHub's MCP server answers. Add five servers and the host runs five clients, one per server.
What a server offers: tools, resources and prompts
A server can expose three kinds of things, and each one is controlled by a different party (MCP docs):
- Tools are "functions that your LLM can actively call". The model decides when to use them. Examples from the docs: "Search flights", "Send messages".
- Resources are "passive data sources that provide read-only access to information for context". The application decides what to load, and every resource has its own URI.
- Prompts are "pre-built instruction templates that tell the model to work with specific tools and resources". The user picks them, and hosts often show them as slash commands.
A server does not have to offer all three. DeepWiki's documentation, for example, describes its server through three tools (read_wiki_structure, read_wiki_contents and ask_wiki_question) (DeepWiki docs), while a project tracker's server such as Linear's offers tools to find, create and update issues and comments.
How do MCP servers work on the wire?
The specification defines two standard transports (transports):
- stdio: the client launches the server as a subprocess on your machine and they exchange "newline-delimited messages over the standard streams".
- Streamable HTTP: "each message is an HTTP POST to a single MCP endpoint; replies arrive as a JSON object or a request-scoped SSE stream."
The 2026-07-28 revision also moved the base protocol to "stateless, self-contained requests" with capability negotiation on each request. Earlier revisions opened a session with an initialize handshake, and clients and servers detect the older style and fall back to it, so a server written last year still connects.
Older setup guides still mention a standalone SSE transport. Claude Code's MCP documentation lists it as deprecated ("The SSE (Server-Sent Events) transport is deprecated", Claude Code MCP docs), and Notion is shutting its /sse endpoint down on February 23, 2027 (Notion).
Local and remote servers
A local server is a program on your computer, started by the client over stdio. Microsoft's Playwright server is a typical one: the client runs npx @playwright/mcp@latest (it needs Node 20 or later) and gets browser automation tools (Playwright MCP). Local servers can reach your files and local tools, and they run with your permissions.
A remote server lives at an HTTPS address and speaks Streamable HTTP. Linear's is at https://mcp.linear.app/mcp, Sentry's at https://mcp.sentry.dev/mcp. There is nothing to install: you add the address and sign in.
One catch for remote servers used from claude.ai: Claude connects "from Anthropic's IP ranges", so the server has to be on the public internet on port 443, and private or VPN-only servers "won't connect" (Claude help center).
How sign-in works
For remote servers, OAuth is the common pattern. You add the address, the client opens the provider's sign-in page in your browser, and you approve access as yourself. Sentry says "all connections use OAuth"; Linear uses OAuth 2.1 with dynamic client registration and also accepts a bearer API key (Linear docs).
Not every server works that way. Context7 runs without a key, and an optional free API key raises its rate limits (Context7). DeepWiki is "a free, remote, no-authentication-required service" for public GitHub repositories (DeepWiki docs).
A local server that needs a credential usually gets it as an environment variable when the client starts it; in Claude Code that is the --env KEY=value option shown below. The token then sits with a program running under your account, so give each server a token scoped to the job, not your broadest one.
How do you add a server to Claude Code?
Claude Code has one command for both kinds (Claude Code MCP docs):
# remote server (the recommended form)
claude mcp add --transport http <name> <url>
# local stdio server
claude mcp add --env KEY=value <name> -- <command> [args...]
Then run /mcp inside Claude Code to sign in to any server that uses OAuth. claude mcp list, claude mcp get and claude mcp remove manage what you have.
Where the setting lives depends on scope. local is the default and is stored in ~/.claude.json. project writes a .mcp.json file in the project root that you can commit for your team. user makes the server available in every project.
Other hosts follow the same idea with a form instead of a command. In claude.ai you go to Customize, Connectors, "+ Add", "Add custom connector"; custom connectors are on every plan, but "Free users are limited to one custom connector" (as of November 2026). In ChatGPT you open Plugins, choose the plus button and "Add custom MCP server" (OpenAI help).
A worked example: Neotask's MCP server
Neotask, the company that publishes this blog, runs a remote server at https://neotask.ai/mcp. It uses Streamable HTTP and OAuth sign-in, so there is nothing to install. In Claude Code you add it with:
claude mcp add --transport http neotask https://neotask.ai/mcp
Run /mcp, choose neotask and sign in. You sign in as yourself, choose which Neotask account the connection works in, and can revoke it later in Neotask's settings.
It exposes more than 380 tools, covering approvals, automations, chat, email, integrations, leads, projects, SEO, websites and more. Which ones a given connection sees depends on the access you granted, your plan and your role, so two people connecting to the same address can see different lists.
It also shows how a server can put limits on an AI client. A connected agent can never do more than Neo, the personal agent inside Neotask, can do in your account. Spending money or sending anything outside Neotask needs a single-use approval card that an owner or admin answers, and deleting things, security settings and granting new access stay with people. Tools that start work need a runner enrolled on one of your computers; without one, they answer that setup is required. Connector sign-in is off on HIPAA accounts. Setup for ChatGPT, Codex, Cursor and other clients is on the Neotask MCP server page.
Seeing what a server exposes before you connect
The tool list is what the model will see, so it is worth reading before you connect anything. Our free MCP inspector does that without signing in: you give it a remote server's HTTPS address, and it shows the server's name, version and protocol version, then every tool with its parameters. If the server requires sign-in, the inspector shows the authorization server and the scopes the server publishes, so you know what you would be granting. It refuses private and internal addresses, which means it works only for servers reachable on the public internet.
To find servers in the first place, the official MCP Registry is "a community driven registry service" for MCP servers, still a preview release as of November 2026 (registry repository). The project also keeps reference servers (Everything, Fetch, Filesystem, Git, Memory, Sequential Thinking and Time), which it describes as "educational examples" rather than "production-ready solutions" (servers repository). For servers people use day to day, see the best MCP servers, grouped by job.
Frequently asked questions
Is an MCP server the same thing as MCP?
No. MCP is the protocol, and an MCP server is one program that speaks it to offer tools, resources or prompts. The MCP explainer covers the protocol.
Do I have to run an MCP server myself?
Only for local servers. Remote servers such as Linear's, Sentry's or Neotask's run at an HTTPS address, and you just add the URL and sign in.
Which transport should a new server use?
Streamable HTTP for anything remote, and stdio for a program that runs on the user's machine. The standalone SSE transport is deprecated in Claude Code.
Are MCP servers safe to connect?
Connect only servers you trust, because a server acts with the access you grant it. Use read-only modes where they exist (Linear's /mcp/readonly endpoint, Supabase's read_only=true option), and note that Supabase's docs warn about prompt injection.
Sources
- Understanding MCP servers, read November 29, 2026
- Model Context Protocol specification, read November 29, 2026
- Transports, specification 2026-07-28, read November 29, 2026
- modelcontextprotocol/servers, read November 29, 2026
- modelcontextprotocol/registry, read November 29, 2026
- MCP Registry, read November 29, 2026
- Connect Claude Code to tools via MCP, read November 29, 2026
- Get started with custom connectors using remote MCP, read November 29, 2026
- Developer mode and MCP apps in ChatGPT, read November 29, 2026
- microsoft/playwright-mcp, read November 29, 2026
- Linear MCP server, read November 29, 2026
- Sentry MCP, read November 29, 2026
- upstash/context7, read November 29, 2026
- DeepWiki MCP, read November 29, 2026
- Get started with Notion MCP, read November 29, 2026
- Supabase MCP, read November 29, 2026
- Neotask MCP server page: neotask.ai/mcp-server
- Neotask MCP inspector: neotask.ai/tools/mcp-inspector