MCP server penetration testing methodology, scope and report

A buyer's guide to how an MCP server penetration test is scoped, which public references it follows, and how the findings report ties each issue to a control and a retest.

On this page

Why MCP server penetration testing methodology matters before you commission a test

This page covers the public references an MCP server penetration test should follow, how to set its scope, and what the findings report should tie back to. Most buyers arrive here because a launch date, a customer security review, an insurer questionnaire or a compliance requirement now asks for evidence on an MCP server that connects an AI tool to internal systems. A test that cannot name its method, its boundaries and its reporting structure gives that evidence little weight, so the methodology deserves review before any quote is signed. The starting point is the MCP security best practices, which should be read alongside the MCP Authorization specification and OAuth 2.0 security best practices (RFC 9700). Together they give a tester a protocol baseline to check against, rather than a list of generic web tests.

The baseline names several weakness categories a buyer should expect a provider to address. The authorization specification forbids token passthrough: an MCP server must not accept tokens that were not explicitly issued for that server, so a reviewer will want to know how the server validates token audience. Confused deputy risk arises when an MCP proxy server forwards requests to a third-party authorization service using a static client identity, which can let one user's consent be reused by another. Local MCP servers raise a separate question: whether the client shows the exact command before a one-click install, and whether the server runs with minimal default privileges. Each of these needs an explicit scope decision, because each one changes which systems and accounts the test touches.

DeployOpen runs defensive security testing and does not issue audit reports, attestations or certifications. Our role is to test the MCP server and its surrounding setup, report findings with fixes and retest them, and prepare evidence that your own auditor or customer can review. Before commissioning a test, confirm three things in writing: which protocol version and guidance the method maps to, which MCP servers, clients and authorization servers are in scope, and how each finding will link to a named weakness category and a retest result. Ask the provider to show a sample report that does this. Those three items determine whether the output will satisfy the security review that prompted the test.

What can be in scope for an MCP server penetration test

An MCP test is only as useful as its boundaries. The decisions below determine which protocol surfaces, identities and upstream systems the tester can reach, and they should be written into the statement of work before testing starts. Each card names one decision a buyer should make or confirm with the provider.

Server deployment model

Decide whether the target is a remote hosted MCP server, a self-hosted server in your network, a local server that runs on a user's machine, or a proxy that sits between clients and third-party MCP servers. Each model carries different risks. Proxies raise confused deputy questions, local servers raise sandboxing and one-click install questions, and remote servers raise authorization and transport questions. Name the model explicitly, and list every deployment you want covered.

Protocol version
2025-11-25
MCP security best practices

Protocol version and tool inventory

Name the protocol version under test and attach a current inventory of every tool, resource and prompt the server exposes, with each tool's description, input schema and the permissions it can exercise. Scope defined by version and inventory keeps the test repeatable and makes a later retest comparable. Ask the provider to record any tool that changes after the baseline, since tool descriptions can be altered without a visible code change.

Clients and host applications

List the MCP clients and host applications that connect to the server, including IDE assistants, desktop chat apps and internal agents, along with their versions and configuration. Client behavior matters for approval prompts, displayed commands and how tokens are stored. Confirm whether the test covers client configuration only, the server only, or the end-to-end path from client through server to the upstream system.

Upstream APIs and identity providers

Identify every upstream API the server calls on a user's behalf and the identity provider that issues its tokens, including authorization server metadata and dynamic client registration if used. Tokens must be issued for the MCP server rather than passed through to downstream services. Confirm which upstream systems are in scope, which are excluded, and whether the provider may test against sandbox or production instances of each.

Test accounts and roles

Specify the accounts the tester will use, such as a standard user, a privileged administrator and a user from a second tenant where tenant isolation applies. Each role should map to the scopes it is granted, so the test can check scope minimization and whether lower-privilege identities can reach higher-privilege tools. Agree how accounts are provisioned, how credentials are handed over and when they are revoked.

Environments and rules of engagement

Agree which environment is tested, such as a staging copy with production-like configuration, and set rules for rate limits, load, destructive tool calls, test data and handling of any real customer records the tools can reach. Include a named contact for emergencies, the testing window, and how findings are reported during the engagement. Written rules protect both sides when a tool performs an irreversible action.

