mcp-security

mcp-security is a skill for Claude Code from jpoutrin/product-forge. It costs 36 tokens per session (499 once invoked), scanned A, original, MIT.

A planning skill for turning engineering requirements into an implementation specification with coordinated team tasks and dependencies.

In plain words
What is it for?
Use it to plan projects involving team coordination, task queues, dependencies, and specialized agents such as Django or Python experts.
Why use it?
It helps break multi-step work into clear pieces, assign suitable specialists, and show which tasks can run in parallel.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the security-compliance plugin — 3 skills, 2 agents shipped together

Good fit Use it to plan projects involving team coordination, task queues, dependencies, and specialized agents such as Django or Python experts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jpoutrin/product-forge/mcp-security
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jpoutrin/product-forge --skill mcp-security
Clone the repo
git clone --depth 1 https://github.com/jpoutrin/product-forge

Made for: Claude Code.

Or install security-compliance, the plugin that ships this one along with the rest of its 3 skills, 2 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mcp-security

README.md
[![agentmods](https://agentmods.dev/badge/skills/jpoutrin/product-forge/mcp-security/github.svg)](https://agentmods.dev/skills/jpoutrin/product-forge/mcp-security)
Your own site
<a href="https://agentmods.dev/skills/jpoutrin/product-forge/mcp-security"><img src="https://agentmods.dev/badge/skills/jpoutrin/product-forge/mcp-security/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mcp-security

Your own site · 80×15
<a href="https://agentmods.dev/skills/jpoutrin/product-forge/mcp-security"><img src="https://agentmods.dev/badge/skills/jpoutrin/product-forge/mcp-security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 499 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00036 $0.00499
Opus 5.5 $0.00014 $0.00200
Sonnet 5.5 $0.00007 $0.00100
Haiku 4.5 $0.00004 $0.00050

Measured 1mo ago against content hash be84f94a1e73, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mcp-security scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/security-compliance/skills/mcp-security/SKILL.md · 84 lines

How it starts

The opening of the file, as written. The whole thing — 84 lines — stays where its author put it; the contents beside it link to each section on GitHub.

MCP Security Skill

This skill enforces security best practices for MCP servers and multi-agent pipelines.

5-Layer Defense Architecture

  1. Input Validation - Sanitize all user inputs
  2. Prompt Injection Prevention - Detect and block injection attempts
  3. SQL/NoSQL Validation - Prevent query injection
  4. User Context Propagation - Maintain identity through pipeline
  5. Authorization (RBAC/ABAC) - Enforce access controls

Prompt Injection Prevention

# Always validate and sanitize inputs
def sanitize_input(user_input: str) -> str:
    # Remove potential injection patterns
    # Escape special characters
    # Limit length
    pass

# Never directly concatenate user input into prompts
# ❌ Bad
prompt = f"Process this: {user_input}"

# ✅ Good
prompt = sanitize_input(user_input)
validated_prompt = validate_against_schema(prompt)

User Context Propagation

@dataclass
class UserContext:
    user_id: str
    roles: list[str]
    permissions: list[str]
    tenant_id: str

# Pass context through all pipeline stages
async def process_request(context: UserContext, request: Request):
    # Validate permissions at each step
    if not has_permission(context, "read:data"):
        raise AuthorizationError()

Authorization Patterns

RBAC (Role-Based Access Control)

ROLE_PERMISSIONS = {
    "admin": ["read", "write", "delete", "admin"],
    "editor": ["read", "write"],
    "viewer": ["read"],
}

ABAC (Attribute-Based Access Control)

def can_access(user: User, resource: Resource) -> bool:
    return (
        user.department == resource.department
        and user.clearance >= resource.sensitivity
    )

Security Checklist

  • All user inputs validated and sanitized
  • Prompt injection patterns detected
  • SQL queries parameterized
  • User context propagated through pipeline
  • Authorization checked at each step
  • Sensitive data encrypted
  • Audit logging enabled

Read the full file on GitHub · 84 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 84 lines · 36 tokens per session scan A be84f94a1e73

Subscribe to this mod's changes

mcp-security is a skill published in the GitHub repository jpoutrin/product-forge (16 stars, last pushed 7mo ago), licensed MIT. It adds 36 tokens to every session and 499 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories