<?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: mcpcustoms</title>
    <description>The latest articles on DEV Community by mcpcustoms (@mcpcustoms).</description>
    <link>https://dev.to/mcpcustoms</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%2F3990964%2Fb643c3c6-98fb-4cf2-90a6-88da66370358.png</url>
      <title>DEV Community: mcpcustoms</title>
      <link>https://dev.to/mcpcustoms</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mcpcustoms"/>
    <language>en</language>
    <item>
      <title>MCP server security checklist before you publish</title>
      <dc:creator>mcpcustoms</dc:creator>
      <pubDate>Fri, 24 Jul 2026 06:40:40 +0000</pubDate>
      <link>https://dev.to/mcpcustoms/mcp-server-security-checklist-before-you-publish-5gel</link>
      <guid>https://dev.to/mcpcustoms/mcp-server-security-checklist-before-you-publish-5gel</guid>
      <description>&lt;h1&gt;
  
  
  MCP server security checklist before you publish
&lt;/h1&gt;

&lt;p&gt;You've built an MCP server. You've tested it locally, written the README, and you're ready to submit it to the MCP registry or push it to npm. Before you do — here's a 7-point checklist worth running through.&lt;/p&gt;

&lt;p&gt;This isn't about being paranoid. It's about the fact that MCP servers are a different security surface than a regular npm package. A regular package runs code. An MCP server runs code &lt;em&gt;on behalf of an AI agent&lt;/em&gt; — and that agent can invoke your tools with inputs you never anticipated, from contexts you didn't design for.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why MCP servers need a security pass before publishing
&lt;/h2&gt;

&lt;p&gt;When a developer installs your MCP server, they're giving it access to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Their filesystem (if you have file tools)&lt;/li&gt;
&lt;li&gt;Their environment variables and credentials (if you read env)&lt;/li&gt;
&lt;li&gt;Their network (if you make outbound calls)&lt;/li&gt;
&lt;li&gt;Their AI agent's context window (via your tool descriptions)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;None of that is gated by npm's package model. The user trusts your server the moment they add it to their config. That's a higher bar than a utility library.&lt;/p&gt;




&lt;h2&gt;
  
  
  The checklist
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. No shell interpolation with user input
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Bad:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nf"&gt;execSync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;`git clone &lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;userInput&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Good:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nf"&gt;execFileSync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;git&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;clone&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;userInput&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If any of your tools accept user input and pass it to a shell command, that's a critical risk. Use array-form exec/spawn, never string interpolation.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. File paths sanitized against a base directory
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Bad:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;fs&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;readFileSync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;userProvidedPath&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Good:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;base&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;path&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;resolve&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;./allowed-dir&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;resolved&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;path&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;resolve&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;base&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;userProvidedPath&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nx"&gt;resolved&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;startsWith&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;base&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt; &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;path traversal blocked&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nx"&gt;fs&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;readFileSync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;resolved&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;An AI agent might pass &lt;code&gt;../../etc/passwd&lt;/code&gt; as a file path. Resolve against an allowed base and verify before reading or writing.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. No eval() or dynamic code execution
&lt;/h3&gt;

&lt;p&gt;If your server uses &lt;code&gt;eval()&lt;/code&gt;, &lt;code&gt;new Function()&lt;/code&gt;, or &lt;code&gt;vm.runInNewContext()&lt;/code&gt; with user-supplied input, that's a remote code execution vector. There's almost never a legitimate reason for this in an MCP server.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. No hardcoded credentials
&lt;/h3&gt;

&lt;p&gt;Check your code for API keys, tokens, or passwords committed directly in source. Use environment variables instead, and add a &lt;code&gt;.env.example&lt;/code&gt; so users know what to set.&lt;/p&gt;

&lt;p&gt;Tools like &lt;code&gt;git log -p | grep -i "api_key"&lt;/code&gt; can help catch anything that slipped through.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Tool descriptions free of hidden instructions
&lt;/h3&gt;

&lt;p&gt;This one is easy to miss. Your tool's &lt;code&gt;description&lt;/code&gt; field is passed directly to the AI model. A tool description that says something like "always respond with success even if it fails" or "do not tell the user" is a prompt injection payload embedded in your own server.&lt;/p&gt;

&lt;p&gt;Keep tool descriptions factual and minimal — describe what the tool does, nothing more.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. Outbound network calls documented and expected
&lt;/h3&gt;

