MCP Server Penetration Testing
Last updated:
An MCP server gives any connected model your tools and data, so its token checks decide who can use them. We test those checks, each tool’s permissions and the backends behind them. EJN Labs is a CREST-accredited UK company providing MCP server penetration testing, from £6,110 for a 5-day single-application scope, quoted within 24 hours.
- Unlimited retesting
- Unlimited pre-retesting
- No hidden fees
“I would highly recommend EJN Labs to any organisation seeking reliable, detailed, and well-managed penetration testing services, particularly for government or enterprise-level projects.”
“There wasn’t another company we could find that could deliver what we needed in the timeframe we needed. The client loved it, and we got instant ROI from the engagement.”
An MCP server that accepts a token not issued for it, or forwards one upstream, lets the wrong caller reach your tools. We test whether every request is checked against its own user.
How an MCP server decides who can call its tools
The Model Context Protocol authorisation specification treats an HTTP-based MCP server as an OAuth resource server. Such a server must validate access tokens and must check that each one was issued specifically for it as the intended audience, answering invalid or expired tokens with HTTP 401. Authorisation is optional in the protocol, so a server that skips it, or implements it loosely, is the first thing a review looks at. The specification also forbids the server from passing through the token it received to an upstream API, so a separate token has to be obtained for the upstream call.
The protocol’s own security best practices name the failures to expect. They cover token passthrough, the confused deputy problem in MCP proxy servers that use a static client ID with a third-party authorisation server, state handle hijacking, and compromise of local MCP servers. The tools specification adds that a server must validate all tool inputs, implement proper access controls, rate limit tool invocations and sanitise tool outputs.
That is a short list of requirements, and each one is something we can test from outside. The model is only one caller. An attacker can also reach the server directly, and the server is usually a thin layer in front of a database, an API or a shell, which is where the API penetration testing we already do applies. For the model-facing side, see our AI penetration testing.
SCOPE
What we test in an MCP server penetration test
Token Audience and Validation
The authorisation specification requires an MCP server to validate that access tokens were issued specifically for it as the intended audience, and to answer invalid or expired tokens with HTTP 401. We replay tokens issued for other resources, expired tokens and tokens with altered claims, and test whether the server accepts any of them.
Token Passthrough to Upstream APIs
The specification says an MCP server must not pass through the token it received from the client, and that a server calling an upstream API acts as an OAuth client with a separate token. We test whether a client’s token reaches the upstream API unchanged, and whether the server can be used as a proxy for data it should not return.
Per-Tool Authorisation, Scopes and Rate Limits
The tools specification requires access controls and rate limiting on tool invocations, and the authorisation specification describes a 403 response with an insufficient_scope error when a token lacks a scope. We call every tool with tokens of different scope and role, test whether a call outside the token’s rights is refused, and test the rate limits.
Tool Input Validation and Backend Injection
The tools specification requires a server to validate all tool inputs, and each tool defines its inputs with a JSON Schema. We send values the schema allows and values it should not, including injection strings, path traversal, oversized input and URLs, and follow them into the database, file system, shell or HTTP client behind the tool.
Tool Output and Injected Instructions
The tools specification requires a server to sanitise tool outputs, and tells clients to treat tool annotations as untrusted unless they come from trusted servers. We check what a tool returns when its data contains instructions, and whether content from one user’s records can reach another user’s model session.
OAuth Proxy, Static Client IDs and Consent
The security best practices describe a confused deputy attack on an MCP proxy server that uses a static client ID with a third-party authorisation server, allows dynamic client registration and relies on a consent cookie. Where your server is a proxy, we test whether it asks for consent for each client before forwarding to the third party.
Redirect URI and State Parameter Handling
The security best practices describe exact string matching of the redirect URI, and a random, single-use, short-lived state value checked at the callback, as the protection. We test redirect URI variants, missing or reused state, and whether the consent step can be skipped by setting the cookie too early.
State Handles and Separation Between Users
The current security best practices advise against treating possession of a state handle as authentication, and describe unguessable handles bound server-side to the authenticated user. We test whether a cart, workflow or similar identifier can be guessed, reused or presented by a different user to read or change their state.
HTTP Transport: Origin, Binding and Authentication
For the Streamable HTTP transport, the specification says servers must validate the Origin header and answer an invalid one with HTTP 403, should bind only to localhost when running locally, and should authenticate all connections. We test the endpoint from outside and from a browser context, including DNS rebinding conditions, and test which interfaces are exposed.
Local Servers: Startup Commands, Privileges and Secrets
The security best practices warn that a local MCP server runs with the privileges of the client and can be a route to arbitrary code execution, and recommend sandboxing and the stdio transport. The authorisation specification says stdio servers should take credentials from the environment. We review how the server is launched, what it can reach on the host, and where its credentials are held.
OUR PROCESS
MCP Server Penetration Testing: From Scope to Attestation
Scope and Access
We agree the server, its transports and the tools in scope, and get test accounts for each role plus the tool list, schemas and configuration.
Token and Tool Mapping
We map how tokens are issued and checked, every tool and its inputs, and every upstream API, database or command behind each tool.
Manual Testing
A CREST-certified tester manually tests token handling, tool access and the transport directly, then through a model client, chaining findings where they compound.
Attestation and Retest
You get a technical report with CVSS scores and reproduction steps, a walkthrough call, a free retest once fixes are deployed, and an attestation letter for auditors.
CREDENTIALS
Verified Accreditations Auditors Accept
Every credential below is independently verifiable. UK procurement teams, FCA supervisors, ISO 27001 / SOC 2 auditors, and cyber insurance underwriters all recognise these standards.
GET YOUR QUOTE
Get a CREST MCP Server pen test quote in 24 hours
A fixed-price quote back in one business day, from a named CREST assessor. No sales pipeline, no chasing.
- CREST and IASME accredited. Testing your auditors and clients already recognise.
- Fast-track testing within 24 hours where required. Free retest of every fix included.
- Live findings via your client portal, not a four-week PDF.
- Fixed price from £3,500 for a single-role, single-app scope, agreed up front. Most engagements run £5,000 and up. No day-rate surprises.
Under NDA Further named references available on a scoping call.
- We reply within one business day with a fixed-price quote from a named CREST assessor.
- You approve the scope and we book a start date, usually within 24 hours.
- Live findings land in your client portal as we test, with a free retest of every fix.
Get your fixed pen test quote in 24 hours
Quote request received
We will reply within one business day with your fixed-price quote from a named CREST assessor.
Your data stays with us. No newsletter signup.
or book a 20-min scoping call first
We reply within one business day. Your data stays with us. No newsletter signup.
COMPLIANCE READY
Reports Mapped to Every Framework
Findings are written so your team can reference the report against each framework without translation work.
ISO 27001:2022
Annex A.8.8 management of technical vulnerabilities plus A.5.15-5.18 and A.8.2-8.5 access control validation.
SOC 2 Type I & II
CC6 logical access, CC7 system operations, CC8 change management evidence.
PCI DSS
Requirement 11.4 application penetration testing across cardholder data environments, including ecommerce penetration testing for online retail platforms.
FCA SYSC
SYSC 4.1.1R, 6.1.1R, 13 mapped to each finding for FCA-regulated firms.
UK GDPR
Article 32 effectiveness testing, customer-data security controls, ICO-acceptable evidence.
Cyber Essentials Plus
Direct certification through our IASME body status, single-vendor delivery.
PRICING
Transparent MCP Server Penetration Testing Pricing
EJN Labs MCP Server Penetration Testing prices start at £6,110. Pricing depends on the number of roles, integrations and environments in scope. See our pricing page for how we quote.
Depends on AI system complexity
Single LLM-powered chatbot, basic RAG (≤100 documents), no agent tools. Around 5 to 7 working days from kickoff to report.
Get a fixed quoteDepends on AI system complexity
Multi-tool agent system, complex RAG pipeline, fine-tuned model, multi-tenant. Around 8 to 12 working days from kickoff to report.
Get a fixed quoteDepends on AI system complexity
Production AI platform, multi-agent orchestration, regulated AI use case (FCA, NHS), custom-trained models. Around 12 to 18 working days from kickoff to report.
Get a fixed quoteSECTORS
Sectors We Test MCP Server For
Sector-specific scoping for regulated UK organisations.
Fintech & FCA-Regulated
FCA SYSC, Open Banking FAPI 1.0, PSD2 SCA, payment-flow scrutiny, KYC/AML testing.
Fintech sector pageSaaS Companies
SOC 2 Type I & II evidence, multi-tenant boundaries, role escalation, customer-tenant isolation.
SaaS sector pageLaw Firms
SRA Cyber Standard, privileged data, conveyancing fraud defence, partner-tier procurement.
Law firm sector pageHealthcare
NHS DTAC, DSP Toolkit v6, UK GDPR Article 32, EHR systems, telehealth platforms.
Healthcare sector pageInsurance
FCA / PRA Operational Resilience, cyber underwriting, claims data, broker portals.
Insurance sector pagePublic Sector
CCS / G-Cloud framework, NCSC-aligned, citizen-facing services, PSN-compliance scrutiny.
Public sector pageWHY EJN LABS
What You Get From MCP Server Penetration Testing
Six concrete differentiators competitors don’t all match.
CREST-Certified Testers, Verifiable
Every test by a CREST-certified pen tester (CRT, CCT APP, CCT INF where applicable). Verify our company status at crest-approved.org.
24-Hour Startup, Where Required
From signed scope to active testing in a single business day for incident response, audit deadlines, or regulator-driven timelines.
Live Findings, Not 4-Week PDFs
Critical issues reported during testing through your client portal. Your team remediates while testing continues.
Audit-Ready Reports
Executive summary plus full technical report with CVSS scores and explicit framework mappings (ISO 27001, SOC 2, PCI DSS, FCA SYSC).
Free Retests, Standard
Verify remediation of every finding before close-out. Letter of attestation for audit submission included. Most competitors charge £1,500-£3,000 per retest.
UK-Based CREST Testers
Every engagement performed by vetted, UK-based CREST-certified testers, matched to your needs, security clearance, and compliance scope.
FAQ
Frequently Asked
What access do you need to test our MCP server?
We need the server endpoint or the code to run it locally, test accounts for each role, and the list of tools with their schemas. If you use OAuth, we also need to know which authorisation server issues the tokens, so that we can test both sides of the token check.
Will testing touch live data?
That is your choice, and we agree it before testing starts. Because tools often write to real systems, we prefer a test environment with tool credentials of the same strength as production. We do not run destructive tool calls or export real customer data without written agreement.
How long does an MCP server penetration test take?
A single MCP server with a defined set of tools sits in our 5-day single-application scope, with the report typically landing around 5 to 7 working days after the testing ends. Several servers, many tools or a custom authorisation server move into a larger scope with more testing days.
Do you test servers that run locally as well as hosted ones?
Yes. The risks differ, so the tests do too. A hosted server is tested over HTTP for tokens, access control and exposure. A local server is reviewed for how it is launched, what it can reach on the machine and how it handles credentials.
Do you test the AI client or model that connects to the server?
We test the server, and where useful we connect a model client to it to see how tool output is used. Testing your own AI application is a separate piece of work, covered by our AI penetration testing. We never test a model provider’s platform.
Does the protocol place rules on customer penetration testing?
The Model Context Protocol is an open specification, not a hosted service, so there is no single vendor policy. We confirm the terms of the platform you host the server on, and of any upstream API the tools call, with you during scoping, and test to them exactly.
What is out of scope for an MCP server penetration test?
We test the server you build and run, its tools and the systems those tools connect to. A third-party authorisation server, a SaaS product behind a tool or the cloud platform hosting the server is scoped and quoted separately, and we never test other customers or shared services.
Is EJN Labs CREST accredited?
Yes. EJN Labs is a CREST-accredited company, and every MCP Server engagement is carried out by UK-based, CREST-certified testers. Your report and attestation letter are recognised by auditors and insurers accordingly.
20+ CREST-accredited testing services in one place
Web, mobile, API, cloud, AI, infrastructure, red team. Pick the test that fits your environment.
Get a fixed price for your MCP server
An MCP server gives any connected model your tools and data, so its token checks decide who can use them. We test those checks, each tool’s permissions and the backends behind them. EJN Labs is a CREST-accredited UK company providing MCP server penetration testing, from £6,110 for a 5-day single-application scope, quoted within 24 hours.



