resk-mcp

Secure Model Context Protocol Layer for Python MCP Servers

Security & Management for the Model Context Protocol

resk-mcp (published on PyPI as mcp-resk) is an open-source Python library that adds a robust security and management layer over the official Model Context Protocol Python SDK. MCP servers expose tools, resources, and prompts to AI agents — resk-mcp authenticates, validates, and monitors every interaction.

Key Features

  • JWT authentication — secure MCP server endpoints with JSON Web Tokens
  • Input validation — validate all incoming MCP requests with Pydantic
  • PII detection — detect personally identifiable information in request parameters
  • Prompt injection protection — detect common prompt injection phrases
  • Rate limiting — configurable per-user or per-IP limits (slowapi)
  • Token-based context management — limit request size by estimated token count
  • Interaction tracking — monitor calls to tools, resources, and prompts
  • Dashboard — web-based visualization of MCP interactions and server configuration

Quick Start

pip install mcp-resk

Get Started with resk-mcp

Secure your MCP server in minutes. MIT licensed.

View on GitHub PyPI Package Documentation

Questions & Support

contact[@]resk.fr

Contact Our Team