# MCP server

> Canonical: https://skillalmanac.com/glossary/mcp-server | Last verified: 2026-11-24 | Index status: index-eligible

An MCP server implements the server side of the Model Context Protocol and offers supported capabilities, such as tools, resources or prompt templates. Connections depend on compatible implementations and applicable access controls.

Also called: model context protocol server, build an MCP server, MCP server definition, what is an MCP server.

## In plain language

An MCP server is a small program that sits in front of something an AI app cannot reach on its own: your files, a database, a calendar, a code host. The server lists what it offers, in a form the AI app understands, and the AI app can then ask it to do things. Think of a staff member who knows one cabinet and will fetch or file things when asked. Tools are model-controlled, resources are application-controlled and prompt templates are user-controlled. Access and approvals also depend on the host application and configuration. The main limit is trust: a server can read data and change things in the system behind it, so a badly built or untrusted server is a risk. Servers that fetch outside content can also feed an agent text that tries to steer it. Connect only servers you have reason to trust.

## Technical definition

An MCP server implements the server side of the Model Context Protocol. It declares up to three kinds of feature: tools (schema-defined functions the model can call, discovered with tools/list and run with tools/call), resources (read-only data identified by URI, read with resources/read) and prompts (templates a user invokes, fetched with prompts/get). Per modelcontextprotocol.io, tools are model-controlled, resources are application-controlled and prompts are user-controlled. A server talks to a client over a transport: stdio for a local process, or HTTP for a remote one. For stdio servers, logs must not go to standard output, because that channel carries the protocol messages. The protocol revision in use is negotiated between client and server, and the documentation pages change between revisions.

## How it shows up when you use agents

In Claude Code, Cursor, Codex or any other MCP-capable app, an MCP server is the thing you add when you want the agent to reach a live system. The [Model Context Protocol](/glossary/model-context-protocol) is the standard; the server is one concrete program that speaks it. The app runs a [client](/glossary/mcp-client) for each server, asks it what it offers, and lets the model call those tools through [tool calling](/glossary/tool-calling).

In Claude Code you add one with `claude mcp add` and check it with `claude mcp list`. Its documentation describes local stdio servers, which run as processes on your machine, and remote HTTP servers. It also tells you to verify that you trust each server before connecting it, since servers that fetch external content can expose you to prompt injection risk.

What breaks when this is misunderstood:

- A server that prints debug text to standard output can corrupt a stdio connection. The build tutorial says to log elsewhere.
- Tool-description context overhead depends on the host and its loading policy. Claude Code can defer discovery instead of loading every configured description upfront.
- Treating a server as harmless because it is "just a connector" skips the access question. Check what it can read and change.

Next action: run `claude mcp list`, remove servers you do not use, and read the [what is an MCP server](/learn/what-is-an-mcp-server) guide before building your own.

## Worked example (illustrative)

Suppose a hypothetical server exposes a lookup tool, a read-only resource and a prompt template. Choosing a prompt is a user action, selecting resource context is application-controlled, and tool use is model-controlled. This illustrates roles; no protocol traffic or connection was executed.

## Common confusions

- **MCP server versus MCP.** MCP is the protocol, the set of rules. A server is a program that follows them. See [Model Context Protocol](/glossary/model-context-protocol).
- **MCP server versus MCP client.** The client lives inside the AI app and connects to one server. The server provides the capabilities. See [MCP client](/glossary/mcp-client).
- **MCP server versus agent skill.** A server gives the model live access to a system. A skill is packaged instructions. See [Agent skill](/glossary/agent-skill).
- **Server versus model.** Server names a protocol role. An implementation may use model-backed logic, including sampling requests through a compatible client.
- **Tools versus resources versus prompts.** According to the MCP documentation, tools are controlled by the model, resources by the application, and prompts by the user.

## Worked examples in this catalogue

### [What Is an MCP Server? Tools, Resources and Prompts](https://skillalmanac.com/learn/what-is-an-mcp-server)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A walk-through of one request to an MCP server, covering tools, resources and prompts and how a client discovers and calls them.

Why it exercises the concept: It is the plainest worked case of the definition above: a server describing what it can do, and a client calling it.

### [How MCP Servers Work: Message Flow and Transports](https://skillalmanac.com/learn/how-mcp-servers-work)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: The message flow between a host, the client it creates for a server, and the server, over stdio or Streamable HTTP.

Why it exercises the concept: It shows the server as one end of a connection, which is the part people tend to skip when they only configure one.

### [mcp-server-builder](https://skillalmanac.com/skills/skill-almanac/mcp-server-builder)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Designs an MCP server and validates its tool manifest.

Why it exercises the concept: Building a server means choosing what to expose and how. This skill checks those choices before you ship.

### [Claude Code](https://skillalmanac.com/tools/claude-code)

```
claude mcp list
```

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Claude Code prints the MCP servers configured for it, with their health status.

Why it exercises the concept: Claude Code connects to MCP servers. This command reports configuration and reported health; a listed entry alone does not prove a connection was attempted or succeeded.

## Related terms

- [Model Context Protocol (MCP)](https://skillalmanac.com/glossary/model-context-protocol.md)
- [MCP client](https://skillalmanac.com/glossary/mcp-client.md)
- [Tool calling (function calling)](https://skillalmanac.com/glossary/tool-calling.md)
- [AI agent](https://skillalmanac.com/glossary/ai-agent.md)
- [Agent skill](https://skillalmanac.com/glossary/agent-skill.md)
- [Coding agent](https://skillalmanac.com/glossary/coding-agent.md)

## Sources

- [MCP sampling, protocol revision 2025-06-18](https://modelcontextprotocol.io/specification/2025-06-18/client/sampling), Model Context Protocol (accessed 2026-11-25)
- [Understanding MCP servers](https://modelcontextprotocol.io/docs/learn/server-concepts), Model Context Protocol (accessed 2026-11-24)
- [Build an MCP server](https://modelcontextprotocol.io/docs/develop/build-server), Model Context Protocol (accessed 2026-11-24)
- [Connect Claude Code to tools via MCP](https://code.claude.com/docs/en/mcp), Anthropic (Claude Code Docs) (accessed 2026-11-24)
- [MCP basic protocol: optional features and capability negotiation](https://modelcontextprotocol.io/specification/2025-06-18/basic), Model Context Protocol (accessed 2026-11-24)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-24. [Glossary index](https://skillalmanac.com/glossary.md).
