
Mcp Security Audit
If you're letting AI agents loose with MCP servers, this catches the security holes before they bite you. It scans .mcp.json files for hardcoded API keys and tokens, flags shell injection patterns in server args, and warns when you're using @latest instead of pinned versions. The pattern matching is solid: catches GitHub tokens, OpenAI keys, AWS credentials, plus dangerous stuff like bash -c and command substitution. Honestly most valuable during code review or as a pre-commit hook. The checks are straightforward Python you can extend with your own patterns or approved server lists. Not a replacement for a real secrets scanner, but a good first line of defense for MCP-specific risks.
- skills.sh installs
- 1.1K
- GitHub stars
- 41K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add github/awesome-copilot --skill mcp-security-audit --agent claude-codeInstalls into .claude/skills of the current project.
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.jsonfile 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
Sponsors
Details
- Repository
- github.com/github/awesome-copilot
- Categories
- Backend & APIs, Security, Git & Pull Requests, AI & Agent Building, CLI & Terminal
- First seen
- May 16, 2026
More from github/awesome-copilot
All 318- Arize Prompt Optimization1.1K
- Arize Ai Provider Integration1.1K
- Arize Evaluator1.1K
- React19 Concurrent Patterns1.1K
- Arize Dataset1.1K
- Arize Instrumentation1.1K
- Arize Annotation1.1K
- Integrate Context Matic1.1K
- Arize Experiment1.1K
- Arize Trace1.1K
- Arize Link1.1K
- Phoenix Evals1K
- Phoenix Tracing1K
- Onboard Context Matic1K
- Phoenix Cli1K
- React19 Source Patterns993
- Python Pypi Package Builder950
- Salesforce Apex Quality885
- React Audit Grep Patterns884
- Salesforce Flow Design839
- Github Release790
- Flowstudio Power Automate Monitoring787
- Flowstudio Power Automate Governance779
- Salesforce Component Standards770