Code Firewall MCP
Structural similarity-based code filter. Stops malicious code pattern reaching execution…
- Pricing
- Open source
- Runs
- Locally
- Version
- 0.7.0
- Listing updated
- 5 days ago
About Code Firewall MCP
Code Firewall MCP is an open-source MCP server. It runs locally on your machine and is started by your AI client.
Structural similarity-based code filter. Stops malicious code pattern reaching execution tools.
Install
Run in a terminal
claude mcp add code-firewall-mcp -- uvx code-firewall-mcpAdd to claude_desktop_config.json
{
"mcpServers": {
"code-firewall-mcp": {
"command": "uvx",
"args": [
"code-firewall-mcp"
]
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"code-firewall-mcp": {
"command": "uvx",
"args": [
"code-firewall-mcp"
]
}
}
}Add to .vscode/mcp.json
{
"servers": {
"code-firewall-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"code-firewall-mcp"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"code-firewall-mcp": {
"command": "uvx",
"args": [
"code-firewall-mcp"
]
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"code-firewall-mcp": {
"command": "uvx",
"args": [
"code-firewall-mcp"
]
}
}
}Using several servers? Build one config file with the MCP config generator.
Configuration
FIREWALL_DATA_DIRDirectory for storing ChromaDB dataOLLAMA_URLURL for Ollama server (default: http://localhost:11434)EMBEDDING_MODELOllama embedding model (default: nomic-embed-text)SIMILARITY_THRESHOLDBlock threshold 0-1 (default: 0.85)FIREWALL_DATA_DIRDirectory for storing ChromaDB dataOLLAMA_URLURL for Ollama server (default: http://localhost:11434)EMBEDDING_MODELOllama embedding model (default: nomic-embed-text)SIMILARITY_THRESHOLDBlock threshold 0-1 (default: 0.85)
Pricing
Open source
Code Firewall MCP FAQ
Is Code Firewall MCP free?
Yes. Code Firewall MCP is open source, so you can use and self-host it for free.
How do I add Code Firewall MCP to Claude Code?
Run this command in your terminal: claude mcp add code-firewall-mcp -- uvx code-firewall-mcp
Where this comes from
- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.