MCP.so
登录

Shieldmcp

@shieldmcp

关于 Shieldmcp

A shield for logging, deep debug and sanitization for MCP servers at development stage

基本信息

分类

其他

运行时

python

传输方式

stdio

发布者

shieldmcp

提交者

x3at

配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "shieldmcp-shieldmcp": {
      "command": "python",
      "args": [
        "-m",
        "venv",
        "venv"
      ]
    }
  }
}

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Shieldmcp?

Shieldmcp is a security middleware for Model Context Protocol (MCP) servers that provides tool access control, result sanitization, structured logging, and rate limiting without modifying the official SDK. It is intended for developers who need to secure and monitor MCP tool calls.

How to use Shieldmcp?

Apply the @secure_tool decorator to your MCP tools with optional parameters for allowed tools, sanitizer, user and session IDs, and rate limit configuration. Components like ToolAudit, ToolAccess, ToolSanitizer, and RateLimitConfig can also be used independently.

Key features of Shieldmcp

  • Whitelist-based access control for MCP tools
  • Configurable result sanitization with sensitive pattern detection
  • Structured audit logging using structlog
  • Token bucket rate limiting with burst support
  • Standardized error handling across tools
  • Compatible with the MCP Inspector tool

Use cases of Shieldmcp

  • Restrict which MCP tools can be invoked by different users
  • Sanitize tool outputs to prevent leaking personal or financial data
  • Monitor and audit all tool calls with detailed logs
  • Prevent tool overload with rate limits per user or session

FAQ from Shieldmcp

What is the primary purpose of Shieldmcp?

Shieldmcp acts as a security middleware for MCP servers, enabling access control, sanitization, logging, and rate limiting without

评论

其他 分类下的更多 MCP 服务器