MCP Servers & Security

The MCP Security Checklist: Audit Any Server Before You Connect It to Your Agent

29 October 2026 · Updated 28 November 2026 · 13 min read · by Yang Kai

A practical 12-point MCP security checklist for indie builders: audit source, permissions, tokens, and egress before any server touches your agent.

Checklist inside: 12-Point MCP Server Audit Checklist

Contents
  1. Why MCP Servers Need a Different Audit
  2. The 12-Point MCP Server Audit Checklist
  3. A 20-Minute Audit Workflow
  4. One Audit, Worked End to End
  5. Red Flags to Walk Away From
  6. Run the Checklist as a Recurring Audit, Not a One-Off
  7. How We Researched This
  8. The Verdict

One config line is all it takes. Paste it, restart your agent, and a program written by a stranger can read your files, query your database, and call the internet on your behalf — with your tokens.

That trade is often worth it. MCP servers save real time. But the install moment is the one moment you hold all the power in the relationship, and most builders spend it copy-pasting.

This checklist is the audit to run in that moment: 12 points covering source, permissions, token storage, network egress, and removal, with what a pass looks like at each step. It takes 15 to 25 minutes per server.

It is built from the MCP project’s own security guidance, published incident write-ups from security firms, and the audit routine used on this site’s own setup. No server gets skipped because its listing looked popular.

The short version: if a server fails on source identity (check 1), permissions (3), token storage (4), or network egress (6), stop. Do not install it and negotiate with yourself later. The other eight checks can be tightened over the first week; those four cannot.

Why MCP Servers Need a Different Audit

A normal package runs when your code calls it. An MCP server sits in a privileged loop: your model chooses when to call its tools, with arguments the model itself generated. Prompt injection from a webpage or tool result can turn into a real action — reading a file you never mentioned, or sending data somewhere you never approved.

Treat every server like a contractor you are giving a key to. Check who they are, what rooms they need, and whether you can take the key back.

This is not a theoretical risk, and it is not limited to obscure packages. In December 2025, Anthropic shipped fixes for three vulnerabilities in mcp-server-git, its own reference Git server, after the security firm Cyata showed the flaws could be triggered through prompt injection and chained with a filesystem server to reach arbitrary files (covered in Infosecurity Magazine’s report). If the reference implementation needed that fix, the long tail of the registry deserves your 20 minutes.

Scale is the other half of the problem. A full census of the official MCP Registry’s public API counted 47,267 active server names on 21 October 2026, and an independent count a few weeks later passed 59,000. Nobody reviews most of those entries. Your audit is the review.

If you are still choosing servers, start with the MCP servers worth installing for a by-job short list, then run every pick through this audit.

The 12-Point MCP Server Audit Checklist

Work top to bottom. A fail on items 1, 3, 4, or 6 is a stop, not a warning.

# Check What to verify Pass looks like
1 Source identity Who publishes it? Is the repo linked from the official listing or vendor docs? Named maintainer, public repo, recent commits
2 Listing cross-check Compare the registry entry, repo README, and package name — do they match exactly? Same name, same repo, same description everywhere
3 Permissions requested List every filesystem path, database, and API the server can touch Access is narrow and matches the job
4 Token storage Where do API keys live? Plain config file, environment variable, or OS keychain? Secrets in env vars or a secret manager, never committed
5 Token scope Are the tokens you give it scoped and revocable? Read-only or single-project token, not your root key
6 Network egress Which hosts can the server call out to? Log or inspect outbound calls Only the vendor API it needs, nothing unexplained
7 Version pinning Is the version pinned in your config, or does it auto-pull latest? Exact version pinned, upgrades are deliberate
8 Tool surface How many tools does it expose? Disable the ones you will never use Minimal tool set enabled for your workflow
9 Write and delete actions Can any tool write, delete, or send on your behalf? Writes are explicit, deletes are off by default
10 Sandboxing Can you run it in a container, separate user, or restricted folder? Runs isolated from your home directory and SSH keys
11 Logging Can you see what the server did after the fact? Timestamped tool-call log you can review
12 Removal plan If you uninstall it today, what remains — tokens, files, webhooks? You can revoke the token and remove config in under 5 minutes

