Skip to content
Skill

MCP Server Security

Guidance for vetting, configuring and hardening MCP servers and third-party skills

MCP Server Security is an open-source agent skill for security. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
6
Last commit
License
MIT
Listing updated

Similar skills

About MCP Server Security

This skill gives the agent a security playbook for Model Context Protocol servers. It covers authentication choices such as OAuth 2.1 versus API keys, keeping credentials out of committed files, least-privilege scoping, and treating everything returned by an MCP server as untrusted input. It also sets out which actions need explicit user approval, from destructive git operations to sending messages, while read-only queries do not.

Beyond MCP, the skill applies the same scrutiny to the wider agent supply chain. It includes a six-step vetting checklist for third-party skills, plugins and agents: reviewing dynamic command lines, flagging overly broad permission grants, reading registered hooks, pinning versions or commit hashes, watching for configuration rewrites during a session, and scanning servers with mcp-scan. It also advises keeping the number of MCP servers small and lists a few security servers, Semgrep, Snyk and SonarQube, with guidance on when each is worth adding.

The skill is written as guidelines rather than automation, so it runs no scripts of its own. It refers to companion skills named quality-tooling and pipeline-security for CLI-based checks, which are not part of this folder.

When your agent uses it

Guidelines for evaluating, configuring, and securing Model Context Protocol servers — and the rest of the agent supply chain (skills, plugins, agents): authentication, input validation and tool-poisoning defense, human-in-the-loop approval, server curation, a vetting checklist for third-party skills and plugins, and recommended security servers. Load when adding, auditing, or hardening an MCP server, or before installing a skill, plugin, or agent.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (5 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the hefesto plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add joaoariedi/hefesto
/plugin install hefesto@hefesto

Or copy only this skill to ~/.claude/skills/mcp-security:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/joaoariedi/hefesto.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/mcp-security &&
cp -R "$tmp/skills/mcp-security" ~/.claude/skills/mcp-security &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/mcp-security inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/mcp-security to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/joaoariedi/hefesto.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/mcp-security &&
cp -R "$tmp/skills/mcp-security" ~/.agents/skills/mcp-security &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/mcp-security inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/mcp-security to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/joaoariedi/hefesto.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/mcp-security &&
cp -R "$tmp/skills/mcp-security" ~/.cursor/skills/mcp-security &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/mcp-security inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/joaoariedi/hefesto.git --path skills/mcp-security

Or copy the folder to ~/.gemini/skills/mcp-security yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/mcp-security:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/joaoariedi/hefesto.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/mcp-security &&
cp -R "$tmp/skills/mcp-security" ~/.copilot/skills/mcp-security &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/mcp-security inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/joaoariedi/hefesto.git

Then copy hefesto/skills/mcp-security into your agent's skills folder as mcp-security. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

MCP authentication rules
Guidance on when OAuth 2.1 or API keys are appropriate, and how to keep credentials out of repositories.
Tool poisoning defense
Checks for hidden instructions in tool descriptions and validation of responses before they reach code or files.
Human approval matrix
A table of action categories by risk level that states which operations need explicit user consent.
Skill and plugin vetting
A six-step checklist for reviewing third-party skills, plugins, hooks and agents before installation.
MCP server curation
Advice on keeping server counts low, documenting each entry and pruning servers that go unused.
Recommended security servers
Notes on when to add Semgrep, Snyk or SonarQube as MCP servers rather than relying on CLI scans.

Good for

  • Audit my mcp.json for risky server configurations
  • Check whether a third-party skill or plugin is safe to install
  • Set up authentication for a new MCP server
  • Review tool descriptions for prompt injection attempts
  • Decide which MCP actions should require my approval

MCP Server Security FAQ

When does MCP Server Security load?

It loads when adding, auditing or hardening an MCP server, or before installing a skill, plugin or agent. Trigger phrases include auditing mcp.json and asking whether a server or skill is safe.

Does MCP Server Security run any scripts?

No. The folder contains only the SKILL.md file and no scripts. It provides guidelines and a checklist that the agent follows.

Which AI clients does MCP Server Security support?

The listing covers the shared agent skills format, but the skill refers to Claude Code hooks and a Claude Code plugin marketplace, so some checks are specific to Claude Code.

Are there companion skills MCP Server Security depends on?

The skill points to quality-tooling and pipeline-security for CLI-based security checks. Those skills are not part of this folder.

How do I install MCP Server Security in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/mcp-security to use it in all your projects, or to .claude/skills/mcp-security in one project. Or install the hefesto plugin, which includes it: /plugin marketplace add joaoariedi/hefesto, then /plugin install hefesto@hefesto.

Does MCP Server Security run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use MCP Server Security?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to MCP Server Security?

The closest alternatives to MCP Server Security are MCP implementation security review, MCP security audit, Craft MCP, MCP audit and MCP dependency review.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from joaoariedi/hefesto

  1. Lint, format, type-check and test commands for common languages and CI gates

    • Open source
    • 6 GitHub stars
    • Developer tools
  2. Guides choosing and comparing CI/CD security scanners for SAST, DAST, SCA and secrets

    • Open source
    • 6 GitHub stars
    • Security
  3. Walks an agent through root-cause investigation of bugs before any fix is applied

    • Open source
    • 6 GitHub stars
    • Developer tools
  4. Scores a code change's effort and risk from git metadata, read-only

    • Open source
    • 6 GitHub stars
    • Developer tools