Definition · AI agents
MCP server
An MCP server is a program that offers tools, resources and prompts to AI applications through the Model Context Protocol. A client inside the host application connects to it, either by launching it as a local process or by calling it over HTTP. The server's tools are functions the language model can decide to run.
Last reviewed
Key points
- An MCP server is the program on the other end of an MCP connection. It offers tools, resources and prompts.
- A server runs either as a local process the application launches, or as a remote service reached over HTTP.
- The model decides when to call a server's tools, so the server's descriptions and results become text the model acts on.
- A local server runs with the same privileges as the application that launched it.
- The MCP specification makes the host application responsible for consent and for letting a human refuse tool calls. The MCP security best practices add sandboxing local servers.
How it works
An MCP server sits at the far end of a Model Context Protocol connection. The host application, such as a chat app or code editor, creates one client for each server it uses. A server can offer three things:
- Tools: functions the language model decides to call, such as “send an email”.
- Resources: data the application attaches, such as a file or git history.
- Prompts: templates the user picks, such as a slash command.
A server runs in one of two ways. A local server is a subprocess the client launches and talks to over standard input and output. A remote server is a service the client reaches with HTTP requests.
The host keeps the conversation. A server sees only what the host sends it, and cannot see into other servers.
Why it matters
An MCP server can hurt the application that trusts it in two ways.
Through its text. Tools are model-controlled: the model reads each tool’s description to decide when to call it, then reads the result. An instruction hidden in either can be obeyed. That is MCP tool poisoning, a form of indirect prompt injection. A tool’s annotations, the hints that say whether it only reads or can destroy data, are separate from its description; the specification tells clients to treat them as untrusted unless the server is trusted.
Through its code. A local server is a program on the user’s machine. The MCP security best practices warn that it runs with the same privileges as the client that started it, and list arbitrary code execution and data loss among the risks.
Much of the defence sits with the host. The specification’s tools section says the application should show which tools the model can use and keep a human able to refuse a call. The MCP security best practices add: sandbox local servers.
In practice
In September 2025 Postmark, an email delivery company, warned about an npm
package called postmark-mcp that impersonated it. Postmark says the actor
“built trust over 15 versions”, then added a backdoor in version 1.0.16
that secretly blind-copied emails to an external server. Postmark had not published its own MCP
server on npm. The pattern is an AI supply chain rug pull.
Guidance for installing and exposing servers comes from two documents. The MCP security best practices cover local servers:
- Local installs. A client offering one-click setup must show the exact command, without truncation, and get the user’s approval. It should run the server sandboxed with minimal privileges.
- Local exposure. A server meant to run locally should use stdio, or require a token if it listens over HTTP, so other processes on the machine cannot reach it.
The authorization specification covers remote servers:
- Remote servers. Authorization is optional in MCP. When an HTTP server uses it, the server acts as an OAuth 2.1 resource server and must reject tokens issued for anything else. Forwarding such a token to another service is forbidden. The best practices explain why: the downstream service may trust the token as if it came from the MCP server, the confused deputy problem.
Questions and answers
What is the difference between MCP and an MCP server?
MCP, the Model Context Protocol, is the agreed message format. An MCP server is one program that speaks it and offers tools, resources or prompts to AI applications such as chat apps and code editors.
Is a local MCP server safe to install?
Only as safe as the code and the command that start it. The MCP security best practices warn that a local server runs with the same privileges as the application that launched it, and recommend showing the exact command, asking for approval and sandboxing the server.
Does an MCP server need authentication?
Not always. Authorization is optional in MCP. A remote server reached over HTTP should use the specification's OAuth 2.1 flow; a local server started over stdio gets its credentials from its environment instead.
Sources
- Model Context Protocol Specification, 2026-07-28, Server Features OverviewModel Context Protocol, 28 Jul 2026
- Model Context Protocol Specification, 2026-07-28, ArchitectureModel Context Protocol, 28 Jul 2026
- Model Context Protocol Specification, 2026-07-28, TransportsModel Context Protocol, 28 Jul 2026
- Model Context Protocol Specification, 2026-07-28, ToolsModel Context Protocol, 28 Jul 2026
- Model Context Protocol Specification, 2026-07-28, AuthorizationModel Context Protocol, 28 Jul 2026
- MCP Security Best Practices, Local MCP Server CompromiseModel Context Protocol, 28 Jul 2026
- Information Regarding Malicious "postmark-mcp" PackagePostmark, 25 Sep 2025
Guides that use this term
Related topics
In the news
- Canva opens its MCP server to all and adds APIs for developers
- JPXI lets J-Quants subscribers use stock data in Claude and ChatGPT
- AWS lets developers and AI agents use one sign in for 90 days
- AWS makes three tools that find APIs and stop attacks on them
- Resolution.inc opens a platform where AI agents resolve disputes
- Airwallex puts its finance tools in ChatGPT as a plugin
- Google makes Managed Spark 4.0 available to all users
- A race error in the PHP MCP kit sent results to incorrect requests
- Proof puts its agent approval check in ChatGPT
- Workday buys Honeydew to give AI agents one meaning for each metric
- 3 AI models selected a copycat MCP tool in 50 of 50 trials
- PrimeXBT connects ChatGPT and Claude to live trade accounts
- AWS repairs an MCP server bug that could leak a database token
- AWS repairs a file write bug in its Pricing MCP server
- Cohere adds video search with timestamps to its Compass tool
- Phonedriver lets AI agents use phones with 6.9 times less token use
- Schwab starts an AI server for trades, first with Claude
- Google Cloud adds an MCP server for AI agents to use cloud rules
- AWS patches MCP gateway vulnerability that opens internal services
- AI assistants change tool servers on their own with admin access
- An MCP server used 42 times the tokens of a CLI on one task
- GoodRx adds drug prices to Google Gemini for healthcare
- Paper finds five patterns in 15 MCP servers
- A new tool lets AI agents test Windows apps on a clean PC
- Amazon adds its Agent Registry to a US government cloud
- GitLab 19.5 puts external code agents in its audit controls
- MCP Inspector 2.14.0 repairs 3 vulnerabilities
- Descope launches Envoy to let shop apps accept AI agents
- AI coding agents install archived MCP servers with no patches
- MCP kits could send login secrets to an attacker
- AWS repairs a file write bug in its Transform MCP server
- An audit found no login on 380 of 414 tested AI tool servers
- Endor Labs puts security checks in Google Antigravity agents
- GhostSplice attack in two parts lifted compliance from 42% to 82%
- Meta lets AI agents make apps and business accounts
- Google opens its Connected Apps Platform to developers in the US
- Test of 2,000 agent runs finds context compression gains are small
- Northstar launches with $7M to help AI agents repair security risks
- Log-To-Leak attack makes AI agents send data to an attacker
- The sill tool gives AI coding agents a Bash shell on Windows
- Oracle and Google connect Oracle data to Gemini AI agents
- AWS repairs a token bug in its MCP server
- IBM gives watsonx Orchestrate a gateway for agents from other firms
- Terraform adds policy rules and a portal for AI agents
- Cisco opens Cisco IQ to all its partners
- A copy of the Amazon agent tool sends seller secrets to a hardcoded IP
- Stripe lets AI assistants pay invoices for startups
- Rapid Indexer gives AI agents a tool to send links to Google
- Salesforce sets a registration rule for external AI agents
- Google releases Data Agent Kit to all users with 2 types of control
- AWS MCP server bug let SQL comments go through its read-only check
- AWS repairs 2 bugs that can give attackers code from its AI agent
- AWS repairs a Postgres MCP server bug that let SQL change data
- OpenCode bug lets a bad MCP server start code on Windows
- Symantec finds an AI agent made to do 100,000 attack steps alone
- BeyondTrust says each AI instruction sends almost 10 commands
- Zoom adds 15 AI services and opens its tools to Microsoft Copilot
- Antidetect browsers let AI operate thousands of accounts
- Figma adds 20 MCP partners as its co-founder calls MCP flawed
- Microsoft releases Scope, an open source test tool for coding agents
- Stored user traits change tool calls in all 8 models in the test
- IBM says its data agent makes a pipeline in three minutes
- Schwab blocks external AI agents from client money
- Anthropic will not change MCP command execution, OX Security finds
- A new attack tool uses stolen AI keys, and the owner pays
- Proof launched x401, an open protocol for AI agent authorization
- Descope releases Agentic Identity Hub 3.0 for internal AI agents
- Flash Mixer gives AI agents an MCP server to mix Bitcoin
- Octopus Deploy adds a remote MCP server with no installation
- Workday gives external AI agents access to its HR and finance data
- 6 AI agent frameworks operated a tool call from an attacker
- The Aave MCP server connects to the MetaMask Agent Wallet
- Cycode found a vulnerability that let an MCP server steal OAuth credentials