# MCP Server Security

> MCP Server Security is an open-source agent skill for security. Guidance for vetting, configuring and hardening MCP servers and third-party skills. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/joaoariedi/hefesto/tree/main/skills/mcp-security
- **Repository:** https://github.com/joaoariedi/hefesto
- **GitHub stars:** 6
- **License:** MIT
- **Skill name:** MCP Server Security
- **Collection:** https://github.com/joaoariedi/hefesto
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-12-03

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/joaoariedi/hefesto/tree/HEAD/skills/mcp-security)
- [License: MIT](https://github.com/joaoariedi/hefesto/tree/HEAD/skills/mcp-security)

## Features

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

## Install

### Claude Code

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

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

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

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

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

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

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

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

## Alternatives

- [MCP implementation security review](https://ai-powered.com/skills/mcp-implementation-security-review): MCP implementation security review is an open-source agent skill for security.
- [MCP security audit](https://ai-powered.com/skills/mcp-security-audit): MCP security audit is an open-source agent skill for security.
- [Craft MCP](https://ai-powered.com/skills/craft-mcp): Craft MCP is an open-source agent skill for developer tools.
- [MCP audit](https://ai-powered.com/skills/mcp-audit-tansuasici): MCP audit is an open-source agent skill for ai models and llm tooling.
- [MCP dependency review](https://ai-powered.com/skills/mcp-dependency-review-abdullayevtemurmalik): MCP dependency review is an open-source agent skill for security.
- [Security](https://ai-powered.com/skills/security-xiaolai): Security is an open-source agent skill for security.
- [Security and hardening](https://ai-powered.com/skills/security-and-hardening): Security and hardening is an open-source agent skill for security.
- [Security](https://ai-powered.com/skills/security-jasgujral): Security is an open-source agent skill for security.

---
Source: https://ai-powered.com/skills/mcp-server-security
