MCP Trust Layer

MCP Trust Layer

MCP server that scans PyPI packages and GitHub repos for security vulnerabilities, dangerous patterns, and prompt injection vectors, providing trust scores (0-10) and side-by-side comparisons.

Category
Visit Server

README

MCP Trust Layer πŸ”’

The first security scanner and trust verification layer for the MCP ecosystem.

MCP (Model Context Protocol) is how AI agents connect to tools and data. With 21,000+ MCP servers on GitHub and enterprise deployments accelerating in 2026, there is zero security verification in the ecosystem.

MCP Trust Layer fixes that.

Why This Exists

Every MCP server you install gets:

  • Read access to ~/.ssh/id_rsa, ~/.aws/credentials
  • Network access (exfiltrate data, SSRF)
  • Process spawn access (run commands)
  • Environment variable access (API keys)

Not a single MCP marketplace audits for security. One researcher found 3 of 8,764 servers leaked credentials under basic testing.

Features

  • Scan any PyPI package for secrets, dangerous patterns, and prompt injection vectors
  • Scan any GitHub repo or source URL for security issues
  • Compare packages side-by-side by security score
  • Trust Score (0-10) β€” automated, reproducible security rating
  • Deep code analysis across all Python files in a package

Quick Start

Install

pip install "mcp[cli]"
git clone https://github.com/YOUR_USERNAME/mcp-trust-layer.git
cd mcp-trust-layer

Run (stdio)

python -m mcp run server.py --transport stdio

Run (HTTP)

python server.py
# Server starts on http://127.0.0.1:8000
# Connect any MCP client to http://localhost:8000/mcp

Add to Claude Code

claude mcp add --transport http mcp-trust http://localhost:8000/mcp

Then ask:

  • "Scan the PyPI package 'flask' for security issues"
  • "Compare the security scores of 'requests' and 'httpx'"
  • "Scan github.com/owner/repo for vulnerabilities"

Tools

Tool Description
scan_pypi_package(name) Deep scan of a PyPI package. Downloads source, analyzes all Python files for secrets, dangerous patterns, and prompt injection vectors. Returns trust score + findings.
scan_source_url(url) Scan code from a GitHub repo or direct archive URL.
compare_packages(list) Compare multiple packages by security score side by side.

Resources

URI Description
trust://schema JSON schema for security reports

Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  MCP Client  │────▢│ Trust Scanner│────▢│  PyPI / GH  β”‚
β”‚ (Claude/Copilot)β”‚     β”‚  MCP Server  β”‚     β”‚  API        β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                           β”‚
                           β–Ό
                    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                    β”‚  Trust Score  β”‚
                    β”‚  + Findings   β”‚
                    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Security Checks

The scanner detects:

  • Secrets: API keys, tokens, passwords, private keys, connection strings
  • Dangerous patterns: eval(), exec(), subprocess, file writes, network access
  • Supply chain risks: dangerous imports, pickle deserialization, dynamic imports
  • Prompt injection vectors: system prompt references, injection patterns

Roadmap

  • [x] PyPI package scanning
  • [x] GitHub repo scanning
  • [x] Security score (0-10)
  • [ ] Live MCP server endpoint monitoring
  • [ ] Continuous integration webhook alerts
  • [ ] Enterprise compliance reports (SOC2, HIPAA)
  • [ ] MCP marketplace integration API

Marketplaces

This server is listed on:

  • mcp.so β€” Largest MCP directory
  • Smithery β€” CLI-first MCP installer
  • PulseMCP β€” Community MCP index
  • Glama β€” Quality-scored MCP directory

License

MIT

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured