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. 82 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 54 · avg 16 · -16% w/w
a month agotoday
82
Installs / week
pypi · code-firewall-mcp
0
Stars
0 open issues
19 Jan 2026
Last commit
from GitHub
MIT
License
Python

What the code does

We read the source, 4 d ago · rules 995398eba69f

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_direct.model → src/firewall_server.py:610, firewall_setup_ollama.model → src/firewall_server.py:414
                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": {
      "command": "uvx",
      "args": [
        "code-firewall-mcp"
      ]
    }
  }
}
~/.codex/config.toml
[mcp_servers.code-firewall-mcp]
command = "uvx"
args = ["code-firewall-mcp"]
.cursor/mcp.json
{
  "mcpServers": {
    "code-firewall-mcp": {
      "command": "uvx",
      "args": [
        "code-firewall-mcp"
      ]
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "code-firewall-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "code-firewall-mcp"
      ]
    }
  }
}

Optional settings from the registry entry, left out of the block above: 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)).

Alternatives to Code Firewall MCP

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

Structural code-quality tools for AI coding agents.

971 installs/wk local only
MCP Codebase Index
by mikerecognex

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

242 installs/wk local only
Us Eli MCP
by matematicsolutions

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

119 installs/wk local only
Codex MCP Bridge
by hampsterx

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

89 installs/wk local only
Itamos MCP Tools
by itamos-technologia

Code-map tools for AI agents: see a repo's structure first, then edit only what matters.

answering
Claude MCP Bridge
by hampsterx

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

272 installs/wk local only
Skeletongraph
by yashdoke7

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

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

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

64 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 82 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 in the form 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 82 times in the last week. Week over week that is -16%. 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.