How the engagement runs phase by phase

The sequence moves from agreed scope to a baseline check of the MCP authorization design, then to controlled testing, a findings report and a retest, so each phase produces evidence the next one builds on.

  1. Agree scope and rules of engagement in writing

    The client and DeployOpen agree which MCP servers, clients, transports and hosting environments are in scope, which tools and data sources the server can reach, and which test accounts, tenants and environments may be used. The agreement also states what is excluded, such as production data or third-party APIs the server calls. The step closes when the signed scope document lists every server, its version, its owner and the test identities, so the client can point to the agreed boundaries later.

  2. Collect architecture and configuration documentation

    DeployOpen reviews the server's architecture, the client applications that connect to it, the identity provider, the authorization server, the tool inventory and the deployment model, whether remote, local or both. The client supplies this material, and the tester notes gaps that would change the test plan. The step is complete when a data flow sketch and a tool inventory have been confirmed with the client's engineering team.

  3. Review the protocol and authorization baseline

    Before any live testing, the tester checks the design against the MCP security best practices for the protocol version the server implements, the MCP Authorization specification and OAuth 2.0 security best practices (RFC 9700). The review covers token audience, token passthrough, authorization URL validation, scope design, session handling and, for local servers, how clients present the exact command before execution. Findings from this review are recorded as design questions to confirm during testing. The step closes with a baseline checklist marked for each control as met, unmet or unverified.

  4. Map the test plan to NIST SP 800-115 phases

    The engagement uses NIST SP 800-115 as the general model for planning, conducting and evaluating an information security assessment. The tester turns the baseline gaps and the tool inventory into test cases, assigns each case a risk category from the OWASP MCP Security Cheat Sheet and records expected outcomes. The step is complete when the test plan is approved by the client, with each test case linked to a server, a tool or a control. NIST SP 800-115 predates MCP, so the MCP-specific content in the plan comes from the MCP project's guidance rather than from that publication.

  5. Run controlled tests with scripted evidence capture

    The tester executes the approved cases in the agreed test environment, using the MCP Inspector where it fits and scripting its command-line output so each run leaves a repeatable record. Tests cover authorization flows, tool descriptions and behavior, session handling, and server exposure, with actions limited to the agreed accounts and data. Testers log timestamps, requests, responses and the tool version under test. The step closes when every planned case has a result, and any issue that could cause data loss or service disruption has been raised with the client as it happens.

  6. Deliver the findings report with mapped evidence

    DeployOpen writes a report that gives each finding a severity, a reproduction summary written for defenders, the affected component, the evidence captured and the risk names it maps to, such as the OWASP MCP Security Cheat Sheet categories and the relevant MCP best practice. Fixes are described as design and configuration changes. The client's engineers review a draft and can ask for clarification before the final version is issued. The step is complete when the final report is delivered and walked through with the client's security and engineering owners.

  7. Retest fixes and close the engagement

    After the client has remediated findings, DeployOpen reruns the affected test cases against the changed server, using the same scripted evidence capture so before and after results are directly comparable. Each finding is marked as resolved, partly resolved or still open, with the evidence for that status. The step closes with a retest record that the client can share with its auditor or customer, and the report is updated to reflect final status.

How the MCP security best practices become test areas

Each area in the MCP security best practices becomes a test area only when it has a stated objective and a pass or fail criterion that a tester can check against the server's design and observed behavior. The published guidance covers confused deputy attacks on MCP proxy servers, token passthrough, server-side request forgery during OAuth discovery, session hijacking, local MCP server compromise, OAuth authorization URL validation and scope minimization. For a proxy server, the objective is to confirm that it does not forward a client's consent to a third-party API without its own validation, and the pass criterion is that per-client consent is enforced before any upstream call. For token passthrough, the guidance states that MCP servers must not accept tokens that were not explicitly issued for that server, so the test checks the audience of every token the server accepts and fails the server if it accepts a token issued for another resource. The test checks design and behavior against the published guidance. It does not produce exploit code, payloads or step-by-step attack instructions, and the report records the criterion each result was judged against.

