<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Nivoryn</title>
    <description>The latest articles on DEV Community by Nivoryn (@get_nivoryn_6cd152fa87502).</description>
    <link>https://dev.to/get_nivoryn_6cd152fa87502</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4277146%2F473b90c5-be26-4e03-b57c-1018ca6a9ec4.png</url>
      <title>DEV Community: Nivoryn</title>
      <link>https://dev.to/get_nivoryn_6cd152fa87502</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/get_nivoryn_6cd152fa87502"/>
    <language>en</language>
    <item>
      <title>scanned 459 public MCP server configs on GitHub. 1 in 25 leaks a real API key</title>
      <dc:creator>Nivoryn</dc:creator>
      <pubDate>Tue, 01 Dec 2026 21:37:34 +0000</pubDate>
      <link>https://dev.to/get_nivoryn_6cd152fa87502/scanned-459-public-mcp-server-configs-on-github-1-in-25-leaks-a-real-api-key-1ig8</link>
      <guid>https://dev.to/get_nivoryn_6cd152fa87502/scanned-459-public-mcp-server-configs-on-github-1-in-25-leaks-a-real-api-key-1ig8</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8hnfjogifv9212gogmw4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8hnfjogifv9212gogmw4.png" alt=" " width="800" height="1000"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A few weeks ago I scanned 918 public n8n workflows and found that 1 in 3 AI agent templates could&lt;br&gt;
send emails, write to databases, or spend money with zero human approval in the loop. People&lt;br&gt;
argued with me about that one in the comments, which was great, that's the point. So I went&lt;br&gt;
looking for the next file nobody thinks about as "sensitive."&lt;/p&gt;

&lt;p&gt;Turned out it was sitting on my own laptop the whole time.&lt;/p&gt;

&lt;p&gt;If you use Claude Desktop, Claude Code, Cursor, or basically anything that speaks MCP, there's a&lt;br&gt;
file on your machine right now that lists every server your AI assistant is allowed to talk to,&lt;br&gt;
and what those servers can do once connected. Most people treat it like a &lt;code&gt;.bashrc&lt;/code&gt;. Nobody&lt;br&gt;
thinks twice about it. I didn't either, until I started wondering what mine actually said, and&lt;br&gt;
then wondered how many other people's say the same thing.&lt;/p&gt;

&lt;p&gt;So I scanned 459 of them, public ones on GitHub. Here's what I found.&lt;/p&gt;

&lt;p&gt;How I actually did this&lt;/p&gt;

&lt;p&gt;I searched GitHub for the exact filenames real MCP clients write: &lt;code&gt;claude_desktop_config.json&lt;/code&gt;&lt;br&gt;
for Claude Desktop, &lt;code&gt;.mcp.json&lt;/code&gt; and &lt;code&gt;mcp.json&lt;/code&gt; for Claude Code and most other clients, each&lt;br&gt;
required to contain the literal string &lt;code&gt;"mcpServers"&lt;/code&gt; so I wasn't scooping up random JSON files&lt;br&gt;
that happened to share a name. Ran it 1 December 2026. I threw out anything that was obviously a&lt;br&gt;
template, example, backup, or disabled (&lt;code&gt;.mcp.json.bak&lt;/code&gt;, &lt;code&gt;claude_desktop_config.json.template&lt;/code&gt;,&lt;br&gt;
that sort of thing) because those aren't real configs, they're documentation.&lt;/p&gt;

&lt;p&gt;465 files came back. 459 parsed as valid JSON with a real MCP shape. The other 6 either broke on&lt;br&gt;
parse or turned out to be something else entirely, so I left them out rather than force them into&lt;br&gt;
the count.&lt;/p&gt;

&lt;p&gt;I only ever read these files. Nothing gets executed, no server gets started, no credential gets&lt;br&gt;
tested to see if it still works. And like the n8n study, I'm not naming a single repo or person.&lt;br&gt;
The pattern is the story here, not whoever happened to commit one of these without thinking about&lt;br&gt;
it twice, because honestly, that could've been me.&lt;/p&gt;

&lt;p&gt;One real caveat before the numbers: this is a sample of public GitHub repos, not a sample of&lt;br&gt;
how people actually use MCP day to day. The people who push a personal config to a public repo&lt;br&gt;
(often by accident, often a dotfiles repo) are a specific slice, not everyone. Think of these&lt;br&gt;
numbers as a floor, not an estimate of the whole ecosystem.&lt;/p&gt;

