Skip to main content
Glama
alshawwaf

PolicyPilot MCP Server

by alshawwaf

🧭 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


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.


Related MCP server: Router-MCP

🧠 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 analysis β€” analyze_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

F
license - not found
-
quality - not tested
B
maintenance

Maintenance

–Maintainers
–Response time
–Release cycle
–Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/alshawwaf/PolicyPilot'

If you have feedback or need assistance with the MCP directory API, please join our Discord server