---
title: "MCP Server Security Best Practices: 53% of 8,774 Remote Servers Have Zero Auth"
description: "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."
author: Aleksei Aleinikov
date: 2026-12-02
lang: en
tags: [mcp-server-security, mcp, ai-agent-security, llm-security, authentication, oauth, cloud-security]
canonical: https://www.alekseialeinikov.com/en/blog/topics/security/mcp-server-security-best-practices-oauth-2026
source: alekseialeinikov.com
---

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

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](https://allmcps.com/)** — 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](https://allmcps.com/trust), [State of MCP](https://allmcps.com/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](https://www.alekseialeinikov.com/en/blog/topics/ai/mcp-servers-explained-build-and-run-safely-2026), 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:

| 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.](https://media.alekseialeinikov.com/security/f4b92c81a03e/auth-exposure-breakdown-1200.caf356fa44bb8d0d.webp "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.**

![Chart breaking down 1,168 MCP handshake failures, 642 install failures, and September 2026 cohort churn across 19,316 servers from AllMCPs telemetry.](https://media.alekseialeinikov.com/security/f4b92c81a03e/sandbox-failures-churn-1200.daee0792b0369e0d.webp "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.](https://media.alekseialeinikov.com/security/f4b92c81a03e/oauth-hardening-flow-1200.50f3a736e800ef91.webp "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
HTTP/1.1 401 Unauthorized
WWW-Authenticate: Bearer resource_metadata="https://mcp.example.com/.well-known/oauth-protected-resource", scope="mcp:read"
```

2. **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.
3. **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.
4. **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](https://www.alekseialeinikov.com/en/blog/topics/security/ai-agent-security-trust-boundaries).

## 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.
