API and MCP
Tokens
Section titled “Tokens”In Account → API tokens (Conta → Tokens de API), create a token with a name, a role (admin, dev or read-only (leitura)) and an expiration (up to 2 years). The token is shown only once. It acts with the permissions of the chosen role, and everything goes to the audit log.
REST API
Section titled “REST API”Base: https://<your-panel>/api/v1. The OpenAPI specification is at /api/v1/openapi.json.
curl -H "Authorization: Bearer $DEPANEL_TOKEN" https://<your-panel>/api/v1/projetosAvailable operations: list and view projects, services, deployments, machines, containers, domains, monitors and incidents; deploy, redo and cancel deployments; start, stop and restart services.
The panel has an MCP server at https://<your-panel>/mcp (HTTP). Connect Claude, Cursor or any
MCP client using the same token:
{ "mcpServers": { "depanel": { "type": "http", "url": "https://<your-panel>/mcp", "headers": { "Authorization": "Bearer dpk_..." } } }}The MCP tools are the same operations as the API.