PluginBench
MCP Server
Maintained
MIT

io.github.egoughnour/code-firewall-mcp MCP Server

io.github.egoughnour/code-firewall-mcp

What is the io.github.egoughnour/code-firewall-mcp MCP server?

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

How to install io.github.egoughnour/code-firewall-mcp

Copy-paste configuration for popular MCP clients.

transport: stdio
Config generated by PluginBench — verify against the source before use.
Environment / auth
  • 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)

Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "code-firewall-mcp": {
      "command": "uvx",
      "args": [
        "code-firewall-mcp"
      ],
      "env": {
        "FIREWALL_DATA_DIR": "<YOUR_FIREWALL_DATA_DIR>",
        "OLLAMA_URL": "<YOUR_OLLAMA_URL>",
        "EMBEDDING_MODEL": "<YOUR_EMBEDDING_MODEL>",
        "SIMILARITY_THRESHOLD": "<YOUR_SIMILARITY_THRESHOLD>"
      }
    }
  }
}
Cursor
~/.cursor/mcp.json
{
  "mcpServers": {
    "code-firewall-mcp": {
      "command": "uvx",
      "args": [
        "code-firewall-mcp"
      ],
      "env": {
        "FIREWALL_DATA_DIR": "<YOUR_FIREWALL_DATA_DIR>",
        "OLLAMA_URL": "<YOUR_OLLAMA_URL>",
        "EMBEDDING_MODEL": "<YOUR_EMBEDDING_MODEL>",
        "SIMILARITY_THRESHOLD": "<YOUR_SIMILARITY_THRESHOLD>"
      }
    }
  }
}
Windsurf
~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "code-firewall-mcp": {
      "command": "uvx",
      "args": [
        "code-firewall-mcp"
      ],
      "env": {
        "FIREWALL_DATA_DIR": "<YOUR_FIREWALL_DATA_DIR>",
        "OLLAMA_URL": "<YOUR_OLLAMA_URL>",
        "EMBEDDING_MODEL": "<YOUR_EMBEDDING_MODEL>",
        "SIMILARITY_THRESHOLD": "<YOUR_SIMILARITY_THRESHOLD>"
      }
    }
  }
}
VS Code
.vscode/mcp.json
{
  "servers": {
    "code-firewall-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "code-firewall-mcp"
      ],
      "env": {
        "FIREWALL_DATA_DIR": "<YOUR_FIREWALL_DATA_DIR>",
        "OLLAMA_URL": "<YOUR_OLLAMA_URL>",
        "EMBEDDING_MODEL": "<YOUR_EMBEDDING_MODEL>",
        "SIMILARITY_THRESHOLD": "<YOUR_SIMILARITY_THRESHOLD>"
      }
    }
  }
}
Claude Code
claude mcp add code-firewall-mcp --env FIREWALL_DATA_DIR=<YOUR_FIREWALL_DATA_DIR> --env OLLAMA_URL=<YOUR_OLLAMA_URL> --env EMBEDDING_MODEL=<YOUR_EMBEDDING_MODEL> --env SIMILARITY_THRESHOLD=<YOUR_SIMILARITY_THRESHOLD> -- uvx code-firewall-mcp

Related MCP servers

Hybrid search for Cowork history: FTS, Spotlight, and semantic vectors

1
Python
MIT
View repository →

Handles 10M+ token contexts with chunking, sub-queries, and local Ollama inference.

1
Python
MIT
View repository →

Curate-Ipsum

Maintained

Code synthesis through belief revision, mutation testing, and verification

0
Python
MIT
View repository →