Skip to main content

Security proxy for MCP (Model Context Protocol) connections

Project description

trusted-mcp

Security proxy for MCP (Model Context Protocol) connections

CI PyPI version Python versions License

Part of the AumOS open-source agent infrastructure portfolio.


Features

  • InterceptorChain pipeline that applies an ordered sequence of scanners to every tool call request, response, and tool definition — short-circuits on the first BLOCK result
  • Scanner ABC for building custom scanners; ships with RegexScanner, AllowlistScanner, PiiScanner, ArgumentScanner, and DescriptionHashScanner out of the box
  • Tool description hash verification detects MCP tool-poisoning attacks where a server's tool descriptions change between sessions
  • YAML policy config maps scanner slugs to settings, making the security profile fully declarative and version-controlled
  • JSON audit logger writes an append-only record of every PASS/WARN/BLOCK decision with scanner name, reason, tool name, and server name
  • Native adapters for Claude Desktop, Cursor, and VS Code that inject the proxy transparently into each client's MCP configuration
  • Extensible scanner registry via Python entry-points — third-party scanners install and register without modifying the proxy codebase

Quick Start

Install from PyPI:

pip install trusted-mcp

Verify the installation:

trusted-mcp version

Basic usage:

import trusted_mcp

# See examples/01_quickstart.py for a working example

Documentation

Enterprise Upgrade

For production deployments requiring SLA-backed support and advanced integrations, contact the maintainers or see the commercial extensions documentation.

Contributing

Contributions are welcome. Please read CONTRIBUTING.md before opening a pull request.

License

Apache 2.0 — see LICENSE for full terms.


Part of AumOS — open-source agent infrastructure.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aumos_trusted_mcp-0.2.0.tar.gz (146.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aumos_trusted_mcp-0.2.0-py3-none-any.whl (126.1 kB view details)

Uploaded Python 3

File details

Details for the file aumos_trusted_mcp-0.2.0.tar.gz.

File metadata

  • Download URL: aumos_trusted_mcp-0.2.0.tar.gz
  • Upload date:
  • Size: 146.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for aumos_trusted_mcp-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a2539f02cdf1fc04799841659a37e2bee575e4250d0d921410a52d0af773c418
MD5 94dd27c7703bd53e0a10596d186407ca
BLAKE2b-256 7bc54b35f4f79772ddf09b75d9b3fd5e8b40c985280a468317dba91c1e9122f3

See more details on using hashes here.

File details

Details for the file aumos_trusted_mcp-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aumos_trusted_mcp-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6a74647d0af10bc6203eb8a3e2d25ffe3b6158fa0e989441b536d467acb58245
MD5 55381794d753c2837d85ec43b28b36b3
BLAKE2b-256 c0211184bbc3595c865fc6935ad18e9eabe1f2a767ebef807e3cf6816927ae3f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page