Securing MCP — provenance and pinning of servers, permission review, tool poisoning and rug-pull risks, indirect prompt injection via tool outputs, token scoping and storage, network egress, sandboxing local servers, approval via ADR. Use before connecting or changing any MCP server (MCP security, tool poisoning, MCP permissions, server provenance).
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Mcp Security?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/vectora-os-mcp-security)
---
name: mcp-security
description: Securing MCP — provenance and pinning of servers, permission review, tool poisoning and rug-pull risks, indirect prompt injection via tool outputs, token scoping and storage, network egress, sandboxing local servers, approval via ADR. Use before connecting or changing any MCP server (MCP security, tool poisoning, MCP permissions, server provenance).
metadata:
category: ai
---
# MCP security
## Purpose
Connect only MCP servers whose provenance, permissions and behaviour are understood.
**Use when:** adding or updating MCP servers.
**Not for:** building tools (`mcp-server-development`).
## Inputs
- Server source, version, requested permissions.
## Outputs
- Security assessment and ADR input.
## Read first
- [Project Brain](../../../project-brain/README.md) — `npm run brain -- query "mcp security"` for prior decisions, patterns and anti-patterns.
- [MCP review checklist](../../../checklists/mcp-review.md)
- [Agent safety policy](../../../policies/agent-safety.md)
## Steps
1. **Provenance.** Source, maintainer, version pin, integrity.
Done when pinned and verified.
2. **Permissions.** List tools and scopes; remove unneeded.
Done when least privilege.
3. **Behaviour.** Review tool descriptions for hidden instructions; check egress.
Done when no poisoning.
4. **Decide.** Write the assessment for an ADR and human approval.
Done when ADR proposed.
## Best practices
- Re-review on every version change.
- Read-only by default.
## Common mistakes
- Auto-updating servers.
- Broad personal tokens.
## Example
Third-party Jira MCP: pinned version, read-only token, tool descriptions reviewed; approved via ADR.
## Reusable prompt
```text
Apply the MCP security skill (.agents/skills/mcp-security/SKILL.md).
Context: {{task card or question; links to PRD, ADRs, code paths}}
Constraints: {{approved thresholds, deadlines, allowed files}}
Assess the MCP server provenance, permissions and behaviour and prepare the ADR input.
Return: Security assessment and ADR input..
Cite evidence (file:line, command output, source) for every claim; list open questions separately.
```