Every week another team ships an MCP server to connect Claude, Codex, or internal AI agents to production databases, Jira, or cloud APIs. Most security advice stops at “use OAuth” — without measuring how the real ecosystem is actually configured.
To see what breaks in the wild, we partnered with AllMCPs — a live-verified directory of 33,294+ MCP servers that runs real tools/list handshakes against hosted endpoints and executes stdio packages inside isolated sandboxes (AllMCPs Trust, State of MCP). Using a fresh November 30, 2026 telemetry slice shared directly for this study, the numbers expose a massive gap between MCP hype and production readiness: 53% of hosted MCP servers expose tools/list with zero authentication , and “Official” badges do not improve sandbox reliability at all.
Note
Methodology & Data Source: All empirical figures in this study come from AllMCPs live directory checks as of November 30, 2026 (8,774 hosted endpoints, 19,695 indexed servers with 333,545 tools, 396 Official/Owner-Verified listings, and a 19,316-server September cohort). Hosted endpoints are probed via live HTTP tools/list handshakes; stdio packages are tested inside isolated sandboxes.
If you are building your first server from scratch, start with our MCP Server Guide 2026: Build One and Run It Safely, then apply the hardening patterns below before exposing it outside localhost.
1. State of MCP Server Security: 53% of 8,774 Remote Servers Need Zero Auth
Across 8,774 hosted MCP endpoints tracked in the live AllMCPs directory:
- 8,259 (94%) responded to the latest live probe.
-
4,664 (53%) returned a complete
tools/listpayload to a completely unauthenticated request.
The authentication breakdown across hosted MCP servers shows why unauthenticated exposure is still the default:
| Authentication Mechanism | Hosted Servers | Share | Security Implication |
|---|---|---|---|
| None (Unauthenticated) | 4,667 | 53% | Full tools/list schema & often tool execution exposed publicly |
| OAuth (2.0 / 2.1) | 3,005 | 34% | Standards-compliant delegated user/agent identity |
| API Key | 486 | 6% | Coarse-grained static secret; hard to rotate or scope per user |
| Unclassified / Custom | 605 | 7% | Non-standard headers, mTLS, or mixed gateway auth |

53% of 8,774 hosted MCP endpoints respond without authentication; Official/Verified servers adopt OAuth more often (44% vs. 34%) yet still leave 37% open.
Leaving tools/list unauthenticated is not harmless “discovery”: tool names, JSON schemas, parameter descriptions, and internal endpoint hints give attackers a complete blueprint for prompt injection and privilege escalation.
2. Official vs. Community Gap: Verified Badges Don’t Fix Reliability
Enterprise teams often whitelist “Official” or “Owner-Verified” MCP servers assuming higher engineering rigor. AllMCPs compared 396 Official/Verified listings (154 official, 244 owner-verified, 2 both) against the remaining 8,547+ community listings — and the result shatters that assumption:
| Metric | Official / Verified (396) |
Community / Rest (8,547+) |
Real Difference |
|---|---|---|---|
Sandbox Start Rate (stdio) |
81% (79/98) |
82% (7,919/9,710) |
Virtually identical |
| Hosted Endpoint Uptime | 95% | 94% | +1% marginal edge |
| OAuth Adoption (hosted) |
44% (99/227) |
34% (2,906/8,547) |
+10 pts better |
| Zero-Auth Endpoints (hosted) |
37% (85/227) |
54% (4,582/8,547) |
17 pts less exposed |
The takeaway is sharp: an Official badge correlates with better OAuth adoption (44% vs. 34%), yet 37% of Official/Verified hosted servers still run without auth — and their stdio packages fail in sandboxes at the exact same ~19% rate as community repos.
3. Why Local Stdio Servers Fail — and How Fast Directories Rot
Running local stdio MCP servers inside CI or agent sandboxes exposes a second operational crisis: fragile packaging and silent protocol hangs.

