Security
SecurityIntermediate

MCP Server Security Best Practices: 53% of 8,774 Remote Servers Have Zero Auth

Exclusive 33,294-server AllMCPs dataset (Nov 30, 2026): 53% of hosted MCP servers expose tools/list without auth, 94% of handshake failures stall after initialize, and Official badges don’t improve sandbox reliability. Includes OAuth 2.1 hardening & testing checklist.

Cover image: MCP Server Security Best Practices: 53% of 8,774 Remote Servers Have Zero Auth
Contents

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.

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/list payload to a completely unauthenticated request.

The authentication breakdown across hosted MCP servers shows why unauthenticated exposure is still the default:

1. State of MCP Server Security: 53% of 8,774 Remote Servers Need Zero Auth
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
Chart showing authentication breakdown across 8,774 hosted MCP servers and Official vs. Community security gaps from AllMCPs Nov 30, 2026 data.
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:

2. Official vs. Community Gap: Verified Badges Don’t Fix Reliability
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.

Chart breaking down 1,168 MCP handshake failures, 642 install failures, and September 2026 cohort churn across 19,316 servers from AllMCPs telemetry.
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,097 of 1,168) answered the initial JSON-RPC initialize call and never answered tools/list.
  • The remaining 6% exited immediately after initialize because 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), and 97 miscellaneous 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:

Architecture diagram of production MCP server hardening: OAuth 2.1 discovery via RFC 9728, CIMD client metadata, scoped short-lived tokens, Host header DNS-rebinding protection, and locked stdio packages.
Production MCP hardening gates both tools/list and tools/call behind OAuth 2.1 (RFC 9728 + CIMD), validates Host/Origin headers, and pins dependencies.
  1. Gate tools/list, not just tools/call: Return HTTP 401 Unauthorized with a WWW-Authenticate header pointing to /.well-known/oauth-protected-resource (RFC 9728) so unauthenticated scanners cannot enumerate internal tool schemas:
HTTP/1.1 401 Unauthorized
WWW-Authenticate: Bearer resource_metadata="https://mcp.example.com/.well-known/oauth-protected-resource", scope="mcp:read"
  1. 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.
  2. Bind tokens to narrow scopes & short TTLs (stop Confused Deputy): Issue 5–15 minute access tokens with refresh token rotation (mcp:read, jira:write) and verify aud (audience, RFC 8707) claims on every tools/call so the server never executes actions with its own blanket service credentials.
  3. 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): Audits mcp.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/list exposure and inspects raw JSON-RPC payloads.

Use this five-point checklist before going live:

  • Unauthenticated probe test: Run curl -X POST with tools/list and zero credentials — confirm 401 (not 200 with tool schemas).
  • DNS rebinding & Host header check: On local HTTP/SSE bridges, strictly allowlist Host: 127.0.0.1 / localhost and explicit Origin headers so malicious browser tabs cannot hit local MCP ports.
  • Clean tools/list under missing env vars: Ensure stdio servers fail fast with an explicit JSON-RPC error or return metadata cleanly instead of hanging indefinitely after initialize.
  • Pin exact package versions & hashes: Lock npm/PyPI dependencies (package-lock.json / uv.lock) and verify bin entrypoints exist in a clean container to eliminate 404 / 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.

Frequently asked questions

Are MCP servers a security risk in production?

Yes, when deployed with default settings. AllMCPs live-handshake telemetry across 8,774 hosted MCP servers shows that 53% (4,664) respond to unauthenticated tools/list requests, leaking tool schemas and often exposing unauthenticated execution paths.

What are the most important MCP authentication best practices?

Implement OAuth 2.1 with Protected Resource Metadata (/.well-known/oauth-protected-resource), short-lived scoped access tokens with refresh rotation, and Client ID Metadata Documents (CIMD) or Keycloak/OAuth proxy integration instead of static long-lived API keys or unauthenticated endpoints.

Do Official or Verified MCP servers guarantee better reliability and security?

Only partially on security, and not at all on reliability. In the AllMCPs dataset (396 Official/Verified vs. 8,547+ community servers), sandbox start rates are virtually identical (81% vs. 82%) and hosted uptime is 95% vs. 94%. However, Official/Verified servers adopt OAuth at 44% vs. 34% and leave fewer endpoints open without auth (37% vs. 54%).

Why do local stdio MCP servers fail so often in sandboxes?

Two main causes dominate: 94% of the 1,168 handshake failures answer initialize but hang before tools/list (often waiting for missing credentials or backend URLs), while 46% of the 642 install failures are 404 package-not-found errors in npm or PyPI.

How should I test an MCP server before deploying to production?

Verify that unauthenticated tools/list requests return HTTP 401 with a WWW-Authenticate resource metadata pointer, test Host/Origin header validation against DNS rebinding, pin exact package versions in lockfiles, and run negative scope tests for every high-privilege tool.

From the community

Discussion on Mastodon & Bluesky

Replies to this article from the open web, pulled in live. No ads, no tracking scripts.

Loading replies …
Reply on MastodonReply on Bluesky

Reply there — it shows up here automatically.

ENDE