MCP server
Definition
A program that exposes tools, resources or prompts to MCP clients, running locally over stdio or remotely over HTTP, so any MCP host can use them.
In more detail
A server might wrap a database, a ticketing system, a browser or a local folder. Local servers usually run as a process started by the client; remote servers run as web services and often use OAuth for access.
Installing a server gives the model new abilities, so check what each tool can do and what credentials it holds.
Related terms
MCP client
The component inside a host application that holds a connection to a single MCP server and relays messages to and from that server.
MCP prompt
A reusable prompt template offered by an MCP server, which users usually pick explicitly, for example as a slash command in chat.
MCP resource
Data that an MCP server makes available by URI, such as a file, a database record or an API response, for the host to read into context.
MCP tool
A function that a Model Context Protocol server exposes for a model to call, described by a name, a description and a JSON Schema for its input.
Model Context Protocol (MCP)
An open protocol that lets AI apps reach external tools, data and prompts through small servers that each wrap one service.
Elicitation (MCP)
An MCP feature that lets a server ask the user for more information during a request, through a form in the client or a link to a web page.
Read more about MCP server
- Build an MCP server in Python with FastMCP
Build a small MCP server in Python with FastMCP, test its tools in MCP Inspector without a model, then connect it to Claude Code, Cursor or another MCP host.
- Build an MCP server in TypeScript
Build a small MCP server with the official TypeScript SDK v2, test it from the command line and in MCP Inspector, then connect it to Claude Code or Cursor.
- Build an MCP server for an internal API
Two read-only tools, tested in MCP Inspector and called from Claude Code, Codex or Cursor.