English · 简体中文 · 日本語 · 한국어 · Français · Deutsch · Español · Русский · العربية · Website

# mcprism
**Check MCP server security risks before connecting it to your AI.**
An MCP server connects your AI to outside tools and data such as GitHub, files,
and databases. Because it may run commands or read files, mcprism reviews its
configuration and local source code and reports potential risks. Run
`mcprism scan` to check servers already configured in your AI client, or
`mcprism doctor` if discovery finds no servers. Use `mcprism vet ...` to review
one before adding it. It also checks MCP servers bundled with plugins installed
in the Codex and ChatGPT desktop apps. Optional live inspection lists tools
without calling them; add `--read-content` to scan bounded prompt/resource text
too. If you do not use MCP servers, you probably do not need mcprism yet.
Prefer to review source in your editor? The [VS Code extension](editors/vscode/README.md)
puts findings in the Problems panel, and the [JetBrains plugin](editors/jetbrains/README.md)
shows them in a tool window. Both keep scans static.
mcprism is a security scanner for [Model Context Protocol](https://modelcontextprotocol.io/)
servers. It looks at a server from three angles:
1. **Configuration** — how a client launches or reaches it: pinned packages,
cleartext transport, credentials in config, cloud metadata and private
network targets.
2. **Source code** — when the implementation is on disk, it reads the
JS/TS/Python/Go/Rust/Java/Kotlin/Swift/C# tool handlers and traces arguments an agent can control into
language-supported dangerous sinks: process execution, outbound requests
(SSRF) and filesystem paths, plus checks for hardcoded secrets. Eval and
unsafe deserialization checks apply to languages with those sinks.
3. **Runtime** — it negotiates the current stateless MCP protocol or the legacy
handshake, then lists tools, resources, parameterized resource templates
and prompts and checks their metadata for poisoning. `--read-content` also
requests bounded resource and prompt text. Neither mode calls tools.
Every server gets a list of findings, a 0–100 score and an A–F grade. mcprism
ships as one Go binary with no runtime dependencies. Local config and source
scans run fully offline and have no side effects. `registry` commands explicitly
contact the [official MCP Registry](https://registry.modelcontextprotocol.io/)
for public metadata but never launch or connect to the listed server. Live
probing is strictly opt-in (`--dynamic` / `--probe`).
[](https://github.com/HUA503/mcprism/actions/workflows/ci.yml)
[](https://github.com/HUA503/mcprism/releases)
[](https://goreportcard.com/report/github.com/HUA503/mcprism)
[](https://go.dev)
[](LICENSE)
---