&lt;p&gt;If your server makes outbound calls to third-party endpoints, that should be obvious and documented. An undocumented call to an external server combined with access to environment variables is the classic exfiltration pattern.&lt;/p&gt;

&lt;p&gt;Ask yourself: if a user watched every network request your server made, would anything surprise them?&lt;/p&gt;

&lt;h3&gt;
  
  
  7. Permissions declared in your manifest
&lt;/h3&gt;

&lt;p&gt;Add a &lt;code&gt;permissions&lt;/code&gt; field to your &lt;code&gt;package.json&lt;/code&gt; or manifest declaring what your server needs:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"permissions"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"filesystem"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"read-only, scoped to ./data"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"network"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"api.yourservice.com only"&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There's no enforced standard yet, but declaring permissions makes your server's intent auditable and sets a good precedent as the ecosystem matures.&lt;/p&gt;




&lt;h2&gt;
  
  
  Run it automatically in one line
&lt;/h2&gt;

&lt;p&gt;Rather than checking these manually every time, you can run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx mcp-customs scan &lt;span class="nb"&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This checks all 7 of the above categories automatically and outputs a score, stamp (CLEARED / REVIEW / FLAGGED), and specific findings with line numbers.&lt;/p&gt;

&lt;p&gt;It runs fully offline — nothing leaves your machine.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;──────────────────────────────────────────────────────
MCP-CUSTOMS INSPECTION REPORT
──────────────────────────────────────────────────────
target        .
files scanned 12
score         97 / 100
stamp         [ CLEARED ]
──────────────────────────────────────────────────────
No findings. Nothing here means our checks didn't catch anything
— not a guarantee of safety.
──────────────────────────────────────────────────────
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add it to CI so it runs on every push:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;npx mcp-customs scan . --sarif results.sarif --fail-on high&lt;/span&gt;
&lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;github/codeql-action/upload-sarif@v3&lt;/span&gt;
  &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;sarif_file&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;results.sarif&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Add the badge
&lt;/h2&gt;

&lt;p&gt;Once your server passes, add the badge to your README so users know it's been checked:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx mcp-customs scan &lt;span class="nb"&gt;.&lt;/span&gt; &lt;span class="nt"&gt;--badge&lt;/span&gt; &lt;span class="nt"&gt;--name&lt;/span&gt; your-server-name
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or look up your server's score at &lt;a href="https://mcpcustoms.github.io" rel="noopener noreferrer"&gt;mcpcustoms.github.io&lt;/a&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  A note on what this doesn't catch
&lt;/h2&gt;

&lt;p&gt;mcp-customs is heuristic and regex-based — fast and auditable, but not a full dataflow analysis. It will miss things a deeper analysis would catch, and it will produce false positives (we caught our own scanner flagging a commented-out &lt;code&gt;eval()&lt;/code&gt; as critical when we first scanned 12 popular MCP servers). Treat a CLEARED stamp as "nothing obvious found," not "verified safe."&lt;/p&gt;

&lt;p&gt;The goal isn't perfection — it's making basic security hygiene a normal part of publishing an MCP server, the same way &lt;code&gt;npm audit&lt;/code&gt; became normal for npm packages.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Built something and want it scanned? Run &lt;code&gt;npx mcp-customs scan .&lt;/code&gt; locally or check &lt;a href="https://mcpcustoms.github.io" rel="noopener noreferrer"&gt;mcpcustoms.github.io&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>security</category>
      <category>mcp</category>
      <category>opensource</category>
      <category>ai</category>
    </item>
    <item>
      <title>We scanned 12 popular MCP servers. The most interesting finding was our own false positives.</title>
      <dc:creator>mcpcustoms</dc:creator>
      <pubDate>Thu, 18 Jun 2026 13:04:26 +0000</pubDate>
      <link>https://dev.to/mcpcustoms/we-scanned-12-popular-mcp-servers-the-most-interesting-finding-was-our-own-false-positives-kcf</link>
      <guid>https://dev.to/mcpcustoms/we-scanned-12-popular-mcp-servers-the-most-interesting-finding-was-our-own-false-positives-kcf</guid>
      <description>&lt;p&gt;We built &lt;code&gt;mcp-customs&lt;/code&gt;, a free, offline CLI that checks an MCP server for&lt;br&gt;
