Code Firewall MCP
Structural code filter that compares normalized code with blacklisted patterns before execution.
Install Code Firewall MCP
Pick your client, then add it in one click or paste the config.
~/Library/Application Support/Claude/claude_desktop_config.json{
"mcpServers": {
"code-firewall-mcp": {
"command": "uvx",
"args": [
"code-firewall-mcp"
],
"env": {
"FIREWALL_DATA_DIR": "YOUR_VALUE_HERE",
"OLLAMA_URL": "YOUR_VALUE_HERE",
"EMBEDDING_MODEL": "YOUR_VALUE_HERE",
"SIMILARITY_THRESHOLD": "YOUR_VALUE_HERE",
"NEAR_MISS_THRESHOLD": "YOUR_VALUE_HERE"
}
}
}
}
Settings β Developer β Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.
Values are written into the snippet above so you can paste it as is. They never leave your browser.
Install not yet sandbox-testedβ we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.
Overview
Use cases
- Check generated code before sending it to an execution tool
- Inspect inline code without creating a file
- Add organization-specific dangerous patterns to the blacklist
- Record legitimate near-miss examples for classifier refinement
- Verify Ollama and embedding availability on macOS
Key features
- Structural similarity checks for code files and strings
- Ollama-based code embeddings
- ChromaDB pattern storage
- Blacklist and near-miss management
- Configurable similarity thresholds
- Ollama setup and status tools
Tools11
What Code Firewall MCP lets your agent do. Expand a tool for its parameters.
Security & health
What it can reach and how reliably it runs β from our own checks, not the maintainerβs claims.
Recent health check succeeded.
Supply-chain signal
No high-severity advisories surfaced by our automated scan.
Scanned 4d ago via OSV.dev Β· code-firewall-mcp (PyPI)
Adoption & maintenance
Factual signals from GitHub, npm, and our automated checks β not a rating.
How Code Firewall MCP works
Reviews
No reviews yet β be the first to share how it worked for you.
Frequently Asked Questions about Code Firewall MCP
Related MCP servers
Add a badge to your READMEShow itβs listed β live SVG, Markdown or HTML.
AllMCPs Directory Badge
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/code-firewall-mcp)<a href="https://allmcps.com/mcp/code-firewall-mcp"><img src="https://allmcps.com/api/badge/code-firewall-mcp?style=directory" alt="Code Firewall MCP on AllMCPs" /></a>