github avatar

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-code

Installs 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.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

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
1vtex avatarpayment-idempotencyvtex/skillsApply when implementing idempotency logic in payment connector code or handling duplicate payment requests. Covers paymentId as idempotency key, payment state m1.1Kskills.sh installs
2vapiai avatarcreate-assistantvapiai/skillsCreate Vapi voice AI assistant payloads or assistants through the Vapi API. Use when building phone or web call agents, generating assistant JSON, choosing safe1.1Kskills.sh installs
3modelcontextprotocol avatarmigrate-oai-appmodelcontextprotocol/ext-appsThis skill should be used when the user asks to "migrate from OpenAI Apps SDK", "convert OpenAI App to MCP", "port from window.openai", "migrate from skybridge"1.1Kskills.sh installs
4secondsky avatarsap-btp-best-practicessecondsky/sap-skillsSAP BTP best practices for enterprise architecture, account management, security, and operations, with verification evidence tracked in the repository ledger. U1.1Kskills.sh installs
5heygen-com avatarliveavatar-debugheygen-com/liveavatar-agent-skillsTroubleshoot and debug LiveAvatar integration issues. Use when the user's LiveAvatar integration isn't working, the avatar is silent, audio is garbled, sessions1.1Kskills.sh installs
6vapiai avatarcreate-callvapiai/skillsCreate outbound phone calls, web calls, and batch calls using the Vapi API. Use when making automated calls, testing voice assistants, scheduling call campaigns1.1Kskills.sh installs