Home

›

What Is an MCP Server? How It Works, With Examples

What Is an MCP Server? How It Works, With Examples

An MCP server is a small program that lets an AI assistant use an app or a data source through the Model Context Protocol. What it exposes, how it works, local and remote servers, real examples and how to pick safe ones.

A central connector links an AI chat window to app icons for files, chat, code and a database.

An MCP server is a program that gives an AI assistant access to one app, service or data source through the Model Context Protocol (MCP). It tells the assistant which actions it offers, such as searching files or creating an invoice, runs them when asked, and sends back the results. One server per app; any compatible assistant can use it.

If you have connected Claude, ChatGPT, Cursor or another assistant to your calendar, your files or a business tool in the last year, there is a good chance an MCP server was doing the work in the background. This guide explains what that piece is, how it works and how to tell a good one from a risky one. It reflects the protocol as of its 28 July 2026 specification.

In this guide

MCP servers in one minute

Large language models are good at reading and writing, but on their own they cannot see your inbox, query your database or file a ticket. Before MCP, every AI app that wanted those abilities had to build a separate connector for every service, and every service had to support every AI app in its own way.

The Model Context Protocol, released as an open standard by Anthropic in November 2024 and donated to the Linux Foundation’s Agentic AI Foundation in December 2025, replaced that tangle with one common language. A service builds one MCP server. Any assistant that speaks MCP can then use it.

A useful comparison is a printer driver. You do not need a different word processor for each printer brand; the driver translates. An MCP server is the driver between an AI assistant and one piece of software. There is a fuller explanation of the protocol itself in what MCP is.

Where the server sits: hosts, clients and servers

The specification describes three roles, and the server only makes sense next to the other two.

RoleWhat it isExample
HostThe AI application you useClaude, ChatGPT, Cursor, VS Code
ClientThe connector inside the host that talks to one serverOne client per connected server
ServerThe program that exposes an app or data sourceA GitHub, Slack or database server

The host is what you see. Inside it, a separate MCP client is created for each server you connect. The server is on the other side of that line, and it can belong to someone else entirely: the host comes from an AI company, the server often comes from the company whose app you are connecting, or from an independent developer.

This split matters for trust. The host decides what the model is allowed to do and asks you before risky steps. The server decides what the app will accept. Neither should rely on the other to do its job.

What an MCP server exposes

An MCP server offers its abilities in a small number of standard shapes. The three core ones are tools, resources and prompts.

Tools are actions the model can call. Each tool has a name, a description written for the model, and a schema describing its inputs. “search_issues”, “send_message” and “create_invoice” are typical tool names. Tools are what most people mean when they say an assistant “can now use” an app.

Resources are pieces of context the server can provide: files, records, documents, database rows. They are read rather than run. A documentation server, for instance, might expose each page as a resource the assistant can pull in.

Prompts are ready-made templates the server suggests for common jobs, such as “summarise this pull request” or “draft a weekly report”. In most hosts they appear as commands or shortcuts you can pick.

On top of these, the protocol has extensions. The best known in 2026 is MCP Apps, which lets a server send a small interactive interface, such as a chart or a booking form, for the host to display inside the conversation instead of plain text.

The descriptions matter more than they look. The model reads them to decide which tool to use and how. A server with clear, honest descriptions gets used well; one with vague or misleading descriptions gets used badly, or can be used to mislead the model on purpose.

How a request travels, step by step

Here is what happens when you ask an assistant connected to a project management server to “move the login bug to In Progress”:

  1. Discovery. The host’s client asks the server which tools it offers and caches the list. Since the 2026 specification, servers can say how long that list stays valid, so the host does not have to ask every time.
  2. Choice. The model reads your request and the tool descriptions, and decides to call “update_issue” with the issue name and the new status.
  3. Approval. The host shows you the call, or applies a permission you set earlier, before anything is changed.
  4. Execution. The client sends the call to the server. The server checks the request, calls the project tool’s own API with your credentials, and gets the result.
  5. Answer. The server sends the result back, and the model tells you what happened.

All messages use JSON-RPC, a plain and long-established format for remote calls. Nothing in the flow is magic: the server is ordinary software that translates between the model’s request and the app’s own interface. That is also why an MCP server is not a replacement for an API but a layer on top of one, a point covered in API vs MCP.

Local and remote MCP servers

MCP servers come in two broad kinds, and the difference shapes how you install, trust and use them.

Local servers run on your own computer. The host starts them as a small program and talks to them over standard input and output. They are ideal for things that live on your machine: your files, a local database, a code repository. They need nothing exposed to the internet, but they run with your computer’s permissions, so installing one is like installing any other program.

Remote servers run on someone else’s infrastructure and are reached over the internet using the protocol’s Streamable HTTP transport. You connect by adding a web address and signing in, usually through an OAuth screen like the ones you already know from “Sign in with Google”. Most SaaS companies now offer remote servers, because they work across devices and need no installation. There is a longer comparison in remote MCP servers.

Local serverRemote server
Where it runsYour computerThe provider’s servers
How you connectInstall and configureAdd a URL and sign in
Best forFiles, local tools, developmentSaaS apps, shared team access
Main riskCode running on your machineAccess to your account in the app
Works on phoneUsually noUsually yes

Examples of MCP servers

