Three in ten public MCP configurations run code nobody pinned

We ran mcp-audit over 17,079 MCP configuration files that developers have committed to public GitHub repositories. About 29% start at least one server from a package with no fixed version, and about one in twenty carries something that looks like a credential.

What we measured

An MCP configuration file tells an AI client such as Claude Code, Cursor, VS Code or Claude Desktop which servers to start and how. Each server runs with the user's permissions, and the agent reads whatever it returns.

On 25 November 2026 we searched GitHub for four kinds of these files, downloaded 20,059 and applied thestatic rules of mcp-audit, our open-source auditor. We removed 2,631 exact duplicates, 187 files that did not parse and 161 that defined no server. The 17,079 files that remain define 47,852 servers.

Results

Files withShare of sampleEstimate (95% interval)
At least one package with no fixed version44.0%28.9% (27.8 to 30.1)
At least one high-severity finding15.4%7.3% (6.8 to 7.8)
At least one credential match, before filtering11.7%5.4% (5.0 to 5.8)
Code from a git branch or URL with no commit hash3.0%1.5% (1.3 to 1.7)
A remote server over an unencrypted connection0.6%0.4% (0.3 to 0.6)

The two columns differ because of how the sample was drawn. GitHub's code search returns at most 1,000 results per query, so we split each kind of file into nine size ranges. Small files are the majority and have fewer problems, and this method under-samples them. The estimate weights every range by the total GitHub reports for it. Those totals are approximate, so the interval understates the real uncertainty. When the columns disagree, use the estimate.

Packages with no fixed version

The usual entry (rule MCP-PIN-001) looks like npx -y some-server. With no version, the client downloads whatever the registry serves every time it starts. If a release is compromised or a package name is taken over, every machine with that line runs the new code at its next launch, with the user's files and keys within reach.

Counted by server instead of by file, 41.2% of the 47,852 servers in the sample start this way. That figure is not weighted. These are the packages most often left without a version, three of them under the protocol's own @modelcontextprotocol scope:

PackageUnpinned uses
@modelcontextprotocol/server-filesystem990
@modelcontextprotocol/server-github724
@upstash/context7-mcp689
@modelcontextprotocol/server-sequential-thinking652
mcp-remote625

The rate changes with the client the file belongs to. These are weighted estimates:

FileFiles analysedUnpinned packageCredential match
.mcp.json5,95925.8%4.1%
.cursor/mcp.json3,42838.7%13.2%
.vscode/mcp.json4,73441.4%6.1%
claude_desktop_config.json2,95826.6%14.0%

Credentials

The credential rule (MCP-SEC-001) matched 3,395 values in 1,995 files. That count overstates the problem, so we sorted every match by its shape, without reading the values. 324 are database URLs that point at localhost or a container name. 629 look like filler text. 1,041 are short or plain values we cannot judge. 23 are Supabase anon keys, which are public by design, and 29 have a vendor's format but look like documentation examples.

That leaves 978 files, 5.7% of the sample, with at least one value that looks real. Among them are 220 matches in a known vendor format (OpenAI, GitHub, Google, Anthropic, Slack, Stripe and AWS), 47 passwords to remote databases, 19 Supabase service_role keys and 917 long mixed tokens under a name such as API_KEY.

We did not test any of them, so we cannot say how many still work. We kept no list of them and this page names no repository.

Limits

The sample holds only files committed to public repositories. People who publish a configuration may write it differently from people who keep it private, and a private file never reaches a stranger the way these do.

We searched four kinds of file. Codex, Gemini CLI and Windsurf configurations are not in the sample. The rules are static: they read what a file configures and say nothing about what a server does once it runs. The figures describe one day, 25 November 2026.

Check your own files

The same rules run on your machine with one command. It makes no network request and shows credentials masked.

npx -y @asterionsec/mcp-audit@0.1.1

The mcp-audit page explains every rule and how to run it in CI, and the source is on GitHub. For what configuration cannot show, such as what an agent does with the tools it is given, we run penetration tests of AI agents; the checklist lists what we test.