Structural similarity-based code filter. Stops malicious code pattern reaching execution tools.
If you already use Code, the code mcp server is the piece that lets your assistant work with it directly. Structural similarity-based code filter. Stops malicious code pattern reaching execution tools.
A structural similarity-based code security filter for MCP (Model Context Protocol). Blocks dangerous code patterns before they reach execution tools by comparing code structure against a blacklist of known-bad patterns.
code-firewall-mcp on PyPI is all you need. Most clients run it directly, so configuration is a few lines and a restart.
The toolset is worth reading before you wire it up, because it tells you what the integration is really for:
firewall_system_check — Check system requirements — verify macOS, Apple Silicon, RAMfirewall_setup_ollama — Install via Homebrew — managed service, auto-updatesfirewall_setup_ollama_direct — Install via direct download — no sudo, fully headlessfirewall_ollama_status — Check Ollama availability — verify embeddings are readyfirewall_check — Check if a code file is safe to executefirewall_check_code — Check code string directly (no file required)firewall_blacklist — Add a dangerous pattern to the blacklistfirewall_record_delta — Record near-miss variants for classifier sharpeningfirewall_list_patterns — List patterns in blacklist or delta collectionfirewall_remove_pattern — Remove a pattern from blacklist or deltasfirewall_status — Get firewall status and statisticsConfiguration is passed through the environment: FIREWALL_DATA_DIR, OLLAMA_URL. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.
Plenty of developer tooling servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Code's toolset — firewall_system_check, firewall_setup_ollama, firewall_setup_ollama_direct and 8 more — is a fair guide to whether it matches your workflow. It is maintained by egoughnour; worth a glance at recent repository activity before you build anything load-bearing on it.
We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.
| Tool | What it does |
|---|---|
| firewall_system_check | **Check system requirements** — verify macOS, Apple Silicon, RAM |
| firewall_setup_ollama | **Install via Homebrew** — managed service, auto-updates |
| firewall_setup_ollama_direct | **Install via direct download** — no sudo, fully headless |
| firewall_ollama_status | **Check Ollama availability** — verify embeddings are ready |
| firewall_check | Check if a code file is safe to execute |
| firewall_check_code | Check code string directly (no file required) |
| firewall_blacklist | Add a dangerous pattern to the blacklist |
| firewall_record_delta | Record near-miss variants for classifier sharpening |
| firewall_list_patterns | List patterns in blacklist or delta collection |
| firewall_remove_pattern | Remove a pattern from blacklist or deltas |
| firewall_status | Get firewall status and statistics |
{
"mcpServers": {
"code-firewall": {
"command": "uvx",
"args": ["code-firewall-mcp"],
"env": {
"FIREWALL_DATA_DIR": "your-value",
"OLLAMA_URL": "your-value"
}
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
| Variable | Description | Required |
|---|---|---|
| FIREWALL_DATA_DIR | Filesystem location the server is allowed to use. | Optional |
| OLLAMA_URL | Endpoint or connection string the server talks to. | Yes |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.