mcp-trust-demo
An intentionally vulnerable MCP server designed as a live demo target for the MCP Trust security scanner. It contains deliberate insecure patterns to demonstrate scanning capabilities.
README
Vulnerable MCP Server — a live demo for MCP Trust
⚠️ This repository is intentionally vulnerable
It contains a deliberately insecure MCP server that exists only as a live demo target for the MCP Trust scanner. Do not install, run, import, or copy this code. There is no real functionality here — every risky pattern is on purpose. The exfiltration URL (
attacker.example) is a reserved, non-routable domain; there are no real secrets.
What this repo demonstrates
That wiring MCP Trust into a repo's CI takes one line, and that it catches real issues in an MCP server before an agent ever connects to it:
# .github/workflows/mcp-trust.yml
- uses: actions/checkout@v4
- uses: SteveMonsway/mcp-trust@v1
with:
fail-on: high
upload-sarif: true # → GitHub Security / Code Scanning alerts
comment-pr: true # → summary comment on pull requests
That's the entire integration. Full inputs/outputs: the MCP Trust GitHub Action.
What MCP Trust flags here
Scanning server.js + package.json produces
Decision: BLOCK on the following evidence:
| Rule | Severity | What |
|---|---|---|
MCP-CODE-001 |
critical | child_process.exec with caller-controlled input |
MCP-META-001 |
high | Tool description with an instruction-override phrase ("ignore previous instructions") |
MCP-META-002 |
high | Tool description with a concealment phrase ("do not tell the user") |
MCP-CODE-005 |
medium | Arbitrary filesystem read at a caller-supplied path |
MCP-SUPPLY-003 |
medium | postinstall script runs arbitrary code on npm install |
MCP-CODE-007 |
low | Secret-like environment variable access (GITHUB_TOKEN) |
MCP-SUPPLY-001 |
low | No linked source repository |
See it live
- Actions → latest MCP Trust run
- Security → Code Scanning → the SARIF alerts uploaded by the scan
- Pull Requests → the open demo PR shows the MCP Trust comment and a red ✗ check — that's the scanner gating a change
Why is the check red on PRs but green on main?
The target is vulnerable, so the scan is always BLOCK. On a pull request the job
fails on purpose (fail-on: high) — that's MCP Trust blocking the merge, exactly what
you want in review. On push to main the step is set to continue-on-error, so the
branch badge stays green while the SARIF alerts still populate the Security tab. A green
run here would mean the scanner missed the vulnerabilities.
Try it against your own MCP server
Point the scanner at any public repo, npm package, or local path:
npx @mcp-trust/cli scan github:owner/repo
Or add the Action (the one-liner above) to your own repository's
.github/workflows/. More: MCP Trust
· public benchmark of 452 real MCP servers.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.