New advertisers: 50% off your first month with code FIRSTMONTHSee slots
github avatar

Mcp Security Audit

Audits MCP server configurations for hardcoded secrets, shell injection patterns, mutable package references, and unapproved servers.

skills.sh installs
1.2K
GitHub stars
41.4K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers .mcp.json review for secrets in args and env, shell injection in server arguments, and package-runner selectors
  • Checks for hardcoded tokens such as GitHub, OpenAI, and AWS keys, plus private key blocks and bearer tokens
  • Flags mutable npm, bunx, uvx, and pipx references, including bare names, @latest, and version ranges, for pinning
  • Designed for reviewing MCP configuration changes before commit or onboarding a new server into a project

Install

$ npx -y skills add github/awesome-copilot --skill mcp-security-audit -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

MCP Security Audit

Audit MCP server configurations for security issues — secrets exposure, shell injection, unpinned dependencies, and unapproved servers.

Overview

MCP servers give agents direct tool access to external systems. A misconfigured .mcp.json can expose credentials, allow shell injection, or connect to untrusted servers. This skill catches those issues before they reach production.

.mcp.json → Parse Servers → Check Each Server:
  1. Secrets in args/env?
  2. Shell injection patterns?
  3. Mutable package selectors (bare, @latest, ranges)?
  4. Dangerous commands (eval, bash -c)?
  5. Server on approved list?
→ Generate Report

When to Use

  • Reviewing any .mcp.json file in a project
  • Onboarding a new MCP server to a project
  • Auditing all MCP servers in a monorepo or plugin marketplace
  • Pre-commit checks for MCP configuration changes
  • Security review of agent tool configurations

Details

Repository
github.com/github/awesome-copilot
Categories
Security, Skill & Plugin Building
First seen
May 16, 2026

More from github/awesome-copilot

All 293

Similar to Mcp Security Audit

More Security