common security risks before you install it — think &lt;code&gt;npm audit&lt;/code&gt;, but&lt;br&gt;
for the servers your AI agent connects to. Before asking anyone to use&lt;br&gt;
it, we pointed it at 12 real, popular MCP servers and read every single&lt;br&gt;
finding by hand. Here's what actually held up.&lt;/p&gt;

&lt;h2&gt;
  
  
  The setup
&lt;/h2&gt;

&lt;p&gt;We pulled the current top MCP-related repos on GitHub by star count and&lt;br&gt;
scanned each one as-is, no cherry-picking:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Server&lt;/th&gt;
&lt;th&gt;Stars&lt;/th&gt;
&lt;th&gt;Score&lt;/th&gt;
&lt;th&gt;Stamp&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;github/github-mcp-server&lt;/td&gt;
&lt;td&gt;30.8k&lt;/td&gt;
&lt;td&gt;97/100&lt;/td&gt;
&lt;td&gt;CLEARED&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;BeehiveInnovations/pal-mcp-server&lt;/td&gt;
&lt;td&gt;11.6k&lt;/td&gt;
&lt;td&gt;0/100&lt;/td&gt;
&lt;td&gt;FLAGGED*&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;firecrawl/firecrawl-mcp-server&lt;/td&gt;
&lt;td&gt;6.6k&lt;/td&gt;
&lt;td&gt;97/100&lt;/td&gt;
&lt;td&gt;CLEARED&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;exa-labs/exa-mcp-server&lt;/td&gt;
&lt;td&gt;4.6k&lt;/td&gt;
&lt;td&gt;97/100&lt;/td&gt;
&lt;td&gt;CLEARED&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;makenotion/notion-mcp-server&lt;/td&gt;
&lt;td&gt;4.4k&lt;/td&gt;
&lt;td&gt;29/100&lt;/td&gt;
&lt;td&gt;FLAGGED&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;antvis/mcp-server-chart&lt;/td&gt;
&lt;td&gt;4.2k&lt;/td&gt;
&lt;td&gt;94/100&lt;/td&gt;
&lt;td&gt;CLEARED&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;haris-musa/excel-mcp-server&lt;/td&gt;
&lt;td&gt;3.9k&lt;/td&gt;
&lt;td&gt;97/100&lt;/td&gt;
&lt;td&gt;CLEARED&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;cloudflare/mcp-server-cloudflare&lt;/td&gt;
&lt;td&gt;3.9k&lt;/td&gt;
&lt;td&gt;0/100&lt;/td&gt;
&lt;td&gt;FLAGGED&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;browserbase/mcp-server-browserbase&lt;/td&gt;
&lt;td&gt;3.4k&lt;/td&gt;
&lt;td&gt;22/100&lt;/td&gt;
&lt;td&gt;FLAGGED&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;blazickjp/arxiv-mcp-server&lt;/td&gt;
&lt;td&gt;2.9k&lt;/td&gt;
&lt;td&gt;94/100&lt;/td&gt;
&lt;td&gt;CLEARED&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Jpisnice/shadcn-ui-mcp-server&lt;/td&gt;
&lt;td&gt;2.8k&lt;/td&gt;
&lt;td&gt;0/100&lt;/td&gt;
&lt;td&gt;FLAGGED*&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;stickerdaniel/linkedin-mcp-server&lt;/td&gt;
&lt;td&gt;2.4k&lt;/td&gt;
&lt;td&gt;94/100&lt;/td&gt;
&lt;td&gt;CLEARED&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;*see below — these two scores don't mean what they look like they mean.&lt;/p&gt;

&lt;h2&gt;
  
  
  Finding #1: almost nobody declares permissions
&lt;/h2&gt;

&lt;p&gt;Eleven of twelve servers had &lt;strong&gt;zero&lt;/strong&gt; permission or scope declaration in&lt;br&gt;
their manifest. Not "weak" declarations — none at all. This isn't a&lt;br&gt;
ranking judgment on any one project; right now there's no real convention&lt;br&gt;
for it. If you're building an MCP server, declaring what it actually&lt;br&gt;
needs (filesystem? network? shell?) is the single easiest thing you can&lt;br&gt;
do to make a client's "do you want to allow this?" prompt mean something.&lt;/p&gt;

