Security Best Practices — MCP 2026-07-28
Versioned protocol guidance for authorization, token handling, SSRF and local-server risks. Start here when implementing an MCP service.
MCP UPGRADE CHECKS · AI SECURITY
Compare two tool versions against requests you supply. Find arguments that need updating, with exact JSON locations. Runs locally in your browser.
Your input stays in this browser. No recorded request is executed.
READING PATH
Start with protocol boundaries, read a tool-description injection case, then choose tests that match your deployment.
Check authorization flows, token handling and implementation risks such as SSRF. Read the versioned guidance alongside the authorization specification and in the context of your deployment.
Model Context Protocol
This April 2025 case shows how instructions in a tool description can influence an agent before that tool is invoked. Use it for threat modeling; behavior can differ across current clients and models.
Trail of Bits · 2025-04-21
Distinguish tests through a client or model, multi-server tool-poisoning scenarios, and direct protocol calls. Adapt the scenarios to your client, model and deployment. Direct MCP calls alone do not test an agent’s resistance to prompt injection.
Promptfoo
Search, then pass one returned ID to get_resource. The detail example uses the indexed mcp-line-jumping reference; substitute another result ID if needed.
{
"name": "find_resources",
"arguments": {
"query": "MCP tool poisoning",
"topic": "mcp-security",
"kind": "article",
"intent": "investigate",
"limit": 3
}
}{
"name": "get_resource",
"arguments": {
"id": "mcp-line-jumping"
}
}Results contain indexed source links, short descriptions and date records. This does not scan your agent or search the web live.
Sources checked on 19 October 2026. AI-assisted editorial reading path; SecLLM has not reproduced the experiments or validated any product’s defensive effectiveness.
阅读顺序
先理清协议边界,再看工具描述中的注入案例,最后按自己的部署选择测试方式。
先核对授权流程、令牌处理与 SSRF 等实现风险。把对应版本的指南、授权规范和自己的网络及本地运行环境放在一起看。
Model Context Protocol
这个 2025 年案例说明:工具描述进入模型上下文后,其中的提示注入可能在该工具被调用前影响 Agent。它可用于威胁建模,不能据此认定所有当前客户端和模型都有相同行为。
Trail of Bits · 2025-04-21
区分经客户端或模型的测试、多服务工具投毒,以及直接协议调用。按自己的客户端、模型和部署调整场景;单纯测通 MCP 调用,不能证明 Agent 能抵抗提示注入。
Promptfoo
先搜索,再把返回的一个 ID 交给 get_resource。下面的详情示例使用当前已收录的 mcp-line-jumping;也可换成其他检索结果的 ID。
{
"name": "find_resources",
"arguments": {
"query": "MCP tool poisoning",
"topic": "mcp-security",
"kind": "article",
"intent": "investigate",
"limit": 3
}
}{
"name": "get_resource",
"arguments": {
"id": "mcp-line-jumping"
}
}查询返回已收录的原始链接、简短说明和日期记录,不会扫描你的 Agent,也不会即时搜索整个网络。
资料于 2026-10-19 对照原文;阅读顺序由 AI 辅助编辑整理。本站未复现实验,也未验证任何产品的防护效果。
Search by keyword, topic, or publisher.
Links to original publishers.
THE DIRECTORY
Versioned protocol guidance for authorization, token handling, SSRF and local-server risks. Start here when implementing an MCP service.
The protocol maintainers’ documentation is the starting point for MCP authorization requirements and transport security behavior.
A practical review checklist for MCP trust boundaries, authentication, tool access and deployment controls. Pair it with the protocol specification.
Community security guidance, risk taxonomies and implementation resources. Use the stated edition when comparing framework entries.
Trail of Bits demonstrates how malicious tool descriptions can influence an agent before invocation. A useful threat-modeling case study.
Tool-vendor recipes for testing MCP integrations, including tool poisoning and data-exfiltration scenarios. Adapt the examples to your deployment.
Practical testing recipes and open-source tooling documentation from the tool vendor, useful for constructing repeatable application evaluations.
Original vulnerability research and audit engineering from a commercial security firm, with technical examples and project links.
Wiz reports observations from its AI-service honeypots, including exposed MCP services. Treat the telemetry as this vendor’s sampled observations.
OWASP application-security guides, including MCP, AI agent security and prompt injection. Each cheat sheet links practical controls and further references.
Try another keyword or clear your filters.
Newest sorts by original publication date. Resources without a date appear last.
Directory updated
MCP ACCESS
Get source links, topic tags, and dates when available.