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). ReturnsTrue
if safe,False
otherwise.
Quick Start
Install dependencies:
pip install -r requirements.txtRun the server:
python main.py
Test with MCP Inspector
To test and explore your server with a GUI:
Install in Claude Desktop
To use this MCP server as a tool in Claude Desktop:
Make sure you have Claude Desktop installed.
In your terminal, run:
mcp install main.pyThe server will appear as a tool in Claude Desktop, ready to use.
References
This server cannot be installed
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.
Related MCP Servers
- -securityFlicense-qualityA 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 -
- AsecurityAlicenseAqualityA Model Context Protocol server designed for testing backend APIs for security vulnerabilities like authentication bypass, injection attacks, and data leakage.Last updated -1411MIT License
- -securityFlicense-qualityA 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 -
- AsecurityFlicenseAqualityA Model Context Protocol server that enables users to perform third-party enrichment lookups for security observables (IP addresses, domains, URLs, emails) through services like VirusTotal, Shodan, and others.Last updated -12