agentleFS
kaandgnshkaandgnsh/Claude-Blue/skills/ai-security/mcp-server-security-review/SKILL.md

mcp-server-security-review

Skill0 starsChanged 13 days agoMITView on GitHub

Review Model Context Protocol (MCP) servers and client configurations — server provenance and pinning, tool description poisoning, authorization (OAuth 2.1 per the MCP spec, no token passthrough), confused-deputy risks, local server sandboxing, secret handling, and tool-call logging. Use when installing or approving an MCP server, building one, or assessing MCP use in coding assistants and agents.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

MCP Server Security Review

Threats

ThreatDescription
Malicious or compromised serverLocal stdio servers run as your user with your files and credentials; remote servers see every tool call
Tool poisoningTool names/descriptions/outputs contain hidden instructions that steer the model (indirect prompt injection via metadata)
Rug pullServer updates change tool behaviour/descriptions after approval
Token passthrough / confused deputyServer forwards the client's token to downstream APIs, or uses its own broad credentials on behalf of any user
Excessive scopesOAuth scopes far beyond tool needs
Data exfiltrationTools that fetch URLs or send data externally
Session hijackWeak session IDs on HTTP transports

Review checklist

  • Provenance: known publisher, source available, version pinned (package version/commit/container digest), dependencies scanned (sca-dependency-risk).
  • Tools: read each tool's description and schema for hidden/odd instructions; minimal tool set enabled; destructive tools require client-side approval.
  • Local servers: run in a sandbox/container with minimal filesystem and network access; no broad home-directory access; secrets supplied via env from a manager, not committed config.
  • Remote servers: HTTPS; authorization per the MCP spec (OAuth 2.1 with PKCE, resource indicators/audience-bound tokens); server validates tokens issued for itself and does not pass client tokens through to upstream APIs; per-user authorization for upstream calls.
  • Logging: tool calls and parameters logged on the client and server; alerts for unusual tools or volumes.
  • Change control: re-review on version updates; monitor tool description changes (hash descriptions).
  • Client config: project-level MCP configs in repositories can be injection vectors — require approval before enabling servers defined by a repo.

Output

Server | Version/digest | Transport | Tools (side effects) | Auth model | Sandbox | Findings | Decision

Related skills

agent-tool-permission-review, prompt-injection-review, sca-dependency-risk, oauth-app-review

References

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.