Server-side request forgery during OAuth discovery, session hijacking and OAuth authorization URL validation follow the same pattern. The objective for discovery is to confirm that URLs the server fetches from metadata are restricted to expected destinations, with a pass criterion that internal and link-local addresses cannot be reached through that path. For sessions, the test checks that session identifiers are not used as authentication and are bound to the user who created them, and that they are rotated as the guidance requires. For authorization URLs, the criterion is that the server validates redirect and authorization endpoints before sending a user to them. Local server compromise needs a different test, because the guidance asks clients to show the exact command before a one-click install and to run local servers with minimal default privileges. The tester therefore checks what the client displays, what approval it requires and what the server can reach on the host. Scope minimization is judged from the scopes the server requests and the tools it exposes, and the reader should confirm with the provider which of these criteria map to each finding in the report. Ask for the criterion next to every result, because a finding without one cannot be retested or checked by an auditor.

Which MCP weakness categories the test checks and why they matter

This table lists the MCP weakness categories an MCP server test checks, what each one looks like in a server, and why it matters to the client. Read each row as a question to put to the provider: if a category is missing from the test plan, ask why. The main takeaway is that most MCP findings sit where protocol authorization and agent permissions meet, so the report should map each finding to both an MCP risk name and an OWASP agentic risk.

CategoryWhat it looks like in an MCP serverWhy it matters and where it maps
Token passthrough and audience validationThe server accepts access tokens that were issued for another service or were not issued for this MCP server, then forwards them to upstream APIs.The MCP authorization specification forbids token passthrough. It maps to ASI03 Identity and Privilege Abuse, since the server can act with rights it was never granted.
Confused deputyA proxy MCP server uses one static client ID with a third-party authorization server, so a user consent can be reused by a malicious client.The MCP security best practices name confused deputy attacks on proxy servers. It maps to ASI03 and ASI02 Tool Misuse, because the agent triggers actions under the wrong user's authority.
SSRF through metadata or OAuth discoveryThe server fetches attacker-influenced URLs during OAuth metadata discovery or resource lookups, reaching internal addresses.The server becomes a network pivot. It maps to ASI02 Tool Misuse, since a tool call reaches destinations the operator never approved.
Session hijackingSession identifiers are predictable, reused across users, or accepted without binding to the authenticated principal.An attacker can act inside another user's session and its granted tools. It maps to ASI03 Identity and Privilege Abuse.
Tool poisoningTool names, descriptions or schema text carry hidden instructions that steer the model toward unsafe calls.The model reads tool metadata as trusted context. It maps to the OWASP MCP Security Cheat Sheet risk of tool poisoning and to ASI01 Agent Goal Hijack.
Rug pullsA tool behaves as reviewed at approval time, then changes its description or behavior later without a new approval.Approval records stop meaning anything. The test checks whether changes are detected and re-approved. Map to the cheat sheet risk name and ASI04 Agentic Supply Chain Vulnerabilities.
Tool shadowingTwo servers expose tools with the same or similar names, so the agent calls the wrong one.Calls can be routed to a malicious tool that receives sensitive inputs. Map to the cheat sheet risk name and ASI02 Tool Misuse.
Scope over-grantingAccess tokens carry broad scopes that cover every tool, even when a task needs one read action.Each compromised session inherits excess rights. Scope minimization reduces this. Map to ASI03 Identity and Privilege Abuse and ASI02 Tool Misuse.
Local server sandboxingA local MCP server runs with the user's full file, network and credential access and no isolation.A single malicious package can read local secrets. The guidance expects minimal default privileges. Map to ASI05 Unexpected Code Execution.
One-click install approvalA client installs a local server from a link or config and runs the command without showing the exact command or asking for explicit approval.The guidance requires showing the exact command and explicit user approval. Test whether the client does this. Map to ASI04 and ASI09 Human-Agent Trust Exploitation.

Frameworks and obligations that expect this testing

Several regulations, voluntary profiles and certification factors now ask for adversarial testing of AI systems and agents. Each one sets expectations for what a test should cover, but none of them is a certificate DeployOpen issues. Confirm with your auditor or customer which requirement applies before you fix the scope of an MCP server test.

EU AI Act resilience duty

