# What Is an MCP Server? The Adapter That Lets an AI Agent Reach Your Issue Tracker, Database, and Files

Host, client, and server explained through the one job an MCP server does — plus why the same server works in Claude Code, Cursor, and Codex, and where the trust boundary moves the moment you connect one.

> mcp · coding-agents · ai-assisted development · About 6 min · Nov 29

## Key points

1. An MCP server is a small adapter program that exposes one outside system's capabilities, most often as tools and sometimes also as resources and prompts, to an AI app using a published protocol instead of a bespoke integration.
2. The roles are three: the host is the AI app you talk to, an MCP client inside the host holds one connection, and the server is the adapter to one system; client and server exchange structured messages and announce their capabilities at the start.
3. One server works in Claude Code, Cursor, and Codex because the contract is public and unowned, so each host implements the client half and each server implements the server half, but that portability only reaches features a host has actually shipped.
4. A server can run locally as a process the host launches over standard input and output, or remotely as a URL the host connects to behind an OAuth sign-in; either way, connecting one is configuration rather than programming.
5. Connecting a server moves the trust boundary: its tool descriptions and everything it returns enter the model's context alongside your request, so text written by strangers can arrive as instructions.
6. Every call runs with the credentials the server holds, and a local server runs with your account's permissions, so scope tokens narrowly, prefer read-only access for read-only work, and read any MCP config that arrives inside a repository before approving it.
7. Tool descriptions are part of the interface, because the model picks calls by reading them, which is why a vague description produces wrong calls as readily as a weak model does.

---

You open Claude Code in your project folder and ask something a colleague could answer in a minute: why did three customers fail checkout last week? The agent reads every file in that folder, then tells you the answer isn't there. It sits in a Linear ticket filed on Tuesday and in a row of the production database. The agent's hands stop at the edge of the directory it was started in.

An MCP server is the piece you attach to move that edge. If you searched for what is an MCP server, the short answer is this: a small adapter program that offers one outside system's capabilities to an AI app in a standard shape, so the model can look things up and take actions there instead of only talking about them. MCP stands for Model Context Protocol, an open specification Anthropic published in late 2024 together with software kits and a set of reference servers. The protocol is the contract; a server is one implementation of it, usually written by whoever owns the system you want to reach, or by someone in the community.

The word "server" misleads almost everyone at first, because it suggests a machine humming in a data centre. Sometimes it is one. More often it is a small program on your laptop that the AI app starts when needed, or a website a company runs for its customers. The job is the same either way: sit between the model and one outside system, translate in both directions, hand back an answer.

Three roles make up the whole picture. The host is the AI app you talk to: Claude Code, Cursor, Codex, a chat app. The client is a connector inside the host, one per connection, holding that one conversation open. The server is the adapter to a single system: your issue tracker, a database, a folder of documents, a payment API. Host and server never talk directly. The client does the talking, sending structured requests and receiving structured replies, and both sides open by announcing what they support.

```mermaid
flowchart LR
  U["You"] --> H["Host: Claude Code, Cursor, or Codex"]
  H --> C1["MCP client"]
  H --> C2["MCP client"]
  C1 -- "stdio: process on your machine" --> S1["MCP server for local files or database"]
  C2 -- "HTTP: a URL" --> S2["MCP server for issue tracker"]
  S1 --> D1["Your disk"]
  S2 --> D2["Vendor API"]
```

A server offers three kinds of things, and the first matters for most people most of the time. Tools are functions the model may call, each with a name, a description, and described arguments: search_issues taking a query and a project, run_query taking SQL, create_ticket taking a title and a body. Resources are read-only content the server hands over on request, addressed like a document. Prompts are ready-made templates a person picks from a menu. A server can offer all three or only tools, and tools are what you will mostly meet.

This connects to something already established in this series: a coding agent is a loop with tools, reading output and revising until the goal is met, rather than a bigger model. MCP is how you hand that loop tools you did not write. Which makes the tool description part of the interface, not paperwork. The model picks what to call by reading the names and descriptions. A tool described as "query data" invites a guess; a tool that says it runs read-only SQL against the orders table and returns at most 200 rows invites the right call.

Why does one server work in Claude Code, in Cursor, and in Codex without anyone rewriting it? Because the contract belongs to nobody. The message format, the handshake, the three kinds of capability, the error shapes: all of it is specified in public, and each host implements the client half while each server implements the server half. Without a standard, every AI app that wanted to read Linear needed its own integration, and every tool vendor needed one integration per app, so the work multiplied. With a protocol it adds up instead. The same trick let any browser open any website and any mail app write to any other. The server does not care which host connected, which is why the same GitHub server appears in three products' setup guides.

The honest qualification: "works everywhere" holds at the protocol level only, and approximately in practice. A host may implement tools but not resources or prompts. A newer revision of the spec may add machinery, such as an authorization flow, that a host has not shipped yet. Check the host's own list of supported features rather than assuming.