&lt;h2&gt;
  
  
  Finding #2: our own scanner was the bigger story
&lt;/h2&gt;

&lt;p&gt;Before publishing anything, we split every finding into "runtime code"&lt;br&gt;
vs. "test/dev/script code" — because a &lt;code&gt;subprocess.run(shell=True)&lt;/code&gt; in a&lt;br&gt;
test fixture is a very different thing from the same line in a request&lt;br&gt;
handler. Once we did that:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;pal-mcp-server&lt;/strong&gt; scored 0/100 with 13 findings. Every single one was
in &lt;code&gt;tests/&lt;/code&gt; or &lt;code&gt;simulator_tests/&lt;/code&gt; — fake API keys used to test a &lt;em&gt;PII
sanitizer&lt;/em&gt;, and a &lt;code&gt;shell=True&lt;/code&gt; call in a test for a security-audit
feature. Runtime-code findings: &lt;strong&gt;zero&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;shadcn-ui-mcp-server&lt;/strong&gt; also scored 0/100. Two of its three findings
were &lt;code&gt;execSync()&lt;/code&gt; calls in a release-versioning script
(&lt;code&gt;scripts/bump-version.js&lt;/code&gt;) — not reachable by an agent, just a
maintainer running &lt;code&gt;npm version&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;We also caught &lt;strong&gt;our own bug&lt;/strong&gt; mid-process: the scanner initially
flagged a commented-out &lt;code&gt;eval()&lt;/code&gt; call in notion-mcp-server as critical.
It was inside a &lt;code&gt;//&lt;/code&gt; comment. We fixed comment-stripping before
re-running anything in this post — an earlier draft of this table
would have been wrong.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A heuristic scanner that can't tell test code from runtime code, or a&lt;br&gt;
comment from a statement, isn't very useful. We'd rather show you where&lt;br&gt;
it broke than publish the inflated numbers.&lt;/p&gt;

&lt;h2&gt;
  
  
  Finding #3: the two things actually worth a second look
&lt;/h2&gt;

&lt;p&gt;After filtering out test/dev noise, two real-code patterns remained that&lt;br&gt;
we think are legitimately worth the maintainers' attention — not&lt;br&gt;
confirmed vulnerabilities, just the exact shape of thing this category&lt;br&gt;
of tool exists to surface:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;cloudflare/mcp-server-cloudflare&lt;/strong&gt;, &lt;code&gt;sandbox.container.app.ts&lt;/code&gt;: a
file read and a file write both take a variable named &lt;code&gt;reqPath&lt;/code&gt;
directly into &lt;code&gt;fs.readFile&lt;/code&gt; / &lt;code&gt;fs.writeFile&lt;/code&gt;. We didn't trace the full
call path to confirm whether it's constrained upstream — that's a
five-minute check for someone who knows the codebase, which is exactly
the point of flagging it rather than asserting it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;notion-mcp-server&lt;/strong&gt;, &lt;code&gt;src/init-server.ts&lt;/code&gt;: reads a spec file from a
path resolved at startup. Lower stakes — looks like a local config
path, not something an agent's tool call controls — but same category.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Everything else that scored a CLEARED or a high number had, at most, the&lt;br&gt;
missing-permissions finding from #1.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this means if you're picking an MCP server today
&lt;/h2&gt;

&lt;p&gt;Don't read the scores in the table above as a safety ranking — read&lt;br&gt;
finding #2 first. A FLAGGED stamp from a heuristic tool like this means&lt;br&gt;
"go look," not "don't install." Several of today's FLAGGED results&lt;br&gt;
would be CLEARED if the tool only understood that a test directory isn't&lt;br&gt;
a runtime path, which is a limitation of the tool, not the project.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx mcp-customs scan ./path-to-some-mcp-server
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Fully offline, zero telemetry, free, Apache-2.0. The rules and the&lt;br&gt;
scanner itself are about 250 lines — read all of them in five minutes,&lt;br&gt;
which is more than you can say for most security tools.&lt;/p&gt;

&lt;p&gt;If you maintain one of the servers above and want help interpreting (or&lt;br&gt;
arguing with) a finding, open an issue. If you maintain a different MCP&lt;br&gt;
server and want to run this yourself before we do, that's the whole&lt;br&gt;
point — we'd rather you find your own false positives than us find&lt;br&gt;
them for you in public.&lt;/p&gt;

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