Code Firewall MCP Server
by egoughnourio.github.egoughnour/code-firewall-mcpv0.7.0
Structural similarity-based code filter. Stops malicious code pattern reaching execution tools.
context tax
queued
security
queued
cold start
queued
freshness
Stale9mo ago
Install Code Firewall MCP server
Install in Claude Code
claude mcp add code-firewall -- uvx code-firewall-mcpInstall in Cursor
{
"mcpServers": {
"code-firewall": {
"command": "uvx",
"args": [
"code-firewall-mcp"
]
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"code-firewall": {
"command": "uvx",
"args": [
"code-firewall-mcp"
]
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"code-firewall": {
"type": "stdio",
"command": "uvx",
"args": [
"code-firewall-mcp"
]
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"code-firewall": {
"command": "uvx",
"args": [
"code-firewall-mcp"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| FIREWALL_DATA_DIR | — | — | Directory for storing ChromaDB data |
| OLLAMA_URL | — | — | URL for Ollama server (default: http://localhost:11434) |
| EMBEDDING_MODEL | — | — | Ollama embedding model (default: nomic-embed-text) |
| SIMILARITY_THRESHOLD | — | — | Block threshold 0-1 (default: 0.85) |
Freshness
Stale — last maintenance signal 9mo ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-01-19 · 9mo ago · GitHub
Latest release
2026-01-19 · 9mo ago · GitHub · v0.7.0
Package published
no data · npm/PyPI
Registry entry updated
2026-01-19 · 9mo ago · official registry · v0.7.0
FAQ
›How do I install the Code Firewall MCP server in Claude Code?
Run: claude mcp add code-firewall -- uvx code-firewall-mcp. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Code Firewall require an API key?
No required environment variables are declared in its published metadata.
›Can I use Code Firewall as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Code Firewall in the official MCP registry?
Yes, as io.github.egoughnour/code-firewall-mcp.