mcp-audit
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-auditscan https://example.com/mcp"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-audit
npm audit for MCP servers. Point it at an MCP server and get a security grade (A–F) covering missing auth, SSRF surface, high-privilege tools, prompt-injection-prone tool descriptions, and leaked secrets.
Why this exists (2026 data): of ~7,000 public MCP servers, 41% require no auth, 36.7% expose an
SSRF surface, only 8.5% use OAuth, and 30+ CVEs were filed in a single 60-day window. Server
count is saturated (22k+ servers); security posture is not. Other tools (e.g. Invariant's
mcp-scan) inspect a single server deeply — mcpaudit adds registry-wide batch auditing: point
it at the official MCP Registry and grade the whole ecosystem at once.
npm i -g @andreolf/mcpaudit # then: mcpaudit <url>
# or zero-install: npx @andreolf/mcpaudit <url>Is it safe to run? Yes by design: mcpaudit sends only a read-only initialize + tools/list
handshake and inspects the declared tools. It never executes a scanned server's code unless
you explicitly pass --allow-exec to spawn a local/npm server.
⚠️ Heuristic scanner. Findings describe surface (e.g. "no auth", "exposes a URL-fetching tool"), not proven exploits — a clean report is not a security guarantee. Scan only servers you're authorized to test, and disclose findings responsibly. See SECURITY.md.
Usage
Scan a remote server (Streamable HTTP):
node bin/mcp-audit.js https://example.com/mcp
node bin/mcp-audit.js https://example.com/mcp --header "Authorization: Bearer $TOKEN" --jsonScan a published server (spawned via npx -y <package>):
node bin/mcp-audit.js --npm @modelcontextprotocol/server-filesystem --timeout 20000Scan a local server started by a command (stdio):
node bin/mcp-audit.js --cmd "node my-server.js"Requires Node 18+ (uses global fetch). Zero dependencies. Install: npm i -g @andreolf/mcpaudit then mcpaudit <url> — or npx @andreolf/mcpaudit <url>.
Exit codes: 0 clean · 1 critical/high finding · 2 couldn't scan / bad usage. CI-friendly.
Related MCP server: mcp-security-audit
Batch mode (the launch audit)
Scan many servers and get a worst-first leaderboard + the aggregate stats for a launch post:
node bin/mcp-audit-batch.js targets.txt --out audit.mdtargets.txt is one target per line (https://…, npm:<package>, or cmd:<command>; # comments allowed).
⚠️ Safety: scanning an
npm:/cmd:server runs that server's code on your machine. Batch mode is HTTP-only by default and SKIPS local/npm targets unless you pass--allow-exec— do that only inside a sandbox/container you trust. Mass-running untrusted packages is remote-code-execution exposure.
Output includes the headline numbers ("X% of reachable HTTP servers accept initialize with no auth") that become the launch thread.
The full launch pipeline
Pull targets from the official MCP Registry (discovery only — never executes a server), then audit them:
node bin/mcp-audit-fetch.js --max 300 --out targets.txt # HTTP remotes = safe to scan
node bin/mcp-audit-batch.js targets.txt --concurrency 8 --out audit.mdmcpaudit-fetch emits registry HTTP endpoints as scannable lines and npm packages as commented
lines (opt in with --include-npm, then --allow-exec in a sandbox). A real run of the first 30
registry servers found 50% accept initialize with no auth — the kind of number the launch
post is built on.
Use in CI (GitHub Action)
Gate your MCP server's security on every PR. Start your server, then point the action at it:
- name: Start my MCP server
run: node my-server.js & # or docker run ..., then wait for it to be ready
- name: Security-audit the MCP server
uses: andreolf/mcp-audit@v1
with:
url: http://localhost:3000/mcp
fail-on: D # fail the job on grade D or worse (default: F)
# header: "Authorization: Bearer ${{ secrets.MCP_TOKEN }}" # optionalThe job prints an A–F grade and the findings, and fails if the grade is at or below fail-on.
Nothing is executed on the scanned server — it only sends a read-only handshake.
Test
npm test # spawns the mock insecure server (stdio + batch) and asserts findings — 12 checksWhat it checks (starter heuristics — expand these)
no-auth — server accepts
initializewith no credentials (critical)ssrf-surface — tools that take URLs / make outbound requests (high)
high-privilege-tool — exec/shell/delete/write-file style tools (high)
injection-in-description — override/injection phrasing in tool descriptions (medium)
leaked-secret — token/key-shaped strings in tool metadata (critical)
Architecture
bin/mcp-audit.js CLI entry (arg parsing, exit codes for CI)
src/scan.js orchestrator
src/mcpClient.js MCP Streamable-HTTP transport: initialize + tools/list
src/checks.js heuristic security checks -> findings
src/report.js grading (A–F), badge, Markdown/JSON outputRoadmap (turn this skeleton into the viral thing)
✅ stdio + npm transports — scan local (
--cmd) and published (--npm, via npx) servers, not just remote URLs. This unlocks scanning the registry's top servers for the launch audit. (PyPI/uvxequivalent is a small follow-up.)Static-key vs OAuth detection — inspect the auth challenge / token format.
Deeper SSRF probe — actually call fetch-style tools against a canary internal URL in a sandbox.
✅ Batch mode + leaderboard —
mcpaudit-batch targets.txt→ ranked report + headline stats. That ranked report is the launch artifact: "We audited the 200 most-installed MCP servers."✅ Registry fetcher (
mcpaudit-fetch) — pulls HTTP targets from the official MCP Registry (discovery only, never executes). npm packages emitted commented-out.--include-npmto opt in.Embeddable badge —
MCP Security: Ashields.io-style badge servers add to their README (2026 ranking signal, and free distribution for you).Registry presence — list on mcp.so, smithery.ai, glama.ai, PulseMCP, official MCP Registry, and PR to punkpeye/awesome-mcp-servers. Prepare one metadata pack, submit to all.
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityCmaintenanceSecurity scanner for MCP servers. Detects prompt injection, command injection, auth bypass, and excessive permissions across tools, resources, and prompts.482MIT
- Alicense-qualityCmaintenanceSecurity auditor for MCP servers that enumerates tools, resources, and prompts, scans for injection patterns, classifies risk levels, and produces a scored report (0-100, grades A-F).2MIT
- Alicense-qualityAmaintenanceSecurity scanner for MCP servers — vet an MCP before you wire it into an agent. Detects prompt-injection, credential exfiltration (via taint analysis), RCE, and supply-chain risks, and catches cross-server exfil chains no single server reveals. Zero-dependency local CLI, SARIF output, CI-gateable, no account.43MIT
- AlicenseCqualityBmaintenanceSecurity scanner and MCP server that catches dangerous patterns in MCP servers and AI agent projects, such as leaked secrets, shell execution, and prompt-injection text. Runs as both a CLI and MCP server with CI-friendly severity gates.21MIT
Related MCP Connectors
Security scanner for MCP servers. Detect vulnerabilities, prompt injection, and tool poisoning.
Scans MCP servers for tool poisoning, prompt injection and supply chain risks.
Grade MCP servers A to F with the open behavioral litmus. npm: full toolset; hosted: lookups only.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/andreolf/mcp-audit'
If you have feedback or need assistance with the MCP directory API, please join our Discord server