&lt;p&gt;The numbers&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Finding&lt;/th&gt;
&lt;th&gt;Files&lt;/th&gt;
&lt;th&gt;% of 459&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;At least one issue&lt;/td&gt;
&lt;td&gt;175&lt;/td&gt;
&lt;td&gt;38.1%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CRITICAL or HIGH severity&lt;/td&gt;
&lt;td&gt;31&lt;/td&gt;
&lt;td&gt;6.8%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;A literal credential typed into the file&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;19&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;4.1%&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Runs at least one unpinned package (&lt;code&gt;npx -y&lt;/code&gt;, &lt;code&gt;@latest&lt;/code&gt;, &lt;code&gt;uvx&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;120&lt;/td&gt;
&lt;td&gt;26.1%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A remote server whose authorization needs a manual look&lt;/td&gt;
&lt;td&gt;42&lt;/td&gt;
&lt;td&gt;9.2%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Unrestricted shell command execution&lt;/td&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;1.3%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A credential file/path handed straight to a server (a mounted &lt;code&gt;.kube&lt;/code&gt; or &lt;code&gt;.aws&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;7&lt;/td&gt;
&lt;td&gt;1.5%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;1 in 25 has a real key sitting in plain text, right now&lt;/p&gt;

&lt;p&gt;Not a placeholder. Not &lt;code&gt;YOUR_API_KEY_HERE&lt;/code&gt;. A real Slack token. A real GitHub personal access&lt;br&gt;
token. A Supabase service key. An Azure client secret. A Splunk token. Nineteen separate files,&lt;br&gt;
each one just... sitting there, in a config most people would swear only lives on their own&lt;br&gt;
machine.&lt;/p&gt;

&lt;p&gt;Every single match went through the exact same secret-detection check from the n8n study, the one&lt;br&gt;
that already throws out documentation placeholders and obvious example values before it counts&lt;br&gt;
anything as real. I didn't test whether any of these keys still work. I don't want to know, and&lt;br&gt;
it's not the point anyway. The point is simpler and worse: a file you think of as "my local&lt;br&gt;
settings" is, for 1 in 25 people who happen to push it public, an actual leaked credential, sitting&lt;br&gt;
in the open, indexed by GitHub's own search.&lt;/p&gt;

&lt;p&gt;1 in 4 is running whatever got published this morning&lt;/p&gt;

&lt;p&gt;The second thing jumped out almost as much. Roughly a quarter of these configs start a server with&lt;br&gt;
&lt;code&gt;npx -y @some/package&lt;/code&gt; or &lt;code&gt;uvx some-mcp-server&lt;/code&gt;, no version pinned anywhere. Which means every&lt;br&gt;
single time that assistant starts up, it quietly pulls and runs whatever the package author most&lt;br&gt;
recently pushed. Not what you tested. Not what you reviewed. Whatever's live right now.&lt;/p&gt;

&lt;p&gt;That's a supply chain hole dressed up as a convenience flag. If that package ever gets compromised,&lt;br&gt;
it starts running with whatever access the MCP server already has, the next time anyone on that&lt;br&gt;
config opens their assistant. No warning, no changelog you'd see, nothing.&lt;/p&gt;

&lt;p&gt;What this scan can't tell you&lt;/p&gt;

&lt;p&gt;I'd rather say this plainly than let the numbers above feel bigger than they are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It reads the config file. It never starts a server, calls a tool, or checks whether a credential
still works.&lt;/li&gt;
&lt;li&gt;"Needs a manual look" means exactly that, a human has to judge it, not that it's wrong.&lt;/li&gt;
&lt;li&gt;A clean result isn't proof of safety. OAuth scopes, what a remote server actually does once
it's connected, anything happening outside that one config file, none of that is visible to a
static check.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If any of this sounds like your config&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Never type a key straight into the file.&lt;/strong&gt; Use the server's own &lt;code&gt;env&lt;/code&gt; block to reference a
variable instead (&lt;code&gt;"${GITHUB_TOKEN}"&lt;/code&gt;), set the real value in your shell profile or a secrets
manager, and the file itself stays safe to commit or accidentally share.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pin your packages.&lt;/strong&gt; &lt;code&gt;npx -y @modelcontextprotocol/server-filesystem@1.0.2&lt;/code&gt;, not &lt;code&gt;@latest&lt;/code&gt;,
not a bare unpinned &lt;code&gt;npx -y&lt;/code&gt;. Update because you chose to, not because the file didn't stop you.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;If you've ever committed a real key, it's burned, full stop.&lt;/strong&gt; Rotate it at the provider
first. Deleting it in a later commit doesn't erase it from git history, and it definitely
doesn't erase it from anyone who already cloned the repo.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Go check your own&lt;/p&gt;

&lt;p&gt;I built a free scanner to run exactly this check, and it just went properly open source this&lt;br&gt;
week, Apache-2.0, every rule readable:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;In your browser, nothing uploaded anywhere: &lt;strong&gt;&lt;a href="https://getnivoryn.com/check" rel="noopener noreferrer"&gt;getnivoryn.com/check&lt;/a&gt;&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;From your terminal: &lt;code&gt;npx nivoryn scan&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;The actual source: &lt;strong&gt;&lt;a href="https://github.com/adamchemlelao-ai/nivoryn-scanner" rel="noopener noreferrer"&gt;github.com/adamchemlelao-ai/nivoryn-scanner&lt;/a&gt;&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Full methodology, the raw numbers, all of it, is at&lt;br&gt;
&lt;a href="https://getnivoryn.com/research/mcp-configs" rel="noopener noreferrer"&gt;getnivoryn.com/research/mcp-configs&lt;/a&gt;. If you scan&lt;br&gt;
your own config and find something, I'd genuinely like to hear about it in the comments, no names&lt;br&gt;
needed.&lt;/p&gt;

&lt;p&gt;Update : Never type a key straight into the file. Use the server's own env block to reference a variable instead ("${GITHUB_TOKEN}"). Pull that variable from a secrets manager or your OS keychain at shell-init time (1Password's op run, for example) rather than just setting it in your shell profile — a shell-profile var still leaves the real secret sitting in plaintext, just one file over. (Thanks to a reader, Junfeng Zhou, for pushing on this one.)&lt;/p&gt;

</description>
      <category>ai</category>
      <category>security</category>
      <category>opensource</category>
      <category>mcp</category>
    </item>
  </channel>
</rss>
