PHPackages                             cipi/api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. cipi/api

ActiveLibrary[API Development](/categories/api)

cipi/api
========

Cipi API — REST API, MCP server, and Swagger docs for the Cipi server control panel

1.6.1(1mo ago)00MITPHPPHP ^8.3

Since Mar 5Pushed 1mo agoCompare

[ Source](https://github.com/cipi-sh/api)[ Packagist](https://packagist.org/packages/cipi/api)[ RSS](/packages/cipi-api/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (2)Versions (7)Used By (0)

Cipi API
========

[](#cipi-api)

Laravel package that exposes a REST API, an MCP server, and Swagger documentation for the [Cipi](https://cipi.sh) server control panel.

Requirements
------------

[](#requirements)

- PHP 8.2+
- Laravel 12+

Installation
------------

[](#installation)

```
composer require cipi/api
```

Publish the configuration and assets:

```
php artisan vendor:publish --tag=cipi-config
php artisan vendor:publish --tag=cipi-assets
php artisan migrate
```

Seed the API user and create a token:

```
php artisan cipi:seed-api-user
php artisan cipi:token-create
```

Features
--------

[](#features)

- **REST API** — CRUD for apps, aliases, databases, SSL, and async jobs (`/api/*`), secured with Laravel Sanctum and token abilities. App create supports optional Git for **custom** apps (SFTP-only), matching Cipi 4.4.4+.
- **MCP Server** — Model Context Protocol endpoint at `/mcp` for AI-powered integrations.
- **Swagger Docs** — Interactive API reference available at `/docs`.
- **Artisan Commands** — `cipi:token-create`, `cipi:token-list`, `cipi:token-revoke`.

MCP Integration
---------------

[](#mcp-integration)

The MCP server is exposed at `/mcp` using [Streamable HTTP](https://modelcontextprotocol.io/) transport and is secured with the same Sanctum token used by the REST API (the token must have the `mcp-access` ability).

Generate a token if you haven't already:

```
php artisan cipi:token-create
```

Replace `https://your-server.com` and `YOUR_TOKEN` in the examples below with your actual Cipi host and token.

### VS Code

[](#vs-code)

Create (or edit) `.vscode/mcp.json` in your workspace:

```
{
  "inputs": [
    {
      "type": "promptString",
      "id": "cipi-token",
      "description": "Cipi API Token",
      "password": true
    }
  ],
  "servers": {
    "cipi-api": {
      "type": "http",
      "url": "https://your-server.com/mcp",
      "headers": {
        "Authorization": "Bearer ${input:cipi-token}"
      }
    }
  }
}
```

> Restart VS Code after adding the configuration. The token will be requested on first connection and securely stored.

### Cursor

[](#cursor)

Create (or edit) `.cursor/mcp.json` in your project root:

```
{
  "mcpServers": {
    "cipi-api": {
      "url": "https://your-server.com/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_TOKEN"
      }
    }
  }
}
```

> Restart Cursor after adding the configuration (Cursor v0.40+).

### Claude Code

[](#claude-code)

Run the following command from your terminal:

```
claude mcp add --transport http cipi-api https://your-server.com/mcp \
  --header "Authorization: Bearer YOUR_TOKEN"
```

Verify the server is connected:

```
claude mcp list
```

### Available MCP Tools

[](#available-mcp-tools)

Once connected, the following tools are available to the AI agent:

ToolDescription`AppList`List all apps with domains, PHP versions, and aliases`AppShow`Show details of a specific app`AppCreate`Create a new app (`custom` for non-Laravel apps; optional Git for custom SFTP-only sites, Cipi 4.4.4+)`AppEdit`Edit an existing app`AppDelete`Delete an app`AppDeploy`Deploy an app`AppDeployRollback`Rollback the last deploy`AppDeployUnlock`Unlock a stuck deploy`AliasList`List aliases for an app`AliasAdd`Add an alias to an app`AliasRemove`Remove an alias from an app`DbList`List all databases with their sizes`DbCreate`Create a new database with auto-generated credentials`DbDelete`Permanently delete a database`DbBackup`Create a compressed backup of a database`DbRestore`Restore a database from a backup file`DbPassword`Regenerate database password and update `.env``SslInstall`Install an SSL certificate for an appConfiguration
-------------

[](#configuration)

This package is automatically installed and configured by `cipi api`. No manual setup is needed.

The `CIPI_APPS_JSON` env variable defaults to `/etc/cipi/apps.json`.

License
-------

[](#license)

MIT

###  Health Score

41

—

FairBetter than 88% of packages

Maintenance96

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2 days

Total

6

Last Release

50d ago

PHP version history (2 changes)1.0.0PHP ^8.2

1.5PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/449a18cf58263a03f804b68077a817e79b50bc24a6764e67242a3bcad337acdd?d=identicon)[cipi](/maintainers/cipi)

---

Top Contributors

[![andreapollastri](https://avatars.githubusercontent.com/u/18210420?v=4)](https://github.com/andreapollastri "andreapollastri (16 commits)")

---

Tags

apilaravelmcpserverdeploycipi

### Embed Badge

![Health badge](/badges/cipi-api/health.svg)

```
[![Health](https://phpackages.com/badges/cipi-api/health.svg)](https://phpackages.com/packages/cipi-api)
```

###  Alternatives

[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

2.9k34.0M111](/packages/darkaonline-l5-swagger)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k12.2M45](/packages/knuckleswtf-scribe)[nickurt/laravel-postcodeapi

Universal PostcodeApi for Laravel 11.x/12.x/13.x

97221.2k](/packages/nickurt-laravel-postcodeapi)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
