Skip to content
Grok

code firewall mcp for Grok

io.github.egoughnour/code-firewall-mcp

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

client:Grok transport:stdio runtime:pypi

Install code firewall mcp in Grok

.mcp.json (in your project root)

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "code-firewall-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "code-firewall-mcp"
      ],
      "env": {
        "FIREWALL_DATA_DIR": "<FIREWALL_DATA_DIR>",
        "OLLAMA_URL": "<OLLAMA_URL>",
        "EMBEDDING_MODEL": "<EMBEDDING_MODEL>",
        "SIMILARITY_THRESHOLD": "<SIMILARITY_THRESHOLD>"
      }
    }
  }
}

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

code firewall mcp in other clients