94% of handshake failures stall after initialize without answering tools/list; 46% of install failures are registry 404s; 16% of September listings were removed and 7% of survivors are stale.
Handshake Failures (1,168 clear failures + 5,228 timeouts)
-
94% (
1,097of1,168) answered the initial JSON-RPCinitializecall and never answeredtools/list. - The remaining 6% exited immediately after
initializebecause they required undocumented backend URLs or hardcoded credentials before even listing capabilities. - Another 5,228 packages timed out before producing a clean pass or fail.
Install Failures (642 clear failures)
-
46% (
293): package not found on npm/PyPI (404— deleted, renamed, or broken README coordinates). -
13% (
86): Python native builds or large binary downloads that failed to finish. -
13% (
81): unsupported OS architecture or Node.js engine mismatch. -
Remaining 28% : network errors (
27), dependency resolution conflicts (25), missing executable binary (23), undeclared Docker dependency (7), and97miscellaneous errors.
The September Cohort Churn (19,316 servers added)
-
16% (
3,107) were removed during curation (mostly spam and duplicate wrappers). - Among the 16,209 surviving servers , 1,144 (7%) are already flagged stale , 178 (1.1%) are offline, and 91 (0.6%) point to archived GitHub repositories.
- Across 2,810 hosted endpoints launched in September, 174 (6%) are already down within two months — while the cohort’s sandbox start rate sits at 83% (
4,355 / 5,216).
4. MCP Authentication & OAuth 2.1 Best Practices (CIMD & Discovery)
To keep your server out of the exposed 53% , follow the MCP OAuth 2.1 architecture rather than bolting on static bearer tokens:

Production MCP hardening gates both tools/list and tools/call behind OAuth 2.1 (RFC 9728 + CIMD), validates Host/Origin headers, and pins dependencies.
-
Gate
tools/list, not justtools/call: ReturnHTTP 401 Unauthorizedwith aWWW-Authenticateheader pointing to/.well-known/oauth-protected-resource(RFC 9728) so unauthenticated scanners cannot enumerate internal tool schemas:
HTTP/1.1 401 UnauthorizedWWW-Authenticate: Bearer resource_metadata="https://mcp.example.com/.well-known/oauth-protected-resource", scope="mcp:read"
- Adopt OAuth 2.1 + PKCE + CIMD: Use Client ID Metadata Documents (CIMD) or dynamic client registration with Keycloak / an OAuth proxy so desktop and CLI agents (Claude Code, VS Code, Codex) authenticate interactively without sharing static API keys.
-
Bind tokens to narrow scopes & short TTLs (stop Confused Deputy): Issue
5–15 minuteaccess tokens with refresh token rotation (mcp:read,jira:write) and verifyaud(audience, RFC 8707) claims on everytools/callso the server never executes actions with its own blanket service credentials. - Hash tool definitions against Tool Poisoning & Rug Pulls: Pin and hash approved tool descriptions/schemas locally so a compromised upstream package cannot silently rewrite tool instructions after installation. Pair your MCP server with the containment controls in our AI Agent Security & Trust Boundaries guide.
5. MCP Server Security Scanners & Pre-Production Checklist
Before shipping any hosted or stdio MCP server, run automated scanners alongside manual protocol probes:
-
Snyk Agent Scan (
mcp-scan): Auditsmcp.json/ IDE configs and repositories for shadow MCP servers, tool poisoning, and vulnerable dependencies. -
Cisco MCP Scanner & Official MCP Inspector: Probes HTTP/SSE endpoints for unauthenticated
tools/listexposure and inspects raw JSON-RPC payloads.
Use this five-point checklist before going live:
- Unauthenticated probe test: Run
curl -X POSTwithtools/listand zero credentials — confirm401(not200with tool schemas). - DNS rebinding &
Hostheader check: On local HTTP/SSE bridges, strictly allowlistHost: 127.0.0.1/localhostand explicitOriginheaders so malicious browser tabs cannot hit local MCP ports. - Clean
tools/listunder missing env vars: Ensurestdioservers fail fast with an explicit JSON-RPC error or return metadata cleanly instead of hanging indefinitely afterinitialize. - Pin exact package versions & hashes: Lock npm/PyPI dependencies (
package-lock.json/uv.lock) and verifybinentrypoints exist in a clean container to eliminate404/ missing-executable failures. - Continuous uptime & staleness monitoring: Track endpoint health and certificate/token expiry automatically — 6% of hosted MCP endpoints go dark within two months.
Bottom Line
The AllMCPs 33K+ dataset proves that MCP security and packaging hygiene lag far behind adoption : more than half (53%) of hosted endpoints leak tools/list without authentication, 94% of stdio handshake failures stall silently after initialize, and even 37% of Official/Verified hosted servers skip auth.
Lock down tools/list with OAuth 2.1 , validate Host/Origin headers, pin every stdio dependency, and test your endpoint the same way live scanners do — before an unauthenticated caller maps your entire tool surface.
Originally published at alekseialeinikov.com

Top comments (0)