Dev.to Security πŸ” Cybersecurity πŸ‘ 0 πŸ“– 5 min read

Scanning 6,225 MCP servers: what I found and what I had to correct

A couple of weeks ago I wrote an update saying 97% of tracked MCP servers tripped a new transport-security check. The cohort at that point was 277 servers. The scanner has been running continuously since, and the cohort

A couple of weeks ago I wrote an update saying 97% of tracked MCP servers tripped a new transport-security check. The cohort at that point was 277 servers. The scanner has been running continuously since, and the cohort is now 6,225.

This post is a snapshot of where things stand, the three failure patterns that keep showing up, and the corrections I had to publish along the way. If you operate a public MCP server, or if you are thinking about shipping one, a few of these will apply to you.

the numbers
Of 6,225 public MCP endpoints catalogued on 2026-11-28:

633 grade A (10.3%)
342 grade B (5.6%)
252 grade C (4.1%)
90 grade D (1.5%)
4,998 grade F (80.3%)
And broken out by severity:

550 critical findings: heavy-write tools exposed without authentication
2,228 high: OAuth misconfigurations that block spec-compliant clients
11,276 medium: transport headers, metadata gaps, poisoning patterns
600 low
Full breakdown at patchbay-mcp.dev/leaderboard, re-crawled weekly.

the three patterns that keep breaking

  1. no Protected Resource Metadata document /.well-known/oauth-protected-resource has been mandatory per RFC 9728 since mid-2025, and the MCP Authorization spec made it a hard requirement in the June 2025 revision. Without it, spec-compliant MCP clients can't discover which authorization server issues tokens for your resource. Many servers still skip it.

The document is small. Here is a minimal valid version:

{
"resource": "https://api.example.com",
"authorization_servers": ["https://auth.example.com"],
"bearer_methods_supported": ["header"]
}

  1. PKCE S256 not advertised code_challenge_methods_supported missing from /.well-known/oauth-authorization-server. Even if your server enforces PKCE at runtime, spec-compliant MCP clients refuse to start the flow because the discovery metadata doesn't advertise support. One-line config fix on most OAuth stacks:

Auth0: enable PKCE in your application tenant settings
Clerk: PKCE is on by default in recent versions, verify it is in the metadata
WorkOS: add code_challenge_methods_supported: ["S256"] to your well-known doc
Raw Express: add it to your AS metadata endpoint handler

  1. DCR without the modern replacement Server advertises registration_endpoint (RFC 7591 Dynamic Client Registration) but doesn't advertise client_id_metadata_document_supported. The July 2026 spec revision deprecated DCR in favour of OAuth Client ID Metadata Documents (CIMD). Many servers haven't migrated.

the 550 critical findings
AUTH-001 fires when a server's tools/list response contains tools whose names match heavy-write verbs without requiring OAuth. If you expose a send_email, delete_user, or charge_card tool to any unauthenticated client, it fires critical.

Verb distribution across the 550:

delete 118 hosts
send 111 hosts
cancel 65 hosts
publish 51 hosts
revoke 20 hosts
approve 19 hosts
transfer 19 hosts
deploy 10 hosts
refund 7 hosts
charge 1 host
Hosts can appear in more than one bucket. Full verb-by-verb breakdown with CRUD-ambiguity caveats in a follow-up post.

the corrections I had to publish
Here is the honest part. Three things I got wrong, caught, and shipped fixes for in the last week:

the 6,800 that was actually 6,225
The scanner's reachability check was too loose. Any HTTP endpoint that returned a 200 and parsed as JSON was counted as "reachable MCP server", even when the response was just a generic error page from a CDN hosting some chat SaaS on mcp.* subdomain. Initial scan hit 6,800+ reachable endpoints; after tightening the check to require a valid JSON-RPC protocolVersion response, 452 non-MCP hosts dropped out. Published the correction openly at state of MCP server security: November 2026.

the AUTH-001 severity matrix
First draft of AUTH-001 fired critical on every tool with a WRITES-shaped verb in its name. That put developer-scaffolding servers (Clerk's SDK snippet tool, Convex's start_convex_app) at the same severity tier as a genuine unauthenticated send_payment endpoint. Added a three-way severity matrix:

Heavy-write verb (send, delete, transfer, etc.) unauth β†’ critical
Scaffolding verb only (start, run, init) β†’ high
No write verb β†’ info
Clerk, Convex, and the handful of similar hosts downgrade cleanly and don't get surfaced as critical anymore.

HEADERS-001 from presence to value
Old HEADERS-001 passed X-Frame-Options: ALLOWALL because the header was present. Browsers don't recognise ALLOWALL; the header is effectively missing. Shipped the depth-upgrade to validate values per header, not just presence. 11 sub-findings now, each with its own severity:

HEADERS-001.1 X-Frame-Options missing
HEADERS-001.2 X-Frame-Options invalid value
HEADERS-001.3 X-Content-Type-Options missing
HEADERS-001.4 X-Content-Type-Options invalid value
HEADERS-001.5 Strict-Transport-Security missing on HTTPS
HEADERS-001.6 HSTS max-age below OWASP floor
HEADERS-001.7 HSTS missing includeSubDomains
HEADERS-001.8 CSP unsafe-inline without nonce/hash exception
HEADERS-001.9 CSP unsafe-eval
HEADERS-001.10 Referrer-Policy weak
HEADERS-001.11 CORS wildcard with credentials (critical)
Full writeup at HEADERS-001: from presence to value-validation.

what we deliberately don't do
No active exploitation. Every check is passive or metadata-read.
No browser-behavioural testing. Scanner stays deterministic.
No credential testing or probing.
No DOS / stress. Each server gets a few requests once a week.
why publish the corrections at all
Because a security tool that doesn't publicly correct its own mistakes is not a security tool, it's a marketing surface. We do the correction-publishing as policy, and the methodology page lists all the sources plus every known gap: patchbay-mcp.dev/methodology.

If you find a false positive on your own server, or a false negative we missed, send it to [email protected] with the specific host and finding. Correction is standard.

scan your own
npx -y @patchbay-nebius/agent audit https://your-server.example.com
Or paste a URL at patchbay-mcp.dev/audit for the browser version. The CLI is MIT licensed, runs locally, no telemetry.

GitHub Action for CI integration:

  • uses: patchbay-security/patchbay-audit@v1 with: url: https://your-mcp-server.example.com fail-on-grade: C Fails the build on --ci flag if critical or high findings are present. Outputs SARIF for GitHub code scanning.

what's shipping next
RESOURCE-001 depth-upgrade: schema validation against RFC 9728, authorization-server reachability test, audience-binding verification. On the Q1 engineering roadmap.
PKCE-001 behavioural: actual OAuth flow start with broken PKCE params, verify server rejection at runtime. Not just metadata.
AUTH-001 behavioural: the biggest one. Needs careful dry-run-first design so patchbay doesn't accidentally mutate state on servers it scans. Q1 end-of-quarter target.
Hosted v1 launches January 1 with scheduled rescans, drift alerts, and private-MCP scanning for teams that don't want their endpoints on a public leaderboard.
Source code, issue tracker, PRs welcome: github.com/GodSmasher/patchbay.

πŸ“° Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.