Skip to main content
Glama
tuesdays-dev

Guardrail MCP Server

by tuesdays-dev

Minimal MCP Server (Python)

This is a minimal Model Context Protocol (MCP) server using the official Python SDK.

Features

  • Tool: guardrail(context: str) -> bool — Checks if the provided context is safe (no code injection or harmful content). Returns True if safe, False otherwise.

Related MCP server: Sandbox MCP

Quick Start

  1. Install dependencies:

    pip install -r requirements.txt
  2. Run the server:

    python main.py

Test with MCP Inspector

To test and explore your server with a GUI:

mcp dev main.py

Install in Claude Desktop

To use this MCP server as a tool in Claude Desktop:

  1. Make sure you have Claude Desktop installed.

  2. In your terminal, run:

    mcp install main.py
  3. The server will appear as a tool in Claude Desktop, ready to use.

References

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol (MCP) server that enables LLMs to run ANY code safely in isolated Docker containers.
    121
    MIT
  • A
    license
    B
    quality
    D
    maintenance
    A secure Model Context Protocol server that allows AI assistants and LLM applications to safely execute Python and JavaScript code snippets in containerized environments.
    2
    204
    MIT
  • A
    license
    B
    quality
    C
    maintenance
    A security-focused Model Context Protocol server that enables controlled local tool execution through strict network firewalls, filesystem protections, and rate-limiting policies. It features a plugin-based architecture for progressive tool discovery and includes reference implementations for web searching and bug tracking.
    15
    MIT

Appeared in Searches