mcpbeat Sign in

Code Firewall MCP Server

local only

Code Firewall MCP runs on your own machine — the client starts it, so there is no endpoint to ping. 77 installs a week from pypi. Last commit 19 Jan 2026.

Structural similarity-based code filter. Stops malicious code pattern reaching execution tools.

Installs per day peak 40 · avg 14 · -21% w/w
a month agotoday
77
Installs / week
pypi · code-firewall-mcp
0
Stars
0 open issues
19 Jan 2026
Last commit
0 releases in 90 days
MIT
License
Python

What the code does

We read the source, 18 h ago · rules 3dff92dd89df

A tool parameter reaches a dangerous call

A value the model can set ends up inside a file or shell call. That is not a flaw by itself — for a terminal server it is the job — but it is where things go wrong when it is not.

A tool parameter reaches a dangerous call firewall_setup_ollama.install → src/firewall_server.py:355, firewall_setup_ollama.model → src/firewall_server.py:414, firewall_setup_ollama_direct.model → src/firewall_server.py:610
                install_proc = subprocess.run(

Is this your server and something here is wrong? Tell us — corrections are free and do not require a plan.

A tool parameter here reaches a dangerous call

That is not a flaw by itself — but it is where things go wrong when it is not the job. We re-read this code on every release. Watch it and you hear from us the day another one appears.

Three servers free · no card

Connect this server

This server runs on your own machine — install it with the package manager and the client starts it for you. Package name taken from the official registry entry.

run in your terminal
claude mcp add code-firewall-mcp -- uvx code-firewall-mcp
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "code-firewall-mcp": {
      "args": [
        "code-firewall-mcp"
      ],
      "command": "uvx"
    }
  }
}
~/.codex/config.toml
[mcp_servers.code-firewall-mcp]
command = "uvx"
args = ["code-firewall-mcp"]
.cursor/mcp.json
{
  "mcpServers": {
    "code-firewall-mcp": {
      "args": [
        "code-firewall-mcp"
      ],
      "command": "uvx"
    }
  }
}
.vscode/mcp.json
{
  "mcpServers": {
    "code-firewall-mcp": {
      "args": [
        "code-firewall-mcp"
      ],
      "command": "uvx"
    }
  }
}

This one needs environment variables set before it will start: 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)). The author declared them in the registry entry; get the values from the project itself.

Alternatives to Code Firewall MCP

same job, measured the same way
Topos
by krv-labs

Structural code-quality tools for AI coding agents.

439 installs/wk local only
MCP Codebase Index
by mikerecognex

Structural codebase indexer with 17 query tools. 87% token reduction. Zero dependencies.

213 installs/wk local only
Us Eli MCP
by matematicsolutions

US law MCP: bills, US Code, Federal Register, executive orders, case law (state+federal), eCFR

184 installs/wk local only
Codex MCP Bridge
by hampsterx

Wraps Codex CLI as MCP tools: codex, review, query, search, structured, ping, listSessions.

55 installs/wk local only
Claude MCP Bridge
by hampsterx

Wraps Claude Code CLI as MCP tools: query, search, structured, ping, listSessions.

116 installs/wk local only
Nexus MCP
by j7an

Invoke CLI agents (Codex, Claude, OpenCode) as MCP tools with parallel execution

429 installs/wk local only
MCP Code Review Server
by goodjobwilliam

Code review as an MCP server — structured reviews with OWASP security scanning.

122 installs/wk local only
Skeletongraph
by yashdoke7

Zero-LLM structural code retrieval for AI coding agents, served over MCP.

28 installs/wk local only

Code Firewall MCP — questions

Answers built from our own checks of this server.

Why is there no uptime for Code Firewall MCP?
Code Firewall MCP runs on your own machine over stdio — there is no network address to reach, so uptime cannot be measured for it by anyone. What can be measured is adoption: the pypi package code-firewall-mcp was installed 77 times last week.
How do I connect Code Firewall MCP?
Copy the ready config from this page — we generate it for Claude Code, Claude Desktop, Codex, Cursor and VS Code, each with the file path that client actually reads. It runs locally, so the command pulls code-firewall-mcp straight from pypi; nothing to host, nothing to sign up for.
How many people use Code Firewall MCP?
The pypi package code-firewall-mcp was installed 77 times in the last week. Week over week that is -21%. We show installs rather than GitHub stars on purpose: a star is a bookmark, an install is someone actually running it.
Is Code Firewall MCP open source?
Yes — it is published under the MIT licence, written in Python and 0 stars on GitHub. The source link is on this page, so you can read exactly what it does with your data before you connect it.