railo-security
Railo MCP Server
Mathematical Safety Guardrail for AI Code Generation.
Formally verify AI-generated security patches using First-Order Logic SMT invariants and Concrete Syntax Tree transformations.
Architectural Problem: Probabilistic Code Remediation
When LLMs (GPT-4o, Claude 3.5 Sonnet, GitHub Copilot) generate security patches, they operate via autoregressive next-token prediction. In security-critical paths, probabilistic fixes introduce high-severity failure modes:
Incomplete Sanitization: Generating naive regex checks or
.startswith()comparisons instead of canonical path containment (os.path.commonpath), leaving trivial bypasses.Grammar and Structural Invalidation: Emitting syntax errors, unclosed delimiters, or invalid method signatures that regress native test suites.
Package Hallucination: Referencing unverified external dependencies, introducing supply-chain vulnerabilities.
Railo MCP provides a deterministic verification layer that evaluates proposed patches against formal First-Order Logic constraints before code is committed.
Related MCP server: CSL-Core
Exposed Tools
1. explain_vulnerability
Returns the formal First-Order Logic safety invariant, AST pattern, and canonical remediation implementation for a specified CWE.
Scope:
CWE-89(SQL Injection),CWE-22(Path Traversal),CWE-78(Command Injection),CWE-798(Hardcoded Credentials),CWE-918(SSRF),CWE-79(XSS),CWE-352(CSRF),CWE-601(Open Redirect).Execution: Local, zero-latency, no network dependency.
2. verify_syntax
Parses proposed code through Python's Concrete Syntax Tree grammar. Detects unclosed delimiters, invalid indentation, and AST syntax errors prior to commit.
Execution: Local AST parser.
3. verify_security_patch
Submits a patch diff for formal verification against target CWE domain invariants.
Returns
VERIFIED (UNSAT)if the solver proves no input can alter structural execution.Returns
FAILED (SAT)with a concrete counter-example payload if the vulnerability survives.
Installation and Configuration
Package Execution
Run directly via uvx:
uvx railo-mcpOr install via pip:
pip install railo-mcpClient Configuration
Cursor (.cursor/mcp.json)
Add the following block to .cursor/mcp.json in your project root:
{
"mcpServers": {
"railo-security": {
"command": "uvx",
"args": ["railo-mcp"],
"env": {
"RAILO_API_KEY": "your_api_key_here"
}
}
}
}Claude Desktop (claude_desktop_config.json)
Add the server definition to claude_desktop_config.json:
{
"mcpServers": {
"railo-security": {
"command": "uvx",
"args": ["railo-mcp"],
"env": {
"RAILO_API_KEY": "your_api_key_here"
}
}
}
}Authentication and API Keys
Sign up at railo.dev.
Navigate to Dashboard → API Keys.
Generate an API Key (Free tier includes 20 verifications per month).
License
MIT License. Developed by IWEB and Railo Security.
This server cannot be deployed
Maintenance
Related MCP Connectors
Jailbreak-proof AI guardrails. Automated Reasoning SMT solver, not an LLM. ZK proofs included.
- zenableOAuthapp.zenable
Zenable cleans up sloppy AI code and prevents vulnerabilities with deterministic guardrails
Production-safety audits for AI-generated code, with a fix for every finding.
Zero-config MCP security scanner for AI-generated apps. 25K+ vulnerability patterns.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceEnables formal verification of LLM outputs against compliance ontologies using Z3 SMT solver. Validates that AI-generated content adheres to regulatory requirements like HIPAA or mortgage compliance rules.MIT
- AlicenseAqualityAmaintenanceDeterministic AI safety policy engine with Z3 formal verification. Write, verify, simulate, and enforce machine-verifiable safety constraints for AI agents. Completely outside the LLM.616Apache 2.0
- AlicenseNot gradedqualityAmaintenanceMCP server that gives LLMs access to formal verification via Z3 and SWI-Prolog, plus tree-sitter-based source code analysis. Translates natural language problems into formal logic using a template-based pipeline, verifies results with mathematical certainty, and analyzes call graphs for reachability, dead code, and impact analysis.100 npm212Apache 2.0
- AlicenseBqualityAmaintenanceEnables deterministic verification for AI assistants by executing Python code that uses symbolic engines like SymPy and Z3 for math, logic, and code analysis.2Apache 2.0