Checks 1–2: Source and Listing

A listing proves almost nothing. The registry is a metadata catalogue that authors publish to themselves; it is not an app store with a review team. Click through to the repository. No repo, no install.

Then cross-check the three places the server describes itself: the registry entry (see the MCP registry guide for how listings work), the repo README, and the package page on npm or PyPI. The names, the maintainer, and the stated tool list should match exactly. A mismatch is how typosquatted packages get installed — the copy borrows the real server’s description and changes only the install command.

Checks 3–5: Permissions and Tokens

Map permissions before you grant them. A filesystem server scoped to ~/workspace/meetblogging is reasonable; scoped to / it is not. A database server with a read-only user is reasonable; with your production admin login it is not.

For tokens, the rule is simple: never give a server a credential you cannot revoke in one click. Create a dedicated, single-project token and store it in an environment variable — not inline in a config file you might screenshot or commit. MCP auth explained covers token storage, scoping, and revocation in the depth a checklist cannot.

Ask one more question while you are here: does the server log its own environment on startup? A few do, for debugging. If yours does, every secret in that environment is one log upload away from leaving your machine.

Checks 6–7: Network Egress and Version Pinning

Egress is where quiet problems hide. If a docs-fetch server is also calling an unknown analytics host, ask why. You do not need packet-level forensics: check the README’s stated endpoints, skim open issues for surprises, and, for anything sensitive, run it first against dummy data while watching its logs.

Pinning is the other boring control that saves you. Pin an exact version so an upstream change cannot silently alter tool behaviour mid-launch. This matters more than it used to: many recorded MCP vulnerabilities now have fixes, and running an unpinned or stale version means volunteering for a known problem. Upgrade on purpose, read the changelog, re-run items 8 and 9, then bump the pin. The hosting side of this discipline is in MCP in production.

Checks 8–10: Tool Surface, Writes, and Sandboxing

Count the tools. A server that exposes forty tools when your workflow needs four is carrying thirty-six tools’ worth of attack surface and prompt-injection bait. Disable what you will never call, if the client allows it.

Then find the write and delete actions. Reads are recoverable mistakes; writes, deletes, sends, and payments are not. Those tools should be explicit, and deletes should be off by default.

You do not need a perfect sandbox. You need a useful one:

The goal is narrow: make sure a buggy or compromised tool cannot wander further than the job you gave it. When you are setting servers up inside a coding agent, the Claude Code and MCP setup walkthrough shows where these choices land in a real config.

Checks 11–12: Logging and the Removal Plan

If you cannot see what a server did after the fact, you are trusting its silence. Prefer servers and clients that keep a timestamped log of tool calls, and know where that log lives before you need it.

Removal is the check everyone skips. Before installing, write down what the server will leave behind: a token at the vendor, a config block, maybe a webhook or a scheduled job. If you cannot describe how to remove it in under five minutes, you do not yet understand what you are installing.

A 20-Minute Audit Workflow

Here is the sequence, timed:

  1. Minutes 0–5: Verify source and listing, read the tool list, note every permission claimed.
  2. Minutes 5–10: Create a scoped, revocable token. Add the server with a pinned version and the narrowest path or project scope.
  3. Minutes 10–15: Run three harmless test calls. Check the logs. Confirm only expected hosts and files were touched.
  4. Minutes 15–20: Write down the removal steps in the same note as the checklist results.

One Audit, Worked End to End

Abstract checklists get skipped; concrete ones get run. Here is the workflow applied to a typical find: a community-built server that offers filesystem access plus a hosted notes API, the kind of thing you would add to a coding agent in one sitting.

Minutes 0–5. The registry entry links to a public repo with a named maintainer and commits from last week — check 1 passes. The README’s tool list matches the registry description and the npm package page — check 2 passes. The tool list shows eleven tools, four of which write or delete. Noted for check 9.