A server runs in one of two arrangements, and the choice decides who holds your data. Local: the host launches a command on your machine and talks to it over standard input and output. Servers that read local files, query a database on your laptop, or reuse a command-line login you already have usually work this way. Remote: the server is a service with a URL, and the host connects over the network. Those normally require authorization, and the specification defines an OAuth-based flow so you sign in and grant scoped access instead of pasting a long-lived token into a config file. Setup in either case is one gesture: paste a URL and click connect, or add a command and a few environment variables to a settings screen. It is configuration, not programming, which is worth saying because "server" makes it sound like infrastructure work.

Then comes what decides whether connecting one is a good idea: the trust boundary moves, and four things change at once.

The server's text enters the conversation. Its tool names and descriptions go into the model's context, and so does everything it returns: the issue body, the web page, the file contents. Some of that text was written by strangers. A ticket description containing a sentence that tells the agent to ignore its instructions and send a config file somewhere arrives in the same channel as your request, and the model has no reliable way to tell them apart. That is prompt injection, and MCP does not solve it; it widens the surface by bringing more untrusted text in more conveniently. Be stingier with write-capable tools on servers that read text other people wrote, and keep approving calls instead of auto-approving them.

Every call runs with whatever credentials the server holds. If that token can write to all your repositories, the agent can write to all your repositories, whatever you thought you asked. Give the narrowest scope that does the job, use a read-only token for a server you only query, and keep separate tokens per server so revoking one does not break the rest.

A local server runs code on your machine with your account's permissions. Installing one is the same decision as installing a package from the internet, and a README that says to launch it with a one-line npx command is asking you to run whatever its author published, at whatever version, with your rights. Prefer servers from the company that owns the system, or from a project you can watch being maintained.

A remote server sees what you send it, and the model's provider sees what the server returns. Those are often two different companies, both third parties.

One consequence surprises people: permissions are per connection, not per app. Your host's settings govern what the agent may do with its own tools, like editing files or running shell commands, while a server's token governs what happens in the outside system. Neither limits the other. So before adding a server, answer three questions: which system does it reach, with whose credentials, and does it return text strangers wrote. And when a repository arrives with an MCP configuration file already inside it, read that file before approving anything, because cloning a project should not be how a new connection gets installed on your machine.

Everything above follows from one design decision. MCP turns a system's capabilities into tools any host can call, in a shape nobody owns, so a single server works across competing agents. The value and the risk come from the same fact: it gives the agent real reach with real credentials, and whatever it finds comes back as text the model will act on. The review habits from earlier articles still apply; they now cover a wider world than the folder you started in.

## Mind map

```mermaid
flowchart LR
  Q["What is an MCP server?"] --> D["Adapter: one system's capabilities in a standard shape"]
  D --> R["Roles: host, MCP client, server"]
  R --> P["What it offers: tools, resources, prompts"]
  P --> L["Agent loop gets new tools; descriptions decide the calls"]
  D --> W["Why portable: public contract, adds up instead of multiplying"]
  W --> C["Caveat: only features the host supports"]
  D --> T["Runs as local stdio process or remote HTTP URL"]
  T --> B["Trust boundary moves"]
  B --> B1["Server text enters the model's context"]
  B --> B2["Calls use the server's credentials"]
  B --> B3["Local server runs with your permissions"]
  B --> B4["Remote server and model provider both see data"]
```

## Glossary

- MCP (Model Context Protocol)：an open specification for how an AI app asks an outside system to list and perform actions, so one adapter can serve many different apps.
- MCP server：the adapter program that translates between the protocol and one system, such as your issue tracker, a database, or a folder of files.
- MCP host and client：the host is the AI app you talk to; the client is the connector inside it that keeps one connection to one server open.
- Tool (in MCP)：a function a server offers, with a name, a description, and described arguments, that the model may call, and the part most people actually use.
- Transport (stdio or HTTP)：the two ways a connection is carried, either as a local process the host starts or as a remote URL the host connects to, which decides where the server runs and who holds your credentials.
- Trust boundary：the line that moves when you connect a server, because its output becomes text the model reads and its calls run with whatever credentials you granted it.

## Sources

1. [Model Context Protocol — official site and current specification, including the primitives, transports, and authorization flow](https://modelcontextprotocol.io/)
2. [modelcontextprotocol/servers — official reference servers showing what a real MCP server exposes and how tool descriptions are written](https://github.com/modelcontextprotocol/servers)

---

Original article: https://eulore.ai/articles/what-is-a-mcp-server-797f6260

> **Eulore** · Start small. Go deep.
>
> Eulore is an AI learning tool built around connected articles, each a 5–10 minute read. Ask questions as you go and help shape what comes next. That’s how this article was created.
>
> Start your own series → https://eulore.ai