Thousands of MCP servers exist, from large vendors and from individual developers. They fall into a few families:

  • Developer tools: GitHub, GitLab, Sentry, databases such as PostgreSQL. These were among the first, because developers adopted MCP early.
  • Work and documents: Google Drive, Notion, Slack, Linear, Jira, Asana. These let an assistant find, summarise and update work across tools.
  • Business systems: accounting, payments, customer relationship management and analytics. Payment and finance servers usually limit write actions carefully.
  • Infrastructure and hosting: cloud providers, DNS, hosting control panels, deployment platforms.
  • Data and search: web search, documentation, research databases and company knowledge bases.
  • Local utilities: file system access, a browser the assistant can drive, a calculator, a code runner.

Anthropic’s original announcement shipped reference servers for Google Drive, Slack, GitHub, Git, Postgres and Puppeteer. Since then the official MCP Registry has become a central place to find published servers, and most hosts have their own directory of approved connectors.

What changed in the 2026 specification

MCP is versioned by date. The specification released on 28 July 2026 was the largest revision since launch, and several of its changes affect servers directly:

  • Stateless by default. The old opening handshake and session identifiers are gone. Each request carries its own protocol version and client details, so any copy of a server behind an ordinary load balancer can answer it. Remote servers became much easier to run at scale.
  • Cacheable tool lists. Servers can mark their lists of tools, prompts and resources with a lifetime, which cuts repeated traffic and keeps the model’s view stable.
  • Questions back to the user. When a server needs more information mid-task, it now returns a request for input and the client retries with the answer, instead of holding a connection open.
  • Stronger sign-in rules. Clients must check which authorisation server issued a code, and credentials are tied to the issuer that created them.
  • Retirements. The old HTTP plus Server-Sent Events transport is deprecated with a year to move off it, and the sampling, roots and logging features are deprecated with at least twelve months of notice.
  • Extensions. Tasks for long-running jobs, MCP Apps and enterprise-managed authorisation now live as official extensions that can evolve on their own schedule.

For someone using MCP servers rather than building them, the practical effect is that remote servers have become more common, faster and easier to sign in to.

Why SaaS companies are shipping MCP servers

For a software company, an MCP server is now part of the product, much like a mobile app or a public API became part of it a decade ago. The reasons are straightforward.

People work through assistants. If a customer asks their assistant to “add this to my CRM” and your CRM has no MCP server, the assistant either fails or uses a competitor that has one.

One build, many hosts. A single server works with every MCP-compatible assistant. Before MCP, each AI integration was a separate project.

It reuses the API. Most servers are thin layers over an API the company already maintains, so the cost is modest.

It favours small, focused products. A tool that does one job well can be just as usable inside an assistant as a large suite. That is good news for the small SaaS products I care about, and part of why I think it is worth understanding how these servers work.

The risks, and how to choose a server you can trust

An MCP server acts on your behalf, often with the same access you have. That is the point, and also the risk. The main problems are well documented in the specification’s own security guidance:

  • Over-broad access. A server that asks for full access to your account when it only needs to read is a bigger target than it needs to be.
  • Prompt injection. Text inside an email, a web page or a document can contain instructions aimed at the model. If the model follows them, it can misuse the tools it has.
  • Tool poisoning. A malicious server can describe its tools in ways that steer the model, or change the descriptions after you approved them.
  • Confused deputy and token misuse. Poorly built remote servers can pass your credentials to places they should not go. The specification forbids accepting tokens that were not issued for the server itself.
  • Unknown code. A local server is a program on your computer. An unvetted one can read whatever you can read.

A short checklist covers most of this:

  1. Prefer official servers from the company whose app you are connecting, or servers listed in the official registry or your host’s directory.
  2. Grant the least access that does the job. Read-only is enough for search and summaries.
  3. Keep approval prompts on for anything that sends, pays, deletes or publishes.
  4. Connect only what you use. Every extra server is more surface for mistakes and attacks.
  5. Review connections now and then, and revoke the ones you no longer need from the app’s own security settings.

The longer version, with what each risk looks like in practice, is in MCP security.

Frequently asked questions

Do I need to install an MCP server to use one?

Not always. Remote servers only need a web address and a sign-in, and many hosts list them in a directory you can connect from in a couple of clicks. Local servers do need installing, usually through a configuration file or a one-click installer in the host.

Are MCP servers free?

The protocol is open and free to use. Most servers from SaaS companies are free to connect but use your existing account, so what you can do depends on your plan. Some independent servers are paid, and some hosted servers charge for usage.

Can an MCP server work with any AI assistant?

It works with any host that supports MCP, which by 2026 includes Claude, ChatGPT, Gemini, Microsoft Copilot, Cursor, VS Code and many others. Support for newer features can lag behind the specification, so a server may work everywhere but show its richer features only in some hosts.

What is the difference between an MCP server and a plugin?

A plugin is built for one specific app. An MCP server follows a shared standard, so the same server can be used by many different assistants. Several AI products that once had their own plugin systems now use MCP instead.

Can I build my own MCP server?

Yes. Official software development kits exist for TypeScript, Python, Go and C#, with others in progress, and a basic server that exposes one or two tools is a short project for a developer. The harder parts are authentication and deciding exactly which actions to allow.

Sources