Article 15(5) requires high-risk AI systems to resist attempts to exploit their vulnerabilities, including data poisoning, model poisoning, adversarial examples, model evasion and confidentiality attacks. For an MCP server, that points the scope toward tool inputs, poisoned tool descriptions and data returned into the model context. Ask your legal or compliance team whether your deployment is classed as high-risk, since that decides whether this duty applies at all.

AI Act text

EU AI Act adversarial testing duty

Article 55(1) requires providers of general-purpose AI models with systemic risk to perform and document adversarial testing. Most MCP server operators are not model providers, so this duty usually falls on the model provider rather than on a team connecting tools to it. Read the article against your role in the value chain, and if you supply such a model, ask what documented adversarial testing your provider expects from you.

AI Act text

NIST AI 600-1 generative AI profile

NIST AI 600-1 is the Generative AI Profile of the AI Risk Management Framework, published for voluntary use to build trustworthiness into generative AI design, use and evaluation. It gives a test a risk vocabulary for documenting why a tool exposure or permission was accepted. It does not prescribe test steps, so use it to frame the risk register that your MCP test findings map into.

Published
26 July 2024
NIST AI 600-1 profile

NIST AI 100-2 attack taxonomy

NIST AI 100-2 E2025 is a taxonomy and terminology of adversarial machine learning attacks, covering evasion, poisoning and privacy attacks on predictive and generative systems. It gives testers and report readers a shared name for each attack class, which keeps findings comparable across tests. For an MCP server, use it to label attacks on the model-facing side, such as manipulated tool outputs, and keep protocol and authorization flaws under the MCP guidance instead.

NIST AI 100-2 text

HITRUST agentic AI factor

HITRUST CSF v11.9.0 added an Agentic AI selectable factor to the HITRUST AI Security Certification and mapped it to the OWASP Top 10 for Agentic Applications 2026. If your organization pursues this certification, the mapping tells you which ASI categories an assessor will look for, such as tool misuse (ASI02) and identity and privilege abuse (ASI03). Ask your HITRUST assessor how they accept evidence from an MCP test and whether a provider's report is sufficient on its own.

HITRUST advisory

How MCP testing differs for remote, hosted proxy and local servers

A remote hosted MCP server runs on infrastructure the client or a vendor operates and is reached over the network by MCP clients. The test focuses on the server as a network service that authenticates callers and issues or accepts tokens. The MCP authorization specification requires that a server accept only tokens explicitly issued for that server, so the tester checks the token audience on every request, not just at login. Session handling and transport security also sit at the center, because a hosted server usually serves many users at once.

  • OAuth issuer and audience handling: Confirm the server validates issuer, audience and expiry, and rejects tokens minted for other resources.
  • Token passthrough: Check that the server does not forward client tokens to downstream APIs.
  • Session hijacking: Review how session identifiers are generated, bound to users and expired.
  • Scope design: Confirm tools request and enforce the narrowest scopes, with no catch-all permission.
  • Server-side request forgery: Test discovery and metadata fetches that the server performs on a client's behalf.

Before testing, confirm which identity provider issues tokens, whether the server is multi-tenant, and which downstream systems it can reach.

What your team prepares before testing starts

Before an MCP server test starts, your team should hand the tester a written scope that names the server, its protocol version and the exact server build or release under test. The protocol baseline matters because the MCP security best practices are written against a specific protocol revision, so the tester needs to know which revision your server implements (the current reference is protocol version 2025-11-25). Also provide the tool inventory with every tool's name, input schema and description as the server actually serves them, not as they appear in your documentation. Tool descriptions are read by the model, so the tester needs the live text to assess tool poisoning and shadowing risks.

Next, prepare test identities and roles. Supply at least one identity per role the server distinguishes, such as a standard user, a privileged user and an account with no access, along with the OAuth clients and redirect settings used by your MCP clients. Confirm which authorization server issues tokens, which resource identifiers the server expects and which scopes each role should hold, because authorization and token audience checks cannot be judged without this. Decide whether the test runs in a staging environment with production-like data or in an agreed production window. If production is in scope, record the window and the data the tester may touch. Give the tester logging access, or a named contact who can pull server, proxy and authorization logs during the test, so findings can be traced to requests.

