mcp-audit
Skill18 starsChanged 3 months agoMITView on GitHub
MCP config + implementation security audit — config secrets/auth, unpinned versions, remote vs local, OAuth, env exposure; implementation command injection, SSRF, unsafe args, tool poisoning. Static, evidence-cited.
- Reads credentials
5 other projects use a version of this.
Adopted by
Most recently taken up by
- rohitg00/pro-workflowtheir own version, first seen Sep 29, 2026
- coffeegrind123/mcp-audittheir own version, first seen Aug 6, 2026
- msiShariful/claude-token-inspectortheir own version, first seen May 12, 2026
- Lifeoflunatic/mcp-audit-skilltheir own version, first seen Apr 18, 2026
- getsentry/toolkittheir own version, first seen Mar 12, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- rohitg00/pro-workflow★ 2.9ksame name
- getsentry/toolkit★ 912same name
- msiShariful/claude-token-inspector★ 4same name
- coffeegrind123/mcp-audit★ 0same name
- Lifeoflunatic/mcp-audit-skill★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository105 other files it gives its agents.
- AGENTS.mdAGENTS.md
- reviewSkill
- owasp-agentic-reviewSkill
- supply-chain-auditSkill
- threat-modelingSkill
- architecture-diagramSkill
- c4-modelSkill
- aws-well-architected-reviewSkill
- cloud-design-patternsSkill
- assistantSkill
- dev-companionSkill
- onboardingSkill
- output-handshakeSkill
- pr-fallbackSkill
- projectSkill
- workspace-knowledge-syncSkill
- workspaceSkill
- dbt-validationSkill
- snowflake-validationSkill
- adrSkill
- agreementSkill
- bugSkill
- decision-logSkill
- development-workflowSkill
- epicSkill
- incidentSkill
- management-unit-assessmentSkill
- meeting-minutesSkill
- planningSkill
- prdSkill
- project-assessment-evidenceSkill
- project-assessmentSkill
- spikeSkill
- taskSkill
- technical-unit-assessmentSkill
- trdSkill
- user-storySkill
- workflow-client-bootstrapSkill
- workflow-generic-projectSkill
- work-itemSkill
- bragSkill
- brag-slimSkill
- design-assessmentSkill
- design-improvementSkill
- figma-code-connect-componentsSkill
- figma-create-design-system-rulesSkill
- figma-create-new-fileSkill
- figma-implement-designSkill
- figmaSkill
- frontend-design-reviewSkill
- frontend-designSkill
- web-design-guidelinesSkill
- fix-merge-conflictsSkill
- gh-address-commentsSkill
- gh-contribution-plannerSkill
- gh-fix-ciSkill
- github-cli-workflowSkill
- gitlab-cli-workflowSkill
- worktreeSkill
- clickup-cliSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 23
Run the relevant mode per request.
- Distinctive: line 106
Never execute MCP servers during audit.
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
MCP Audit — Config + Implementation Security
Audit MCP servers before adopting — static inspection only, never execute remote servers. Use when reviewing mcp/registry/*.yaml, mcp/templates/*/config.template.json, skill/plugin MCP declarations, or when a static surface scan flags MCP references.
Single skill, two modes — decision per #379 review: config and implementation scopes meaningfully overlap (both inspect mcp/registry/*.yaml + templates), but checklists differ enough to keep separate gates. One skill with two modes avoids duplicating registry parsing while keeping config (secret hygiene, version pinning) distinct from implementation (command injection, SSRF, tool poisoning).
Static only: Do not start or call remote MCP servers during audit. Inspect YAML/JSON, package provenance, tool descriptions, and env handling.
Modes
| Mode | What it checks | Evidence |
| Config audit | mcp/registry/*.yaml auth, package provenance, version pinning, remote vs local, OAuth, env/secret exposure, permissions | Registry YAML, template JSON, env var names, docs/MCP.md |
| Implementation audit | Command injection, shell execution, SSRF, unsafe args, tool description poisoning, secret env leakage, dangerous permissions, transport security | Skill SKILL.md + static surface patterns (shell/network/mcp/hooks), tool definitions, args validation, network_hosts |
Run the relevant mode per request; for full adoption review, run both and emit a single mcp-audit-report.md.
Config audit — checklist
Auth & secrets
auth.envlists only env var names, never values (scan registry YAML forghp_,xoxb, hardcoded tokens)- Template
config.template.jsonuses${ENV_VAR}placeholders (no real credentials) - Remote MCP (
streamable_httpURL likehttps://mcp.figma.com/mcp) documents auth asbearer-envwith region var, not query param - Local MCP (
stdiovianpx/docker/uvx) does not embed secrets inargs— secrets only inenv - No
default-branch pushorfilesystemWritesbeyond declaredsecurity.network_hosts
Version pinning & provenance
implementation.packageis machine-verifiable: npmchrome-devtools-mcp@latest/ dockerghcr.io/.../ URLhttps://mcp.figma.com/mcp— not barelatestwithout policyimplementation.version_policydeclared (npx-latest,pin image digest,pin to minor) and matches templateargs(-y chrome-devtools-mcp@latestvs@notionhq/notion-mcp-server)implementation.provenance=officialwithrepositoryURL +licenseverifiable viagh api(e.g., ChromeDevTools/chrome-devtools-mcp Apache-2.0, github/github-mcp-server MIT)- Remote vs local decision documented: remote (Figma) for designer-hosted, local (GitHub/Slack/Notion) for on-host execution — no mixed remote + local for same provider without rationale
Permissions & env exposure
security.network_hostsenumerates expected hosts (no*, no private.local/192.168.)security.secret_storage=environment variablewithsecret_storagenotesplatformsmatrix declares support per target (native/bridged/manual) — no assumed universalapproval.defaultmatches risk:read-onlyfor Figma/GitHub vsread-writefor Chrome DevTools (can modify page) — justified
Per-template gate
- Template
command∈npx|docker|uvxandargs[:2] == ["-y", provider.package]fornpx(verified bytests/test_mcp_templates.py)
Implementation audit — checklist
Command injection & shell
argscontain no shell interpolation ($(,`,;,&&,|). MCPcommandis single binary, notsh -c.commandis notsh/bash/python -cwith concatenated args — use directnpx/dockerentrypoint.
SSRF & network
- URL args (
--browser-url,https://mcp.linear.app/mcp) are not user-controlled without allowlist;navigate_pagetool validates hosts. network_hostsdoes not include internal metadata endpoints (169.254.169.254,metadata.google.internal).
Tool poisoning & unsafe args
- Tool descriptions in registry
tools.read/writedo not contain prompt injections (e.g.,ignore previous instructions,send secrets to). - Tool
write/destructivesets are minimal — nodelete_filewhere read-only suffices (GitHubdestructivecorrectly listsdelete_fileonly there). - Args that become file paths (
FIGMA_OAUTH_TOKEN) are env var refs, not string interpolation.
Secret leakage & OAuth
- No
envvalue contains PII — only${VAR}placeholders in templates; registry listsenvnames withCHROME_DEVTOOLS_MCP_NO_USAGE_STATISTICSstyle opt-outs. - OAuth flows (Linear) documented as browser OAuth, not token paste.
Workflow
- Load registry:
agent_toolkit.compiler.mcp_registry.load_registry(mcp/registry)— recordproviders, errors(evidence: registry count). - Pick mode:
config(default for adoption) orimplementation(for command/SSRF/poisoning) or both. - Run checks: For each
providerinproviders, apply the relevant checklist above; forimplementation, Grep the registry/templates for shell/network/hooks patterns and capture findings withfile:lineevidence. (Repo checkout/CI may also run./scripts/audit-capability.vsh mcp/registry/<provider>.yaml --json— that script is not on the host install.) - Score:
ALLOW(no Blocking),CAUTION(Major, e.g., unpinned version, remote without TLS),BLOCK(Blocking: hardcoded secret, command injection, SSRF to metadata endpoint, provenance unknown). - Report: Emit
mcp-audit-report.md(seereferences/mcp-audit-template.md) with per-provider table:provider | config verdict | impl verdict | package/license | version_policy | provenance | evidence.
Example report row
| Provider | Config | Impl | Package | License | Version policy | Verdict | Evidence |
| chrome-devtools | ✅ auth none, package chrome-devtools-mcp@latest, npx-latest, no secrets | ✅ no shell, no SSRF, read-write justified | npm chrome-devtools-mcp@latest | Apache-2.0 | npx-latest | ALLOW | registry chrome-devtools.yaml + template config.template.json |
Relation to mcp skill
mcp(integrations/mcp) — how to setup (agent-toolkit mcp setup,mcp list,doctor) — orchestration.mcp-audit(this skill) — whether to trust — security gate before setup. Call this skill beforemcp setupfor unreviewed providers; delegatesupply-chain-auditfor full skill/plugin surface.
Delegation table
| Need | Skill |
| Setup MCP after audit | integrations/mcp |
| Full skill/plugin supply-chain | agentic-security/supply-chain-audit |
| OWASP agentic review (prompt injection, tool poisoning, identity) | agentic-security/owasp-agentic-review (next issue) |
| Output gate | output-handshake |
Security & compatibility
- Never execute MCP servers during audit; static YAML/JSON only.
- Portable:
gh apifor provenance license check,yaml+jsonschemaoffline.
References
references/mcp-audit-template.md— report template (per-provider verdict)mcp/registry/*.yaml— canonical registry (7 providers after #375)mcp/templates/*/config.template.json— host wiring (placeholders)- Static surface patterns in this skill’s checklists (shell/network/mcp/hooks); repo checkout/CI may use
scripts/audit-capability.vsh - MCP spec: https://modelcontextprotocol.io/ , ChromeDevTools MCP https://github.com/ChromeDevTools/chrome-devtools-mcp
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

