PolicyPilot MCP Server

PolicyPilot MCP Server

Enables LLM agents to automate Check Point firewall rule changes by translating natural language access requests into correct, first-match-safe policy updates via MCP tools.

Category
访问服务器

README

<div align="center">

🧭 PolicyPilot

Agentic Check Point access automation

Turn a plain-language access request into the correct, first-match-safe policy change — applied to a real R82.10 management server or pushed straight to the gateway as a dynamic layer — and drivable by an LLM agent over MCP.

Version Validated Tests MCP tools Python TLS License

</div>


PolicyPilot connects to a real Check Point R82.10 Management Server (and/or gateways) and does exactly what its API account is permitted to — least privilege. You describe the access you want; the engine computes the minimal change, places it first-match-safe, previews it, and applies it on approval — with one-click rollback. No more hand-editing rulebases or guessing where a rule belongs.

💡 One sentence → the right rule. "Allow 10.1.1.50 to the DNS servers and publish" becomes a correct Accept rule on your SMS — reusing existing objects, placed above the right deny, and published. That's the whole pitch.


🛤 Two automation rails, one engine

The same decision brain drives two ways to apply a change — both fully agent-drivable over the same /mcp endpoint (21 tools total, mcp-scope key as Authorization: Bearer):

Rail What it does How Publish gate
Management access policy — SMS Create / widen an access rule in the policy rulebase, then publish. Management Web API (web_api) mcp_allow_publish
Dynamic Layers — Gateway Author an access rulebase and push it straight to the gateway as a dynamic layer, out-of-band of SmartConsole. Gaia API (set-dynamic-content, sk182252) mcp_allow_layer_push

The two rails carry separate publish gates — enabling agent writes to the SMS does not enable a live gateway push, and vice versa. dry-run and the built-in mock target are always allowed. The SMS engine deliberately treats the dynamic layer as out-of-band (skips it from matching), so the two rails are complementary halves of "automate access," never overlapping.


🧠 The decision engine

  • Reuse / widen / create — finds whether the access already exists (no-op), can be granted by widening an existing rule, or needs a new rule.
  • First-match-safe placement — inserts above the right deny, below the right stealth/cleanup, in the right section — so the new rule is neither shadowed nor shadowing.
  • Every access-rule column — action (Accept / Drop / Reject / Ask / Inform / Apply Layer) plus content (data-types), time, install-on (gateways) and VPN (communities).
  • Reuse-only object resolution — resolves a source/destination/service to an existing Check Point object by dedicated commands; never blindly creates duplicates.
  • One-click rollback — every published change records its inverse op-list; revert restores the prior state.
  • Provably conservative analysisanalyze_policy only flags a rule as shadowed when it can prove it, and abstains on opaque/application cells rather than guessing.

See the access-automation white paper for how it reasons about a rulebase.


🎛 Drive it four ways

  • 🤖 MCP server — both rails as 21 tools an LLM agent (n8n, Claude Desktop, Cursor, VS Code, any MCP client) calls over /mcp. Two ready-made n8n workflows ship in docs/: management access agent and dynamic-layer agent, both connecting to the same /mcp with an mcp-scope key. With the Autopilot preset, one sentence ending "…and publish the changes" resolves, applies and publishes in a single turn (management rail). In-app onboarding at /mcp-guide.
  • 🌐 REST API — the same brain at /dbapi/v1 for any HTTP client (api-scope key auth), mirroring the tools across both rails (incl. /gateways, /dynamic-layers, /dynamic-layers/push), auto-documented in the portal OpenAPI (/docs).
  • 🎫 Ticket webhook — a ServiceNow / Jira / any webhook becomes a Check Point rule, with optional write-back. Authenticated with the X-PolicyPilot-Token header.
  • 🖥 The portal UI — review a decision, see the placement, apply on approval — plus a live API explorer (Swagger) at /api-explorer for testing Management / Gaia API calls directly.

📓 The MCP-agent QA battery is a standing set of one-sentence "…and publish" prompts that exercise every tool, outcome, and column — the demo script and the regression check in one.


🚀 Quick start (local dev)

python3 -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
export PILOT_ADMIN_PASSWORD='<choose-a-strong-password>'   # else a random one is printed at startup
export PILOT_SESSION_SECRET=$(openssl rand -base64 32)
uvicorn app.main:app --reload

Open http://localhost:8000, sign in as admin, then:

  1. Management Servers → add your R82.10 SMS (host + API account).
  2. Access automation → describe an access request → preview the decision (no-op / widen / create) → apply.
  3. MCP for agents (/mcp-guide) → mint an mcp-scope key and connect n8n / your agent.

The MCP protocol layer needs the official mcp SDK (installed from your Check Point Artifactory, not public PyPI). Until it's present the /mcp endpoint is simply absent — the rest of PolicyPilot is unaffected.


☁️ Deploy (Dokploy)

Build from the Dockerfile, expose port 8000, add a domain (Traefik handles Let's Encrypt TLS), mount /data for the SQLite DB, and set the PILOT_* env vars (PILOT_SESSION_SECRET, PILOT_ENCRYPTION_KEY, PILOT_BASE_URL, PILOT_ADMIN_PASSWORD). See DEPLOY.md.


🔒 Security / org policy

  • Portal endpoints require login; machine access uses named, scoped (mcp / webhook / api), revocable API keys with optional expiry (shown once, SHA-256-hashed at rest).
  • TLS to the SMS/gateway is always verified. Self-signed lab boxes are handled by cert pinning (trust-on-first-use or a pasted cert) — verification is never disabled.
  • Saved management / gateway credentials are AES-256-GCM encrypted at rest (PILOT_ENCRYPTION_KEY).
  • Publish is opt-in — an agent cannot reach live policy unless an admin enables it; otherwise applies are dry-runs (validate + discard). Parameterized queries throughout; defensive HTTP headers (anti-clickjacking, nosniff, HSTS).
  • Use a least-privilege API account on the SMS — PolicyPilot only does what it's permitted to.

✅ Tests

pip install pytest && pytest -q          # 626 tests, all green

📚 More

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选