Finally, agree the operational rules in writing. Set change freezes so no deployments or tool changes land mid-test, and agree rate limits with the team that runs the server and any upstream APIs it calls, so a test does not trigger production alerts or exhaust quotas. Name technical contacts for the server, the identity provider and the hosting platform, and set an escalation path for critical findings, including who is called, how fast, and whether the tester pauses. Ask the provider to confirm these items in the quote and in the statement of work, since none of them should depend on verbal agreement.

What to check when choosing a provider for MCP testing

A provider's method for an MCP server test is only as useful as its traceability: which public references it follows, how scope is written, and how findings are evidenced and retested. The cards below set out the questions to put to a provider before you sign, and what a good answer sounds like. DeployOpen is not a certified provider of MCP or of any standards body, so ask each provider for its own evidence of method.

Named public references

Ask which public references the method maps to, and get the mapping in writing. For MCP work this should include the MCP security best practices and the MCP Authorization specification, which together set the protocol baseline, along with OAuth 2.0 security best practices (RFC 9700). Ask whether the provider cross-references the OWASP MCP Security Cheat Sheet for risk names. A provider that cannot name its references is asking you to trust an undocumented method.

MCP security practices

Written scope and change control

Scope should be written as a list of endpoints, tools, clients, transports and environments. Ask how a change to scope is requested, priced and approved, and whether a newly discovered server or tool is added through a written change or left out. Confirm who is allowed to authorize tests against production and which test accounts and tokens the provider will use. Vague scope such as "the MCP integration" usually produces disputes at the end of the engagement.

Findings mapped to named risks

Each finding should carry a risk name from a published list, not only a severity label. Ask whether findings map to the MCP security categories such as confused deputy, token passthrough, server-side request forgery, session hijacking and local server compromise. Ask whether tool poisoning, rug pulls and tool shadowing are covered where tool metadata is in scope. Mappings let your security team and auditors trace each finding to a recognized category.

Repeatable evidence capture

Ask how requests, tool listings, token claims and server responses are recorded, stored and tied to a test date and server version. Ask whether the provider uses scripted tooling for capture, since command-line output from tools such as the MCP Inspector can be rerun unchanged in a retest. Confirm the retention period for evidence and whether it contains tokens or client data that must be redacted before delivery.

MCP Inspector docs

Retest terms and limits

Ask what a retest includes, whether it is covered in the original quote, and how long after the report it can be requested. Ask the provider to state in writing what it did not test, such as client applications, third-party authorization servers, local servers on user devices or denial-of-service behavior. A provider that names its exclusions is easier to hold to account than one that promises full coverage.

Team understanding of MCP authorization

Ask a tester to explain how the MCP Authorization flow issues and validates tokens, and why an MCP server must not accept tokens that were not explicitly issued for it. Ask how they would check audience binding, scope minimization and authorization URL validation during OAuth discovery. Ask for a sample redacted report. Answers that stay at the level of generic API testing indicate the team has not worked on MCP servers in depth.

Best practices text

Questions buyers ask about MCP server penetration testing

How much does an MCP server penetration test cost?

No public price list exists, so the cost follows from the written scope. The main drivers are the number of MCP servers and clients, whether the server sits behind OAuth or uses API keys, how many tools and permission scopes it exposes, whether it runs locally on employee machines, and how many retests are included. Ask each provider to quote one-time testing effort separately from any recurring retest or continuous testing work, and to state which tool descriptions, identity providers and client applications are covered. A quote that cannot name its scope items is hard to compare.

How long does an MCP server test take and what does it need from us?

Duration depends on the same scope factors as cost, plus how quickly your team can provide access. Before testing starts, the provider should need a test environment that mirrors production, test accounts with the roles you want covered, the MCP server's tool list and configuration, documentation of your OAuth authorization server and token audiences, and a named contact who can approve tests that touch live systems. Ask the provider to put the expected duration and each dependency in the written plan, so delays on your side are visible rather than absorbed into the test window.

Can our own security team run an MCP server test internally?

