
gensecaihq/pfsense-mcp-server 是从 https://github.com/gensecaihq/pfsense-mcp-server. 导入的 MCP 服务器候选
概览
gensecaihq/pfsense-mcp-server 是从 https://github.com/gensecaihq/pfsense-mcp-server. 导入的 MCP 服务器候选
概述(AI 翻译)
用通俗易懂的英语管理您的pfSense防火墙——无论是Claude Desktop、Claude Code或任何MCP客户端。
332个工具遍布每个子系统·线路格式已通过pfSense REST API验证****每次变更都有安全护栏
pfSense MCP 服务器 将 Claude 桌面、Claude Code 及其他 MCP 客户端连接到你的 pfSense 防火墙。通过对话提问、诊断问题和更改配置。每一个破坏性操作都需要明确确认,服务器会记录可回滚的配置版本。
让AI改变生产防火墙只有在细节正确的情况下才安全,这正是工作所进行的:
- 一个合同测试层会将每个工具的请求格式与 pfSense REST API 模式进行检查。
- 每一项变更都经过多层护栏流程。
- CI 在 Python 3.11–3.13 上运行 661 次测试,以及端到端 MCP 协议测试。
最新版本:v1.1.0 ·更新日志
[!提示] 跳转到快速入门。设置大约只需两分钟,使用
uvx,而且你不需要克隆任何东西。如果这个项目对你有用,A ⭐可以帮助其他人找到它。
目录
为什么会这样 · 快速入门 ·
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
You: Block all traffic from 203.0.113.5 on WAN
Claude: ✓ created block rule → ✓ applied changes → rollback point: config revision 42
You: Why can't 192.168.1.50 reach the internet?
Claude: ran diagnostics → gateway WAN_DHCP is down, and a block rule on LAN matches this host
You: Add a WireGuard peer for my laptop and show me the config
Claude: ✓ created peer on tun_wg0 → here's the client config to import
pfSense MCP Server connects Claude Desktop, Claude Code, and any other MCP client to your pfSense firewall. Ask questions, diagnose issues, and change configuration through conversation. Every destructive action needs explicit confirmation, and the server records the config revision it can be rolled back to.
Letting an AI change a production firewall is only safe if the details are right, and that’s where the work went:
- A contract-test layer checks every tool’s request format against the pfSense REST API schema.
- Every change goes through a multi-layer guardrail pipeline.
- CI runs 661 tests on Python 3.11–3.13, plus an end-to-end MCP protocol test.
Latest release: v1.1.0 · Changelog
[!TIP] Jump to the Quick Start. Setup takes about two minutes with
uvx, and you don’t need to clone anything. If this project is useful to you, a ⭐ helps others find it.
Contents
Why this exists · Quick start · What you can do · Safety · Supported versions ·
安装
uvx --from git+https://github.com/gensecaihq/[email protected] pfsense-mcp-server配置
{
"mcpServers": {
"pfsense": {
"command": "uvx",
"args": ["--from", "git+https://github.com/gensecaihq/[email protected]", "pfsense-mcp-server"],
"env": {
"PFSENSE_URL": "https://192.168.1.1",
"AUTH_METHOD": "basic",
"PFSENSE_USERNAME": "admin",
"PFSENSE_PASSWORD": "your-password",
"PFSENSE_VERSION": "CE_2_8_1",
"PFSENSE_CA_FILE": "/path/to/pfsense-ca.pem"
}
}
}
}