Skip to content
Agentmart
Submit a tool

Code Firewall MCP

Structural similarity-based code filter.

Connector by egoughnour · GitHub account verified by the MCP Registry

IndexedMITLocal (stdio)
Write a review

Install

Works with Claude Code, Codex, VS Code, Claude Desktop, Cursor, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install connector/egoughnour-code-firewall-mcp

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

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

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this server can do and what it asks for, from its tool list and install config. Checked Oct 25, 2026.

Tools
6 read · 4 write · 1 delete
Secrets
None asked for
Install scripts
Not scanned yet
Runs as
Python package

Tools by what they do 11

Read from the source code; the running server may list different tools.

Read 6 · Look things up without changing anything.

  • firewall_check
  • firewall_check_code
  • firewall_list_patterns
  • firewall_ollama_status
  • firewall_status
  • firewall_system_check

Write 4 · Create, change, send or run things.

  • firewall_blacklist
  • firewall_record_delta
  • firewall_setup_ollama
  • firewall_setup_ollama_direct

Delete 1 · Delete, drop, revoke or wipe things.

  • firewall_remove_pattern

Secrets and settings it asks for

Other settings (environment variables or headers).

  • EMBEDDING_MODEL
  • FIREWALL_DATA_DIR
  • OLLAMA_URL
  • SIMILARITY_THRESHOLD

Network hosts it talks to 1

  • github.com · found in install command

Files it touches

  • Any path the agent passes to its tools

Tools (11)

Read from the source code; the running server may differ. Descriptions are the server’s own words; hidden characters are shown as [U+…].

  • firewall_blacklist

    Add a code pattern to the blacklist. Either file_path or code must be provided. Args: file_path: Path to code file to blacklist code: Code string to blacklist (alternative to file_path) reason: Why this pattern is dangerous severity: critical, high, medium, low language: Programming language (used if code is provided) Returns: {"status": "added", "pattern_id": str, "structure_hash": str}

  • firewall_check

    Check if code is safe to pass to execution tools like rlm_exec. Parses the code, normalizes to structural skeleton, embeds via Ollama, and checks similarity against blacklisted dangerous patterns. Args: file_path: Path to the code file to check Returns: { "allowed": bool, # True if safe to proceed "blocked": bool, # True if matched blacklist "similarity": float, # Similarity to closest blacklist match (0-1) "matched_pattern": str, # ID of matched pattern (if blocked) "reason": str, # Why it was blocked (if b…

  • firewall_check_code

    Check if code string is safe (without requiring a file). Args: code: The code to check language: Programming language (default: python) Returns: Same as firewall_check

  • firewall_list_patterns

    List patterns in the blacklist or delta collection. Args: collection_name: "blacklist" or "deltas" limit: Maximum number of patterns to return Returns: {"patterns": [...], "count": int}

  • firewall_ollama_status

    Check Ollama server status and embedding model availability. Args: force_refresh: Force refresh the cached status

  • firewall_record_delta

    Record a near-miss variant to help sharpen the classifier. Use this when code is similar to a blacklisted pattern but represents a legitimate use case, or when a new variant of a dangerous pattern is discovered. Args: file_path: Path to code file code: Code string (alternative to file_path) similar_to: Pattern ID this is similar to notes: Notes about why this is being recorded language: Programming language Returns: {"status": "recorded", "delta_id": str}

  • firewall_remove_pattern

    Remove a pattern from the blacklist or delta collection. Args: pattern_id: The pattern ID to remove collection_name: "blacklist" or "deltas" Returns: {"status": "removed", "pattern_id": str}

  • firewall_setup_ollama

    Install Ollama via Homebrew (macOS). Args: install: Install Ollama via Homebrew start_service: Start Ollama as a background service pull_model: Pull the embedding model (nomic-embed-text) model: Model to pull (default: nomic-embed-text)

  • firewall_setup_ollama_direct

    Install Ollama via direct download (macOS) - no Homebrew, no sudo. Args: install: Download and install Ollama to ~/Applications start_service: Start Ollama server in background pull_model: Pull the embedding model (nomic-embed-text) model: Model to pull (default: nomic-embed-text)

  • firewall_status

    Get firewall status and statistics. Returns: { "ollama_available": bool, "chromadb_available": bool, "tree_sitter_available": bool, "blacklist_count": int, "delta_count": int, "similarity_threshold": float, "near_miss_threshold": float, }

  • firewall_system_check

    Check if system meets requirements for Ollama embeddings. Verifies: macOS, Apple Silicon (M1/M2/M3/M4), RAM, Homebrew installed. Use before attempting Ollama setup.

Signals

Stars
0
Forks
0
Open issues
0
Weekly downloads
45
Last commit
Jan 19, 2026 (9 months ago)
Last release
Jan 19, 2026 (9 months ago)
Last package publish
Jan 19, 2026 (9 months ago)

From GitHub (fetched Oct 24, 2026) and the package registry.

Details

Registry name
io.github.egoughnour/code-firewall-mcp
Version
0.7.0
Auth
No auth
License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from egoughnour

Cite this page

Code Firewall MCP. Agent Mart. https://agentmart.dev/connectors/egoughnour-code-firewall-mcp (last updated 2026-10-24)