Docs cipi.yml Web panel API MCP Guides Compare GitHub Telegram channel
MCP · AI on your real apps

Ask production. Get real answers.

Connect Claude, Cursor or VS Code to your live Laravel apps and servers. Your assistant reads the actual logs, schema and deploy state, runs safe commands and deploys, through two MCP servers that run on your own machines, behind tokens and guardrails.

composer require cipi/agent
  • Self-hosted, free
  • Secrets redacted
  • Every deploy audited
AI Agent · cipi-shop
Is production healthy, and what's live?
healthdeploy_status
Healthy. Release 133, commit 9d1f3a5, deployed by the webhook 3 hours ago in 1m43s.
Checkout errors since lunch?
logs level=errorartisan migrate:status
InvoiceJob fails: column invoices.paid_at not found. Migration 2026_11_08_add_paid_at is pending.
Deploy main and note that Jane asked.
deploy actor=jane@acme.app
Queued, zero downtime. It's recorded in the audit trail with Jane as the requester.
  • 2MCP servers: per app and per server
  • 70+Server tools, plus a dozen in each app
  • 0Secrets in answers: redacted before they leave
  • $0Free, MIT, on your own servers

What you can ask

Real questions, real tools, real answers. Pick a server, then a situation. The tool calls in green are what the assistant actually runs.

AI Agent · cipi-shop
Checkout started failing after this morning's deploy. Find out why and tell me what to do.
deploy_statuslogs laravel level=error since=10:05artisan migrate:status
The 10:05 deploy (commit 9d1f3a5) went live, but 2026_11_23_add_vat_to_orders is pending: the release expects orders.vat_rate, which doesn't exist yet. 214 errors since 10:06, all in CheckoutController@store.
This app deploys with migrations turned off (--no-migrate). Run artisan migrate --force now, or redeploy with migrations on?

Example answers for a fictional shop. Your assistant's wording will differ; the tools and guardrails are the same.

Two servers, two scopes

Install one, or both. Each has its own endpoint, its own token and its own limits.

Agent MCP: inside one app

For debugging and shipping an app. Installed with the Cipi Agent package.

Endpoint
https://shop.example.com/cipi/mcp
Install
composer require cipi/agent
Tools
health app_info deploy_status logs db_schema db_query artisan env_check cipi_yml deploy anonymizer
Plus
panel_* tools with the PHP SDK: rollback, DB backup, audit
Docs: agent MCP

Server MCP: the whole server

For operating servers. Part of the Cipi API, on its own subdomain.

Endpoint
https://api.example.com/mcp
Install
cipi api api.example.com
Tools
Apps, deploys and audit, aliases, www, SSL, redirects, proxies, Node, databases, search, limits, disk, cipi.yml, PHP, services, logs, jobs
Token
One with mcp-access
Docs: server MCP

Guardrails before convenience

An assistant with access to production needs limits it can't talk its way around. These are enforced in code, on the server.

SQL guard

No DROP, ALTER, TRUNCATE, CREATE, GRANT, file I/O or multi-statements. Reads capped at 100 rows. Writes off with one variable.

Artisan guard

tinker, db:wipe, migrate:fresh, migrate:reset, long-running servers and more are blocked, and the list is extendable.

Redaction

Env assignments, bearer tokens, DSNs, APP_KEY and provider keys are masked in every answer. env_check returns names, never values.

Tokens and origins

A token per feature, rotated in one command. Browser requests from other hosts are refused. Disabled features answer 404.

Honest annotations

Every tool declares whether it reads, changes or destroys, so your client can ask before acting.

Audit trail

Deploys requested through MCP are recorded in the hash-chained ledger with who asked. The server MCP can't install software or drop data.

Connect in two minutes

Turn the agent's MCP on, create a token, paste one line into your client.

on the server, as the app user
$ php artisan cipi:service mcp --enable
$ php artisan cipi:generate-token mcp
$ php artisan cipi:mcp
# endpoint, tools, and ready-to-paste config
# for Cursor, VS Code, Claude Code and Claude Desktop
on your laptop
# Claude Code
$ claude mcp add --transport http cipi-shop \
    https://shop.example.com/cipi/mcp \
    --header "Authorization: Bearer $CIPI_MCP_TOKEN"

// Cursor: ~/.cursor/mcp.json
{ "mcpServers": { "cipi-shop": { "type": "http",
  "url": "https://shop.example.com/cipi/mcp",
  "headers": { "Authorization": "Bearer …" } } } }

What teams use it for

Triage in one question

"What broke after the last deploy?" The assistant reads the deploy, the logs and pending migrations together.

Guide

Safe data to experiment on

Ask for an anonymized dump: real structure and volume, fake people, delivered by an expiring link.

Guide

Config changes that pass review

The assistant drafts a cipi.yml change and validates it with the server's own rules before you commit.

cipi.yml

Spec to production

Specs, tests, a preview URL, then a deploy the assistant can watch and verify.

Guide

Server chores by chat

"Create a staging app from develop and issue the certificate." Through the server MCP, scoped by token.

Docs

On-call with context

Pair it with Telegram or Slack alerts: get the alert, ask the assistant what happened.

Guide

Questions

Which assistants work?

Any MCP client: Claude Code, Claude Desktop, Cursor, VS Code with Copilot, and others that support Streamable HTTP or a stdio bridge.

Can the assistant break production?

Destructive SQL (DROP, ALTER, TRUNCATE, GRANT), multi-statements and dangerous Artisan commands (migrate:fresh, db:wipe, tinker…) are blocked; database writes can be switched off; secrets are masked in every answer.

Does my data go to Cipi?

No. Both MCP servers run on your own server. What your assistant's vendor sees is what you ask it and what the tools return, already redacted.

Do I need both servers?

No. The agent's MCP is enough to debug and deploy an app. Add the server MCP when you want the assistant to create apps, issue certificates or manage databases.

What's the difference between the App MCP and the Server MCP?

The App MCP lives inside one Laravel app (installed with composer require cipi/agent) and sees that app: its logs, schema, data, Artisan and deploys. The Server MCP is part of the Cipi API and sees the whole server: every app, domains, certificates, databases, backups, PHP. See MCP servers and the API.

Can I make the assistant read-only?

Yes. Set CIPI_MCP_DB_WRITE=false for the App MCP, and give the Server MCP a token without write abilities. Destructive host operations aren't available through MCP at all.

Will it run a migration or a deploy without asking?

Every tool declares whether it reads, changes or destroys. Clients such as Claude Code and Cursor use that to ask you before running anything that changes data. Deploys are also recorded in the audit ledger with who asked.

Does the assistant see passwords or API keys?

No. env_check returns variable names only, and every tool's output is redacted before it leaves the server: env values, bearer tokens, DSNs, APP_KEY and provider keys are masked.

How do I revoke access?

Rotate the app token with php artisan cipi:generate-token mcp, or revoke the server token with cipi api token revoke. The old token stops working immediately.

Is it safe to point it at production?

That's what it's built for, with guards enforced on the server. Start read-only, add write access when you trust the workflow, and give it anonymized data when it needs to experiment.

Do I need a paid AI plan?

You need an MCP-capable client. Cipi's MCP servers are free and self-hosted; what your AI client costs depends on its vendor.