Logo: Mcp Audit

Mcp Audit

Communautéit
ulises-jeremias
mcp-audit

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.

Iwwersiicht

Editeurulises-jeremias
Repositoryagent-toolkit
Skill-Nummmcp-audit
Stären
20
Forks
5
Matgeliwwert Dateien
1
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 1 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    ulises-jeremias huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Mcp Audit an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/ulises-jeremias/agent-toolkit/tree/main/plugins/agent-toolkit-complete/skills/mcp-audit
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ulises-jeremias/agent-toolkit.git /tmp/agent-toolkit
mkdir -p .claude/skills
cp -r /tmp/agent-toolkit/plugins/agent-toolkit-complete/skills/mcp-audit .claude/skills/mcp-audit
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Mcp Audit an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Mcp Audit automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Mcp Audit net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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

ModeWhat it checksEvidence
Config auditmcp/registry/*.yaml auth, package provenance, version pinning, remote vs local, OAuth, env/secret exposure, permissionsRegistry YAML, template JSON, env var names, docs/MCP.md
Implementation auditCommand injection, shell execution, SSRF, unsafe args, tool description poisoning, secret env leakage, dangerous permissions, transport securitySkill 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.env lists only env var names, never values (scan registry YAML for ghp_, xoxb, hardcoded tokens)
  • Template config.template.json uses ${ENV_VAR} placeholders (no real credentials)
  • Remote MCP (streamable_http URL like https://mcp.figma.com/mcp) documents auth as bearer-env with region var, not query param
  • Local MCP (stdio via npx/docker/uvx) does not embed secrets in args — secrets only in env
  • No default-branch push or filesystemWrites beyond declared security.network_hosts

Version pinning & provenance

  • implementation.package is machine-verifiable: npm chrome-devtools-mcp@latest / docker ghcr.io/... / URL https://mcp.figma.com/mcp — not bare latest without policy
  • implementation.version_policy declared (npx-latest, pin image digest, pin to minor) and matches template args (-y chrome-devtools-mcp@latest vs @notionhq/notion-mcp-server)
  • implementation.provenance = official with repository URL + license verifiable via gh 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_hosts enumerates expected hosts (no *, no private .local / 192.168.)
  • security.secret_storage = environment variable with secret_storage notes
  • platforms matrix declares support per target (native/bridged/manual) — no assumed universal
  • approval.default matches risk: read-only for Figma/GitHub vs read-write for Chrome DevTools (can modify page) — justified

Per-template gate

  • Template command ∈ npx|docker|uvx and args[:2] == ["-y", provider.package] for npx (verified by tests/test_mcp_templates.py)

Implementation audit — checklist

Command injection & shell

  • args contain no shell interpolation ($(, `, ;, &&, |). MCP command is single binary, not sh -c.
  • command is not sh/bash/python -c with concatenated args — use direct npx/docker entrypoint.

SSRF & network

  • URL args (--browser-url, https://mcp.linear.app/mcp) are not user-controlled without allowlist; navigate_page tool validates hosts.
  • network_hosts does not include internal metadata endpoints (169.254.169.254, metadata.google.internal).

Tool poisoning & unsafe args

  • Tool descriptions in registry tools.read/write do not contain prompt injections (e.g., ignore previous instructions, send secrets to).
  • Tool write/destructive sets are minimal — no delete_file where read-only suffices (GitHub destructive correctly lists delete_file only there).
  • Args that become file paths (FIGMA_OAUTH_TOKEN) are env var refs, not string interpolation.

Secret leakage & OAuth

  • No env value contains PII — only ${VAR} placeholders in templates; registry lists env names with CHROME_DEVTOOLS_MCP_NO_USAGE_STATISTICS style opt-outs.
  • OAuth flows (Linear) documented as browser OAuth, not token paste.

Workflow

  1. Load registry: agent_toolkit.compiler.mcp_registry.load_registry(mcp/registry) — record providers, errors (evidence: registry count).
  2. Pick mode: config (default for adoption) or implementation (for command/SSRF/poisoning) or both.
  3. Run checks: For each provider in providers, apply the relevant checklist above; for implementation, Grep the registry/templates for shell/network/hooks patterns and capture findings with file:line evidence. (Repo checkout/CI may also run ./scripts/audit-capability.vsh mcp/registry/<provider>.yaml --json — that script is not on the host install.)
  4. 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).
  5. Report: Emit mcp-audit-report.md (see references/mcp-audit-template.md) with per-provider table: provider | config verdict | impl verdict | package/license | version_policy | provenance | evidence.

Example report row

ProviderConfigImplPackageLicenseVersion policyVerdictEvidence
chrome-devtools✅ auth none, package chrome-devtools-mcp@latest, npx-latest, no secrets✅ no shell, no SSRF, read-write justifiednpm chrome-devtools-mcp@latestApache-2.0npx-latestALLOWregistry 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 before mcp setup for unreviewed providers; delegate supply-chain-audit for full skill/plugin surface.

Delegation table

NeedSkill
Setup MCP after auditintegrations/mcp
Full skill/plugin supply-chainagentic-security/supply-chain-audit
OWASP agentic review (prompt injection, tool poisoning, identity)agentic-security/owasp-agentic-review (next issue)
Output gateoutput-handshake

Security & compatibility

  • Never execute MCP servers during audit; static YAML/JSON only.
  • Portable: gh api for provenance license check, yaml + jsonschema offline.

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

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Mcp Audit?

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.

Firwat Mcp Audit op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Mcp Audit besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Mcp Audit an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/ulises-jeremias/agent-toolkit/tree/main/plugins/agent-toolkit-complete/skills/mcp-audit an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Mcp Audit benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Mcp Audit benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Mcp Audit domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Mcp Audit gratis?

Jo. ulises-jeremias huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