code firewall mcp for Cursor
io.github.egoughnour/code-firewall-mcp
Structural similarity-based code filter. Stops malicious code pattern reaching execution tools.
client:Cursor
transport:stdio
runtime:pypi
Install code firewall mcp in Cursor
~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json
{
"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>"
}
}
}
}
Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs