mcprism

Security review for MCP

Know what an MCP server can do before your AI connects.

MCP servers can run commands, read files, and reach the network. mcprism checks their configuration, source, and tool metadata so you can review the risks first.

Local by default. Config and source scans are offline and do not upload your files. Live inspection is opt-in.

mcprism scans example MCP servers and reports security findings
One binaryNo runtime dependenciesOpen source

OfflineLocal config and source scans

Static by defaultDoes not run the server unless live inspection is enabled

Opt-inLive inspection only when you ask

UsefulReadable findings, score, and CI reports

What gets checked

Three views of the same server.

Use one view or combine them. Start with what you have: a config, a source checkout, or a running endpoint you explicitly choose to inspect.

Configuration

Review launch commands, package versions, credentials, transport settings, and network targets in MCP client configs.

mcprism scan

Source code

Trace supported tool handlers toward command execution, network requests, and file access. Scan a local checkout or fetch a bounded archive from a public GitHub repo; mcprism never runs the project code.

mcprism vet --repo https://github.com/owner/server

Tool metadata

With opt-in live inspection, list tools and resources and check their descriptions for suspicious instructions. It can start the server or connect to it, so inspect untrusted servers in a sandbox. Tools are never invoked.

mcprism scan --dynamic

Know the limits

A useful review signal, not a safety guarantee.

Source checks use language-specific patterns and bounded helper tracking; they are not whole-program AST or data-flow analysis. Metadata checks use deterministic multilingual signatures, not semantic analysis. Unusual code paths and indirect instructions can be missed.

Read the analysis scope and known limits

See concrete MCP attack scenarios and defenses

For ongoing review

Notice when an approved server changes.

Save a capability lock after reviewing a server, then verify it in CI. mcprism compares tools, resources, templates, and prompts so new or changed capabilities do not slip through unnoticed.

The lock stores names, opaque resource IDs, and fingerprints—not raw descriptions, schemas, or resource URIs.

Inventory commands connect to the target to list capabilities, but never call tools. Run them on a dedicated CI runner without secrets.

review once, verify every change
mcprism inventory save mcp.json \
  --output mcp.lock.json

mcprism inventory verify mcp.json \
  --baseline mcp.lock.json

No MCP setup required

Try an offline scan in two commands.

The built-in demo uses fixed examples. It runs offline, needs no MCP client or Node.js, never reads your client configs, and never starts a server. Add --source to analyze bundled vulnerable Go, JavaScript, and Python handlers without running them.

No Node.js required · Windows, macOS, Linux Install the binary, then run mcprism demo Use the official platform installer shown here. The demo itself is offline.
All install options and releases
macOS / Linux
curl -fsSL https://raw.githubusercontent.com/HUA503/mcprism/main/install.sh | sh
mcprism demo

Windows PowerShell

irm https://raw.githubusercontent.com/HUA503/mcprism/main/install.ps1 | iex
mcprism demo

Optional · scan bundled source examples

mcprism demo --source

Prefer to inspect the installer first? Review the shell script or PowerShell script. Both verify the downloaded archive against that release's SHA-256 checksums before installing. You can also download a platform archive and checksums manually.

Prefer a package manager? Show more install options

Homebrew · macOS / Linux

brew tap HUA503/mcprism https://github.com/HUA503/mcprism
brew install HUA503/mcprism/mcprism

Scoop · Windows

scoop bucket add mcprism https://github.com/HUA503/mcprism
scoop install mcprism/mcprism

WinGet · Windows

winget install --id HUA503.mcprism --exact

Community catalog updates may lag behind GitHub releases. Use the PowerShell installer above for the newest release.

Nix · Linux / macOS

nix profile install github:HUA503/mcprism

Go

go install github.com/HUA503/mcprism/cmd/mcprism@latest

Ready for your own setup?

Check the MCP servers already configured on your machine.

mcprism looks for supported client config locations automatically, including Visual Studio's .vs/mcp.json, Factory Droid's .factory/mcp.json, and LibreChat's librechat.yaml. After the binary is downloaded, the default scan reads those configs locally; it does not launch servers, invoke tools, or open network connections. For Cherry Studio, export mcp-servers.json into your project and it will be discovered too.

If no servers appear or discovery reports a warning, run mcprism doctor to see the checked results and affected paths. For scripts, mcprism doctor --require-complete --format json returns a nonzero status when discovery has warnings.

Open WebUI stores MCP connections in its admin UI. Use the Open WebUI guide to review an endpoint that is not in a local config file.

Scan your configured MCP clients mcprism scan

For teams

Put the same review in CI.

Fail a workflow when an MCP config crosses your chosen severity threshold. SARIF output can be uploaded to GitHub code scanning.

See the full CI guide
.github/workflows/security.yml
- uses: HUA503/mcprism@v0.43.74
  with:
    target: mcp.json
    fail-on: high

Review the tool before it joins your AI.

mcprism is free, open source, and built for local-first checks.

View mcprism on GitHub