Minutes 5–10. The config example in the README pastes the API token inline into the JSON file. That is a check 4 fail as documented — so instead of copying it, you create a dedicated token in the notes service, scoped to a single notebook and read-only, and pass it through an environment variable. The example was sloppy; the server itself accepts the safer setup. The filesystem scope in the example is your home directory. You change it to the one project folder the workflow touches — check 3 passes on your terms, not the author’s.

Minutes 10–15. Three test calls: list the folder, read one file, fetch one note. The log shows calls to exactly one external host, the notes API — check 6 passes. You pin the installed version in the config rather than accepting the latest tag the example used — check 7 passes.

Minutes 15–20. You disable the four write tools you do not need yet (check 9), note that the server runs as your user but can only reach the scoped folder (check 10, partial pass, acceptable for a read-only workflow), and write the removal steps in the audit note: revoke the notebook token, delete the config block, done in under five minutes — check 12 passes.

Verdict: install, with two of the author’s defaults overridden and one partial pass recorded for the quarterly re-audit. That is what a pass actually looks like. It is rarely twelve clean ticks; it is twelve answered questions, with the four stop-checks answered well.

If a server fails, look for a first-party alternative — vendors maintaining their own server usually have the clearest permission model. Best MCP servers by job is organised around that preference. The reverse test from Build Your First MCP Server applies too: if you would not ship it that way, do not install it that way.

Red Flags to Walk Away From

None of these proves malice. Each proves the blast radius is larger than the benefit for a solo builder who cleans up alone.

Run the Checklist as a Recurring Audit, Not a One-Off

A server that passed in March is a different server in September: it has updated twice, gained a tool, and been granted a broader token during some late-night debugging session. Treat the checklist as a recurring audit — quarterly for servers that touch production data, on every major version bump for the rest.

Three habits make the recurring version cheap:

The solo builder’s advantage is that the whole estate is small enough to audit on a calendar reminder. The enterprise version of this problem requires a department. Yours requires an afternoon, four times a year — schedule it before an incident schedules it for you.

How We Researched This

This checklist is desk research, not a lab audit. The registry figures come from full censuses of the official MCP Registry’s public API, cited with their count dates above. The incident example is Cyata’s published research into mcp-server-git, fixed by Anthropic in December 2025 — the record is on the National Vulnerability Database entry for CVE-2025-68143. The checklist itself reflects the MCP security guidance and the audit routine used for this site’s own agent setup; it has not been tested against your stack, which is exactly why it is written as questions rather than guarantees. For the wider picture behind these checks, see what the MCP CVE numbers actually mean.

FAQ

How long does a proper MCP security audit take? About 15 to 25 minutes for a typical server once you have done two or three: read the repo, check the permissions, find the token handling, skim the issues. That half-hour is the cheapest insurance in your whole agent setup.

What is the single biggest red flag? A server that asks for broad access its job does not need — full-disk reads for a notes tool, shell access for a formatter. Scope mismatch is the tell that either the author was careless or the intent is worse.

Should I audit servers from big-name publishers too? Yes, briefly. The mcp-server-git fixes happened to Anthropic’s own reference server, so reputation does not change what a server can do once it is connected to your machine with your tokens. The checklist is the same; the depth is what varies.

Is there a printable version of the checklist? The table above is the checklist. Copy it into your own notes app or print the page — a copy you keep next to your audit notes, with your own pass and fail marks, is more useful than a clean PDF.

The Verdict

Install the server, but earn the install first. Run the 12 points, write down the removal plan, and pin the version. If you do only one thing today, pick the riskiest server already in your config — the one with the broadest folder access or the oldest token — and audit that one. Then work through the MCP servers worth installing and run the same gate on anything you add next.

Category: MCP Servers & Security · Tags: #mcp #security #checklist #ai-agents #mcp-security

Next step: this article is part of MCP guides, which covers the full topic from first setup to advanced use.

Related guides