Skip to main content
Glama

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.

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

-
security - not tested
F
license - not found
-
quality - not tested

A minimal Model Context Protocol server that provides a safety guardrail tool to check if provided context is free from code injection or harmful content.

  1. Features
    1. Quick Start
      1. Test with MCP Inspector
        1. Install in Claude Desktop
          1. References

            Related MCP Servers

            • A
              security
              A
              license
              A
              quality
              A Model Context Protocol server that provides tools for code modification and generation via Large Language Models, allowing users to create, modify, rewrite, and delete files using structured XML instructions.
              Last updated -
              12
              Python
              MIT License
              • Linux
              • Apple
            • -
              security
              F
              license
              -
              quality
              A Model Context Protocol server that allows users to query and analyze their SafetyCulture inspection data using natural language after providing an API key.
              Last updated -
              Python
              • Apple
            • -
              security
              A
              license
              -
              quality
              A Model Context Protocol server designed for testing backend APIs for security vulnerabilities like authentication bypass, injection attacks, and data leakage.
              Last updated -
              5
              TypeScript
              MIT License
            • -
              security
              -
              license
              -
              quality
              A Model Context Protocol server that performs third-party threat intelligence enrichment for various observables (IP addresses, domains, URLs, emails) using services like VirusTotal, Shodan, and AbuseIPDB.
              Last updated -

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/tuesdays-dev/gaurdrail-mcp'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server