What Is an MCP Server? Tools, Resources and Prompts
An MCP server exposes tools, resources and prompts to an AI app over the Model Context Protocol. See how a single request moves through one.
Updated · Markdown version
An MCP server is a program that makes tools, resources and prompts available to an AI application through the Model Context Protocol, an open standard for connecting AI applications to external systems. The application reaches the server through an MCP client, and compatible clients can reuse the server when they support its protocol revision, transport and capabilities.
The three server primitives
| Primitive | What it is | Who drives it (per the spec) | Typical example |
|---|---|---|---|
| Tools | Named functions with a JSON Schema for inputs | Model-controlled: the model picks a tool from context | Query a database, call a weather API |
| Resources | Data identified by a URI | Application-driven: the host app decides what to include | A file at file:///..., a database schema |
| Prompts | Reusable prompt templates with arguments | User-controlled: the spec says prompts are meant for the user to select, often as slash commands | A "code review" template that takes a code argument |
Tools are the primitive most people mean when they say an MCP server "does something." Resources provide URI-addressed context retrieved with resources/read; resource templates describe parameterized URI patterns. Choosing between primitives is a design decision: use a tool for a model-invoked action or computation, a resource when the application should retrieve URI-addressed context, and a prompt when the user should explicitly select a server-authored interaction template.
How one request moves through a server
Assume a weather server is connected to an assistant, and the user asks "What is the weather in New York?"
- The client sends
tools/list. The server returns each tool with itsname,descriptionandinputSchema. For example,get_weathertakes a required string fieldlocation. - The model reads the descriptions and decides
get_weatherfits. It produces arguments such as{"location": "New York"}. - The client sends
tools/callwith the tool name and those arguments. Before sending, a client that follows the spec should show the user the inputs and, for sensitive operations, ask for confirmation. - The server runs the logic and returns
content, for example a text item describing the weather, withisError: false. - The client passes that result back to the model, which writes the answer.
If the server could not reach its weather API, step 4 would return isError: true with a text message. The model then sees a failure and can say so, instead of inventing weather data.
What an MCP server is not
- It is not a model. It supplies capabilities; the AI app supplies the reasoning.
- It is not a skill. A skill is a packaged set of instructions and files that shapes how a model works. An MCP server gives the model live access to systems.
- It is not automatically safe. The spec says servers must validate tool inputs, apply access controls, rate limit calls and sanitize outputs.
Pitfalls
- The model calls the wrong tool. Symptom: a search tool runs when you wanted a lookup. Cause: vague descriptions that overlap. Fix: name each tool for one action and state when not to use it in the description.
- Failures look like successes. Symptom: the model reports a result that is actually an error message. Cause: the server returns an ordinary successful tool result for a failed execution. Fix: use a tool result with
isError: truefor actionable execution, domain-validation or upstream failures. Use JSON-RPC errors for protocol-level problems such as an unknown tool or a malformedtools/callrequest. - Expecting resources to load automatically. Symptom: the model never sees a file you exposed. Cause: resources are application-driven, so the host must include them. Fix: check whether your client has a resource picker or inclusion rule, or move the data behind a tool.
- Trusting tool annotations. The spec says clients must treat annotations as untrusted unless they come from a trusted server. Do not auto-approve a tool because its metadata says it is read-only.
- Unbounded outputs. A tool that returns a whole table floods the context window. Fix: cap result size and return pagination details the model can use.
When to use a skill instead
The primitive definitions and request examples above follow the normative 2025-06-18 specification named in their URLs. The current architecture checked on 2026-11-25 describes protocol revision 2026-07-28 instead: requests carry version and capability metadata, and clients may use server/discover rather than the 2025 connection-initialization sequence. An MCP server is useful when an application needs protocol-accessible actions, context or prompt templates from another program. For designing that server, a reusable skill can help because tool schemas, error contracts and transport choices recur across implementations. mcp-server-builder is a related skill on this site that reviews and designs an MCP server against those rules, covering tool versus resource versus prompt choice and stdio versus HTTP transport. If you only need to ask a model about a document you already have, you do not need a server at all; paste the text or attach the file.
FAQ
What is an MCP server in simple terms? It is a service that gives an AI app a standard set of tools, resources and prompts it can use. The app connects to it instead of needing a custom integration for each system.
Is an MCP server the same as an API? No. An API is a general interface for software. An MCP server speaks MCP so a compatible client can discover supported primitives at runtime. Tools are designed to be model-controlled, but the host application determines how they are surfaced, approved and routed. A server can wrap an API internally.
Can I see an MCP server example? Yes. The 2025-06-18 tools page shows a get_weather tool with a location input and a sample tools/call response, which is the explanatory trace described above. The official introduction names example MCP-capable applications, but actual compatibility depends on the protocol revision, transport and capabilities each application supports.
Related skills in this catalog
Platform Score is our assessment under a published method. It is not a safety guarantee.
Related guides
Terms this guide uses
This item is a worked example in the AI glossary for:
Sources
- https://modelcontextprotocol.io/docs/getting-started/intro (accessed 2026-11-25)
- https://modelcontextprotocol.io/specification/2025-06-18/server/tools (accessed 2026-11-25)
- https://modelcontextprotocol.io/specification/2025-06-18/server/resources (accessed 2026-11-25)
- https://modelcontextprotocol.io/specification/2025-06-18/server/prompts (accessed 2026-11-25)
- https://modelcontextprotocol.io/docs/2026-07-28/learn/architecture (accessed 2026-11-25)