What is a Model Context Protocol (MCP) server?
An MCP server is a software component that defines tools, data sources and prompt templates and offers them to MCP clients in AI applications over the Model Context Protocol.
It differs from an MCP client in role: the client discovers tools and forwards calls, while the server defines and runs them. It differs from an MCP gateway in scope: a gateway is a middle layer managing traffic to many servers, while a server is a single source of capabilities.
- Topic
- Agents and protocols
- Also known as
- Model Context Protocol server
How a Model Context Protocol (MCP) server works
- The server advertises its tools, resources and prompt templates with schemas and descriptions (MCP tool, MCP resource).
- When the host's client for this server connects, it fetches this list and presents it to the model.
- On a tool call or resource read request, the server runs the relevant database, file system or API operation.
- It returns a structured result or error; it can run as a local process or over the network (MCP transport).
In more detail
One-to-one isolation between host, client and server
In MCP architecture, the host application (such as an IDE or enterprise chat interface) instantiates a separate MCP client for each server, maintaining a strict 1:1 connection boundary. This isolation prevents one server from observing the context, prompts or capabilities exposed by another server connected to the same host.
Server-initiated client features and operational primitives
Beyond exposing tools, resources and prompts, an MCP server can request client-side capabilities such as sampling (asking the host's LLM for a completion), roots (discovering permitted filesystem boundaries) and elicitation (requesting structured input from the user). Supporting features such as pagination, progress notifications and structured logging further ensure reliable operation for large catalogues and long-running backend jobs.
Tool poisoning, rug-pull attacks and schema integrity
Because tool descriptions and schemas are injected directly into the model's context, malicious or compromised servers can perform tool poisoning or rug-pull attacks by embedding hidden prompt-injection instructions inside metadata. Enterprises mitigate this by pinning server versions, cryptographically verifying packages and alerting when tool schemas or descriptions mutate unexpectedly.
Commonly confused terms
| Term | How it differs |
|---|---|
| REST or GraphQL API | Traditional REST or GraphQL APIs are designed for deterministic software integrations with fixed endpoints, whereas an MCP server wraps capabilities with semantic descriptions and schemas tailored for dynamic discovery and invocation by LLM hosts. |
Why a Model Context Protocol (MCP) server matters for on-premises AI
It opens internal systems such as databases, document management or record systems to AI applications through one standard interface. Running on the organisation's network, the server executes tool calls without reaching external services. Each server adds a capability and therefore an attack surface: servers of unknown origin are not installed, the backend account gets least privilege, user permissions apply on every call and tool descriptions are monitored for changes (MCP security).
A public body exposes its internal regulation archive through a read-only MCP server; the in-house assistant answers regulation questions through it.
Common questions
Does an MCP server run all its tools automatically?
No. Tools run only when a client calls them. The model proposes which tool to call, the host decides and asks for user approval where needed.
How is an MCP server secured for an internal system?
The backend account gets least privilege, read-only tools are kept separate, user identity is verified on each call, parameters are checked and every call is logged.
Related terms
- Model Context Protocol (MCP)
- Model Context Protocol (MCP) client
- Model Context Protocol (MCP) tool
- Model Context Protocol (MCP) resource
- Model Context Protocol (MCP) transport
- Model Context Protocol (MCP) gateway
- Tool calling
- Model Context Protocol (MCP) security
- Model Context Protocol (MCP) roots
Sources
- Model Context Protocol specification, Server Features
- Model Context Protocol (MCP): Landscape, Security Threats, and Future Research Directions, 2025
Related page on this site: Related FAQ · In the glossary: Glossary, M to Q