Yes, if your team has the skills and the time, and many do parts of the work themselves. Internal teams can review tool descriptions, check token handling and scope design against the MCP security best practices, and use the MCP Inspector, which requires Node 22.19.0 or newer and offers CLI output that can be scripted for repeatable evidence capture. An independent test adds value when the auditor, customer or insurer expects an outside tester, or when the same people build and review the server. Many organizations combine both, with internal teams running routine checks and an external tester covering the authorization flow and the findings report.

Will the findings report satisfy an auditor or a customer?

A report helps with an audit or customer review, but it does not replace one. DeployOpen does not issue audit reports, attestations or certifications, and independent auditors and certification bodies make those decisions. A useful MCP report lists each finding with its affected component, reproduction conditions at a defensive level, severity, the MCP best practice or OWASP category it maps to, the recommended fix and the retest result. Confirm with your auditor or customer which framework mapping they need, such as the OWASP GenAI or MITRE ATLAS references, and agree the report format in writing before testing begins.

How does retesting work after the findings are fixed?

Retesting checks whether each fixed finding is actually closed, and it should be part of the written scope rather than an informal favor. Agree at the outset how many retest rounds are included, which findings are retested, how evidence is captured, and how the updated report marks each item as closed, open or accepted as a risk. Scripted test output from a repeatable run makes retests faster and easier to compare. Ask whether retesting after a later server upgrade or new tool release is covered, since a changed tool list can reopen risks that were already closed.

Are local MCP servers in scope for a penetration test?

Local MCP servers can be in scope and often carry the highest risk, because they run on employee machines with the user's privileges. The MCP guidance says clients offering one-click configuration should show the exact command to be executed and require explicit user approval, and that local servers should run sandboxed with minimal default privileges. A test can review how servers are installed, what files and credentials they can reach, whether approval prompts show the true command, and how the client isolates them. Confirm with the provider whether endpoints, the client applications and the install paths are covered, since these change the effort materially.

Does AI-assisted scanning replace a human-led MCP server test?

No, automated scanning finds some known patterns quickly but does not replace a human-led test. Authorization logic, confused deputy paths, token audience checks and tool descriptions that mislead a model all require a tester to reason about how the system is meant to behave and how it can be abused. Ask a provider which parts of the work are automated, which are performed by a person, and how the tester validates each finding before it enters the report. A scan output can be a useful input to a human test, but it should not be presented as the test itself.

Which public references should an MCP server test follow?

A credible test maps its method to a small set of public references, which buyers can check against the proposed plan. The MCP security best practices (protocol version 2025-11-25) give the protocol baseline, and they are meant to be read with the MCP Authorization specification and OAuth 2.0 security best practices (RFC 9700). The OWASP MCP Security Cheat Sheet supplies risk names such as tool poisoning, rug pulls and tool shadowing for mapping findings. NIST SP 800-115 supplies the general phases for planning, conducting and evaluating an assessment. Ask the provider to show how each finding ties back to one of these sources.

How DeployOpen scopes, tests, reports and retests MCP servers

DeployOpen scopes and tests MCP servers as part of its security testing work on AI systems and agents, inside the client's own infrastructure where the server runs. Each engagement is fixed-scope, with the layers, deliverables and retest terms agreed in writing before testing starts.

How we scope

  • Written scope names each MCP server, its transports, hosting location and the clients that connect to it.
  • Scope records which tools, resources and OAuth flows are in test, and which are excluded.
  • Scope states whether local servers on employee endpoints are included or only remote servers.

How we build

  • Testing follows the MCP security best practices and the authorization specification as the protocol baseline.
  • Each finding is mapped to the OWASP MCP Security Cheat Sheet risk names and mitigations.
  • Test runs use a controlled test environment and scripted captures so evidence can be repeated at retest.

How we hand over

  • The report lists each finding with its affected component, evidence, severity and a recommended fix.
  • Findings tie back to the MCP guidance, OWASP references and any control IDs the client's auditor uses.
  • Remediation guidance is written so the client's engineering team can act on it without further discussion.

How we support

  • A retest checks each fixed finding against the same evidence captured in the original test.
  • Ongoing support, upgrades and continuous testing of MCP servers are available as a retainer.
  • Clients should confirm retest scope and timing in the written engagement before work begins.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.