Teams connect AI clients to Model Context Protocol (MCP) servers in an afternoon, but rarely write down which servers they trust, what each tool can reach, which tokens flow where and what happens if a tool description turns hostile. This template is the record that fills that gap. It walks a security architect or AI platform team through describing an MCP deployment, drawing its trust boundaries, inventorying servers and tools, documenting identities and authorisation, enumerating threats with MCP-specific prompts, and recording controls, residual risk and sign-off. Control prompts are mapped to the MCP specification's Security Best Practices and authorisation requirements as published for protocol version 2026-07-28, the latest version when checked on 26 November 2026. The specification revises often, so record the version you assessed against. For agents beyond MCP, use the AI Agent Threat Model Template; for detecting a poisoned tool once deployed, see MCP Tool Poisoning Detection.
How to use this template
- Replace text in square brackets, such as [Organisation], [System name] and [AI platform team], with your own terms. Copy the tables into a spreadsheet, a threat modelling tool or your MCP registry.
- Complete one record per MCP deployment: one client or host application and the set of servers it connects to. A shared MCP gateway gets its own record, and each record behind it references the gateway record.
- "Must" is mandatory for [Organisation]; "should" is recommended practice where a documented exception may apply. Where the template cites the MCP specification, the specification's own MUST or SHOULD is noted.
- Work through the sections in order. Sections 2 to 5 describe the system; section 6 asks what can go wrong; section 7 records what you will do about it; section 8 records who agreed.
- Answer the four questions of threat modelling in the record: what are we working on, what can go wrong, what are we going to do about it, and did we do a good enough job?
1. Purpose and scope
1.1 This record documents the threat model for [System name], an MCP deployment operated by [Team] at [Organisation]. It exists so that, before MCP servers receive access to production data or credentials, [Organisation] has recorded what each server and tool can reach, how identities and tokens flow, what could go wrong, which controls reduce each risk and who accepted the residual risk.
1.2 In scope:
- MCP clients and host applications: [for example, IDE assistants, desktop chat clients, internal agent runtime].
- MCP servers, local (stdio) and remote (Streamable HTTP), first-party and third-party: [list or reference section 4].
- Authorisation servers and identity providers that issue tokens for these servers.
- Upstream APIs, SaaS applications, databases and file systems that MCP servers call.
- Any MCP gateway, proxy or registry in the path.
1.3 Out of scope: [for example, model training and fine-tuning, covered by the AI model threat model; the underlying cloud platform, covered by the cloud security baseline].
1.4 Specification version assessed: MCP [2026-07-28 or the version you use]. Date checked: [date].
2. System description and data flows
2.1 Business purpose: [what users or agents do with this deployment and why].
2.2 Users and agents: [human users, autonomous agents, scheduled jobs; approximate numbers].
2.3 Data classification: [highest classification of data that can enter prompts, tool arguments or tool results].
2.4 Data flow diagram: attach a diagram showing the user, the host application and client, the model provider, each MCP server, each authorisation server and each upstream API, with the boundaries from section 3 drawn on it.
2.5 Describe each flow in the table below.
| Flow ID | From | To | Transport and protocol | Data carried | Credential used | Crosses boundary |
|---|---|---|---|---|---|---|
| F1 | [Host application / client] | [Model provider] | [HTTPS API] | [Prompts, tool lists, tool results] | [Provider API key] | [B1] |
| F2 | [Client] | [Remote MCP server] | [Streamable HTTP over TLS] | [tools/list, tools/call, results] | [OAuth access token for this server] | [B2] |
| F3 | [Client] | [Local MCP server] | [stdio] | [Tool calls and results] | [Inherits user session] | [B3] |
| F4 | [MCP server] | [Upstream API] | [HTTPS] | [API requests and data] | [Server's own token or delegated token] | [B4] |
3. Assets and trust boundaries
3.1 Assets. List what an attacker would want, with an owner for each.
| Asset | Examples | Owner | Impact if compromised |
|---|---|---|---|
| Data reachable through tools | [Repositories, tickets, CRM records, files] | [Data owner] | [High / Medium / Low] |
| Credentials and tokens | [OAuth tokens, API keys, upstream service credentials] | [Identity team] | [...] |
| Actions tools can take | [Send email, merge code, change configuration, make payments] | [Business owner] | [...] |
| Host machine and runtime | [Developer laptop, agent container] | [Endpoint or platform team] | [...] |
| Audit trail | [Client logs, server logs, upstream API logs] | [Security operations] | [...] |
3.2 Trust boundaries. Each boundary is a place where trust changes and a control must sit. Confirm each applies and add any others.
- B1 User and host to model: prompts and tool results leave [Organisation] for the model provider; tool descriptions and results become model input.
- B2 Client to remote MCP server: the server may be third-party; everything it returns (tool names, descriptions, annotations, results, authorisation metadata URLs) is untrusted input to the client.
- B3 Client to local MCP server: a local server runs code on the host with the client's privileges unless sandboxed.
- B4 MCP server to upstream API: the server acts on someone's behalf; which identity the upstream API sees, and with what scope, is decided here.
- B5 Authorisation server: the issuer of tokens for MCP servers, and in proxy designs a third-party authorisation server as well.
- B6 Between servers: tools from several servers share one model context, so one server's output can influence calls to another.
4. Servers and tools inventory
4.1 Every MCP server in scope must appear in this table. A server not listed must not be connected.
| Server | Source and version | Local or remote | Transport | Auth method | Tools exposed | Data reach | Business owner | Technical owner |
|---|---|---|---|---|---|---|---|---|
| [Server name] | [Vendor or internal repo; pinned version or digest] | [Remote] | [Streamable HTTP] | [OAuth, token audience bound to this server] | [Tool names] | [Systems and data classes reachable] | [Name] | [Name] |
| [Server name] | [Package and version] | [Local] | [stdio] | [None at MCP layer; upstream API key in secrets store] | [...] | [...] | [...] | [...] |
4.2 For each tool, record:
- Effect: read only, write, delete, external communication or code execution.
- Reviewed description: the tool name and description text as reviewed, with a hash or version, so later changes can be detected.
- Confirmation: whether the client prompts a human before invocation. The specification says there SHOULD always be a human in the loop with the ability to deny tool invocations.
- Name collisions: whether another server exposes a tool with the same name. The specification says aggregating clients SHOULD disambiguate, for example by prefixing with a server identifier.
4.3 Discovery: describe how unlisted servers are found, for example endpoint scanning of client configuration files. See How to audit MCP servers on developer laptops.
5. Identities, credentials and authorisation
5.1 For each server, answer:
- Which identity does the server present to each upstream API: its own workload identity, a delegated user token obtained through token exchange, or a shared static credential?
- Are tokens accepted by the server issued explicitly for it? The specification states that MCP servers MUST NOT accept any tokens that were not explicitly issued for the MCP server, and the authorisation specification forbids token passthrough.
- What scopes are requested at first connection, and how is step-up handled? The Security Best Practices recommend a minimal initial scope set with incremental elevation, and list publishing every scope in
scopes_supportedand wildcard scopes as common mistakes. - Where are upstream credentials stored, who can read them and how are they rotated? See How to give MCP servers and local agents secrets without plain-text config files.
- If the server is an OAuth proxy to a third-party API with a static client ID, is per-client consent implemented before forwarding? The specification says MCP proxy servers MUST implement it.
5.2 Record the answers in this table.
| Server | Inbound auth (client to server) | Token audience checked | Outbound identity (server to upstream) | Scopes | Credential store and rotation | Revocation path |
|---|---|---|---|---|---|---|
| [Server] | [OAuth 2.1 with PKCE / API key / none] | [Yes / No] | [Workload identity / token exchange / static key] | [List] | [Vault path; rotation period] | [How to cut access in minutes] |
For the trade-offs between static keys and OAuth, see API Keys vs OAuth for MCP Servers and OAuth Token Exchange vs Token Passthrough.
6. Threat enumeration
6.1 For every server and boundary, work through the prompts below and record each credible threat in the register at 6.2. Add threats that the prompts do not cover.
| Threat | Prompt questions | Reference |
|---|---|---|
| Tool poisoning | Could a tool's description, parameters or annotations contain instructions aimed at the model? Who can change them? Would we notice? | MITRE ATLAS AML.T0110 AI Agent Tool Poisoning; tool annotations MUST be treated as untrusted unless from trusted servers |
| Rug pull | Could a server we approved change its tools or behaviour after approval, for example through an update or a notifications/tools/list_changed event? | MITRE ATLAS AML.T0109 AI Supply Chain Rug Pull |
| Prompt injection through tool results | Which tools return content an outsider can write (web pages, emails, tickets, documents)? What could the model do next if that content carries instructions? | OWASP LLM01:2025 Prompt Injection; ATLAS AML.T0051 |
| Excessive agency | Which tools can write, delete, send or execute? Is each needed? Is a human asked first? | OWASP LLM06:2025 Excessive Agency; ATLAS AML.T0053 AI Agent Tool Invocation |
| Confused deputy | Does any server act as an OAuth proxy with a static client ID? Could a malicious client obtain an authorisation code without the user's consent? | MCP Security Best Practices: Confused Deputy Problem |
| Token passthrough and audience | Does any server forward client tokens to upstream APIs, or accept tokens issued for another resource? | MCP Security Best Practices: Token Passthrough |
| Credential harvesting | Can a tool read files, environment variables or configuration that hold credentials? | ATLAS AML.T0098 AI Agent Tool Credential Harvesting |
| SSRF during discovery | Could a malicious server point the client's OAuth discovery at internal addresses or a cloud metadata endpoint? | MCP Security Best Practices: Server-Side Request Forgery |
| Malicious authorisation URL | Does the client open server-provided authorisation URLs safely, rejecting non-HTTP schemes and avoiding shell execution? | MCP Security Best Practices: OAuth Authorization URL Validation |
| Local server compromise | Can a one-click install run an arbitrary command? Is the server sandboxed? Is a local HTTP server reachable by other processes or by DNS rebinding? | MCP Security Best Practices: Local MCP Server Compromise |
| State handle hijacking | Do tools return handles (workflow IDs, cart IDs) that another user could guess or reuse? | MCP Security Best Practices: State Handle Hijacking |
| Supply chain | Where does each server's code come from? Is the version pinned and verified? | OWASP LLM03:2025 Supply Chain |
| Data leakage across servers | Could one server's output lead the model to send data to another server or external destination? | OWASP LLM02:2025 Sensitive Information Disclosure |
6.2 Threat register.
| Threat ID | Server or boundary | Description | Likelihood | Impact | Inherent risk | Controls (section 7 IDs) |
|---|---|---|---|---|---|---|
| T-01 | [Server / B2] | [Specific scenario in one or two sentences] | [H / M / L] | [H / M / L] | [Rating per risk method] | [C-01, C-04] |
Use [Organisation]'s risk rating method. For a deeper treatment of each threat, see the Top 10 MCP Security Risks and the Confused Deputy in AI Agents Guide.
7. Controls and residual risk
7.1 Baseline controls. Mark each as in place, planned (with date) or not applicable (with reason). The specification column shows where the control comes from in MCP protocol version 2026-07-28.
| ID | Control | MCP specification source | Status | Owner | How tested |
|---|---|---|---|---|---|
| C-01 | Servers accept only tokens issued for them; no token passthrough | Security Best Practices, Token Passthrough (MUST NOT); Authorization | [ ] | [ ] | [Present a token for another audience; expect rejection] |
| C-02 | OAuth proxy servers implement per-client consent, exact redirect URI matching and single-use state | Security Best Practices, Confused Deputy Problem (MUST) | [ ] | [ ] | [ ] |
| C-03 | Minimal initial scopes with step-up; no wildcard scopes | Security Best Practices, Scope Minimization | [ ] | [ ] | [ ] |
| C-04 | Human confirmation for sensitive tool calls; tool inputs shown before calling | Tools, User Interaction Model and Security Considerations (SHOULD) | [ ] | [ ] | [ ] |
| C-05 | Tool annotations and descriptions treated as untrusted; reviewed descriptions pinned and changes alerted | Tools, annotations warning (MUST consider untrusted) | [ ] | [ ] | [ ] |
| C-06 | Server-side input validation, access control, rate limiting and output sanitisation | Tools, Security Considerations (servers MUST) | [ ] | [ ] | [ ] |
| C-07 | Client blocks private, loopback and link-local ranges and requires HTTPS for OAuth discovery URLs; egress proxy for server-side clients | Security Best Practices, SSRF (MUST consider; SHOULD controls) | [ ] | [ ] | [ ] |
| C-08 | Client accepts only http(s) authorisation URLs and opens them without a shell | Security Best Practices, OAuth Authorization URL Validation (MUST) | [ ] | [ ] | [ ] |
| C-09 | Local servers installed only with consent showing the full command, run sandboxed, using stdio or an authenticated local transport | Security Best Practices, Local MCP Server Compromise (MUST consent; SHOULD sandbox) | [ ] | [ ] | [ ] |
| C-10 | State handles random, bound server-side to the authenticated user, never treated as authentication | Security Best Practices, State Handle Hijacking (MUST NOT treat as authentication) | [ ] | [ ] | [ ] |
| C-11 | Tool usage logged by client and server with user, server, tool and arguments, sent to the SIEM | Tools, Security Considerations (clients SHOULD log) | [ ] | [ ] | [ ] |
| C-12 | Server sources approved and versions pinned; only registry-approved servers allowed | [Organisation] policy | [ ] | [ ] | [ ] |
7.2 Residual risk. For each threat in 6.2, record the residual rating after controls and whether it is within appetite.
| Threat ID | Residual likelihood | Residual impact | Residual risk | Decision (accept / reduce / avoid / transfer) | Risk owner | Review date |
|---|---|---|---|---|---|---|
| T-01 | [ ] | [ ] | [ ] | [ ] | [Name] | [Date] |
7.3 Detection: list the signals that would show each high residual risk materialising, for example a tool description hash change, a token rejected for wrong audience, a new server in client configuration or an unusual volume of write calls. The MCP Incident Response Playbook covers response.
8. Review and sign-off
8.1 Review triggers. This record must be reviewed and re-approved when any of the following occurs:
- A new MCP server is added, or an existing server is replaced.
- A server adds, removes or changes a tool, or its description hash changes.
- A server gains new scopes, a new upstream API or access to a higher data classification.
- The authentication method or token flow changes, including moving from static keys to OAuth.
- [Organisation] adopts a new MCP specification version, or the specification's security guidance changes.
- A security incident or near miss involves the deployment or a similar one.
- In any case, at least every [12] months.
8.2 Approvals.
| Role | Name | Decision | Date |
|---|---|---|---|
| System owner | [ ] | [Approve / reject] | [ ] |
| Security architect | [ ] | [ ] | [ ] |
| Data owner for highest classification reached | [ ] | [ ] | [ ] |
| Risk owner for accepted residual risks | [ ] | [ ] | [ ] |
8.3 Version history: [version, date, author, summary of change].
Implementation guidance
- Start with the inventory. You cannot model what you have not found. Collect client configurations and gateway logs first, then fill section 4. The MCP Static Token Audit helps with section 5.
- Prioritise by reach. Model the servers that can write, send or reach sensitive data first; read-only servers over public data can share a lighter record.
- Run a short workshop. One to two hours with the server owner, a security architect and someone who uses the tools is usually enough for one deployment. Use section 6 prompts as the agenda.
- Test the controls. Each control in 7.1 needs a test: an audience-mismatch token, a changed tool description, a blocked metadata URL. See the MCP Security Testing Guide.
- Centralise where it helps. A gateway can enforce allowlists, token handling and logging for many servers at once; record it as its own component. See Agent Gateway vs MCP Gateway.
- Keep it alive. Store the record next to the server registry entry, wire review triggers to change management, and track open controls to closure.
Measure the programme with a few indicators: percentage of connected servers with an approved record, records past their review date, open planned controls past due, and tool description changes detected versus reviewed. For the specification requirements explained in plain language, see MCP Security Best Practices Explained; for the authorisation flow, the MCP Authorisation Specification Guide.
Related NHI Mgmt Group resources: MCP Tool Poisoning Detection · AI Agent Threat Model Template · MCP Security Guide · API Keys vs OAuth for MCP Servers · Local MCP Server Security Guide