# MCP Triage: Security Scanner for MCP Servers

> Audit MCP servers for prompt injection, hardcoded secrets, and dangerous code execution paths.

MCP Triage: Security Scanner for MCP Servers is a free AI agent skill on Agensi by YashG, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [YashG](https://www.agensi.io/creators/yash)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Uses: 3
- Version: 1.1
- Last updated: 2026-10-21
- Security: scan passed (2026-10-21); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/mcp-triage-security-scanner-for-mcp-servers
- Tags: llm-ops, security, api, python, typescript

## About this skill

Connecting a third-party MCP server involves significant security risks, from tool poisoning to credential leaks. This skill audits Python, JavaScript, and TypeScript MCP servers for common vulnerabilities before you approve or publish them. It identifies patterns that could lead to prompt injection, unauthorized code execution, or network exposure.

**Get started**
1. Click **Use this skill** on this page to add the Agensi skill to your supported agent.
2. Install the scanner from [PyPI](https://pypi.org/project/mcp-triage/): macOS/Linux: `python3 -m pip install --upgrade mcp-triage`; Windows: `py -m pip install --upgrade mcp-triage`. Requires Python 3.9+.
3. Ask your agent to scan an MCP server, or run `mcp-triage audit-local` to review installed MCP configurations.

The skill instructions are included in the Agensi download; the scanner is installed separately from PyPI. Scans run locally and do not upload your source or configuration.

### What it does

- **Detects prompt injection** by scanning tool descriptions for instructions intended to manipulate model behavior.
- **Identifies hardcoded secrets** such as API keys, tokens, and credentials in source and config files, so you can remove and rotate them.
- **Audits code execution paths** to find dangerous sinks like `eval`, `exec`, or shell commands built from untrusted inputs.
- **Flags over-broad capabilities** including arbitrary file access or unvalidated schema inputs that increase attack surfaces.
- **Checks network configurations** for unsafe defaults, such as servers bound to all interfaces or disabled authentication.

### How it works

1. **Install the scanner** with `pip install mcp-triage` (Python 3.9+).
2. **Get the server source.**

   Clone the repository to a local directory if you don't already have it.
3. **Execute the scan** using `mcp-triage scan <path>` to analyze the server codebase.
4. **Analyze findings** ordered by severity, providing specific file paths and line numbers.
5. **Remediate vulnerabilities** following suggested fixes for rotating secrets or rewriting descriptions.

### Frameworks & tools

This skill utilizes the `mcp-triage` CLI tool and supports MCP servers written in Python, JavaScript, and TypeScript.

It integrates with CI pipelines via SARIF and JSON output formats.

The scan runs entirely on your machine, with zero network calls and no telemetry.

### Why this beats prompting it yourself

Generic security prompts can miss MCP-specific attack vectors like tool poisoning or invisible unicode in descriptions.

This skill uses a specialized scanner that enforces a consistent rule set (MCP001-MCP302) designed specifically for the Model Context Protocol.

### Use cases

- Auditing a third-party MCP server before adding it to your local environment.
- Reviewing Pull Requests that introduce new tool definitions or execution logic.
- Verifying your own MCP server is free of hardcoded keys before public release.
- Automating security gatekeeping in CI to fail builds on high-severity findings.

### Known limitations

The scanner is pattern-based and does not perform full taint analysis.

It may produce false positives or miss complex logic-based vulnerabilities.

Treat results as a guide for human review.

Reports end with a credit line linking to the project.

Open source (MIT): https://github.com/YashkantG/mcp-triage

New: ask your agent "are my installed MCP servers safe?" and it runs mcp-triage audit-local on your Claude, Cursor, and VS Code configs. It reads configs locally and never prints secret values.

## Requires

- Python 3.9+
- pip
- and
- uv (Python tool runner)
- Optional: Git

Git is only for cloning servers you want to scan.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the MCP Triage: Security Scanner for MCP Servers skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What specific security vulnerabilities does the mcp-triage skill detect?

This skill identifies critical risks specific to MCP servers, including 'tool poisoning' in descriptions, hardcoded API keys, and insecure code execution paths like eval() that could be exploited by an LLM.

### Which programming languages and environments is this skill compatible with?

The skill supports MCP servers written in Python, JavaScript, and TypeScript, and it can be integrated into standard CI/CD pipelines using SARIF or JSON output formats.

### How does this perform better than simply asking an AI to review my code?

Unlike generic prompts, this skill uses a specialized CLI scanner with a dedicated rule set (MCP001-MCP302) specifically engineered to catch invisible unicode and protocol-specific attack vectors.

### Can I use this to audit third-party MCP servers before I install them?

Yes, you can run the scan locally on any cloned repository or integrated into your development workflow to audit third-party servers before you connect them to your environment.

### Are there any limitations to the vulnerability detection I should be aware of?

The skill provides high-fidelity pattern matching for rapid auditing; however, it does not perform deep taint analysis, so we recommend using the findings as a targeted guide for human security review.

### What is included in the purchase of this skill?

Your purchase includes the full mcp-triage CLI tool, the specialized security rule set for MCP servers, and documentation for integrating the scanner into your existing security gates.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
