Skip to content
MCP Servers
Skill

/pocketbase

Provision the PocketBase backend for the Hostinger Headless flow: create a headless website (type headless_pocketbase) or adopt the one onboarding made, then create its PocketBase backend with hosting_pocketbase_create-backend (database, visitor sign-in, file storage and

From plugin
api-mcp-server
17325 skills

Claude Code

$ npx -y skills add hostinger/api-mcp-server --skill pocketbase --agent claude-code

SKILL.md

pocketbase.SKILL.md
name: headless-step-provision-pocketbase
description: "Provision the PocketBase backend for the Hostinger Headless flow: create a headless website (type headless_pocketbase) or adopt the one onboarding made, then create its PocketBase backend with hosting_pocketbase_create-backend (database, visitor sign-in, file storage and realtime at /api, the owner's dashboard at /_/), save the one-time superuser password outside the deployable source, verify it answers, and record it in site.json. For any app, SPA or site whose visitors create its data."

headless-step-provision-pocketbase

Provision a **headless website with a PocketBase backend** for `<domain>` and prove it is ready. This is the backend for **any app, SPA or site whose visitors create the data it keeps** — accounts, bookings, comments, votes, scores, order requests, uploads, live messages. There is no CMS and no store engine here. PocketBase runs on the site's own domain: the REST and realtime API at `https://<domain>/api`, the owner's dashboard at `https://<domain>/_/`. Every other path is the frontend that the frontend step builds and the deploy step ships as a Node.js application. **Out:** `site.json` and `~/.hostinger/<domain>/.pocketbase/credentials.json`.

> **Not WordPress, not Ecommerce.** Never provision `headless_wordpress` / `headless_ecommerce` for a > PocketBase build, and never install WordPress at `/cms`: Hostinger refuses a PocketBase backend on a > headless WordPress site. The app owns every route except `/api` and `/_`.

All website operations below go through the Hostinger connector (`execute`). Read each operation's `inputSchema` (from `search`) before its first call.

> **Fire vs join (background provision).** For a **fresh site**, the fire half is Step 2's > `hosting_websites_create`; the join half is `wait.mjs setup`, then Step 3 (the backend), Step 4 and > Step 5. For an **adopted shell** (onboarding's `headless_empty` or `headless_pocketbase` site), the > fire half is Step 3's `hosting_pocketbase_create-backend` call plus saving its response — one call > that returns at once — and the join half is `wait.mjs pocketbase`, Step 4 and Step 5. Record > `provision.in_progress` after the fire and return to the prepare work (see the router `../SKILL.md`); > join when an instance-barrier step needs the backend, or immediately if the agent can't interleave. > A site whose backend Step 1 already finds means provision is done: record `provision.completed` and > adopt it.

Step 0 — Preflight

`search` with the query `pocketbase`. You need `hosting_pocketbase_create-backend`, `hosting_pocketbase_backend` and `hosting_pocketbase_set-superuser`; read each one's `inputSchema` before its first call. If any is missing, the connector is outdated: update it (connect's Phase 1 install), log an `issue` event and stop. **Never improvise a database in its place.**

Step 1 — Detect before you create (never provision twice)

Run these in order: the kind checks (points 1–3) decide whether this site may be used at all, before its setup status (point 4) says where to pick it up.

1. `hosting_websites_list { "domain": "<domain>" }` — substring filter, so **exact-match** the row's `domain`. If a row exists, note `username`, `order_id`, `website_type`. No exact row → nothing exists on this domain → **create fresh** (Step 2). 2. **A row of another kind** (`website_type` not `headless`: a WordPress or store site) → stop and tell the user — this domain already hosts something else. **Never create a second site.** 3. **A `headless` row.** `wordpress_installations_list { username, domain, ownership: "all" }` with a `directory: "cms"` row → stop and tell the user: this is a headless WordPress site, and Hostinger refuses PocketBase there. Otherwise `hosting_pocketbase_backend { username, domain }`:

  • a backend (any `state` but `missing`) → **adopt it**; Step 3 point 1 settles the credentials

(rotate the superuser when this build made the backend and the file is gone, otherwise ask).

  • 404, or `state: "missing"` → the shell is empty (onboarding's `headless_empty`, or a

`headless_pocketbase` site whose backend wasn't created yet): **adopt the site, don't call `hosting_websites_create`**, and create the backend on it in Step 3 with this row's `username`. **Only provision PocketBase for a `pocketbase` brief.** A `wordpress` or `ecommerce` brief belongs in those subfolders — never give it a PocketBase backend. 4. **Where to pick it up.** `hosting_websites_list-setups { "domain": "<domain>" }` — exact-match the row:

  • `completed`, or no row (it drops off after 24 h) → the website is ready → Step 3.
  • `running` → the setup is still going: at the join, `cd "$HOME" && node <skill>/wait.mjs setup <domain>`

before Step 3.

  • `failed` → tell the user and point them at hPanel; do **not** call `hosting_websites_create` again on your own.

Step 2 — Create (only when nothing exists)

1. Pick the plan: `hosting_orders_list { "statuses": ["active"] }`. One active order → use it; several → ask the user which. 2. Start the setup as a **headless website marked for PocketBase** (it installs nothing yet; Step 3 creates the backend):

   { "operation": "hosting_websites_create",
     "params": { "order_id": <order_id>, "type": "headless_pocketbase", "domain": "<domain>" } }

`domain` must be a **customer-owned** domain. For a temporary `*.hostingersite.com` subdomain, **omit `domain`** — the setup generates one itself and returns it in the response. Don't call a separate subdomain op to make one first: there's no need in this flow. The response then carries the generated domain: if it differs from the workspace directory name, move `~/.hostinger/<old>/` to `~/.hostinger/<new>/` (if `<new>/` already exists, stop and ask instead of moving into it), update the domain in `brief.md`, and tell the user the new domain. 3. Don't wait here. At the join, `cd "$H

Read more
@hostinger
Ships withapi-mcp-server

Model Context Protocol (MCP) server for Hostinger API.

Stars on GitHub

Momentum

stars in total
173
Star history of hostinger/api-mcp-server on GitHub, a chart by star-history.com

Other skills on api-mcp-server.

audit-hosting

audit-hosting

Audit a Hostinger web hosting account (Shared, Cloud and Agency plans) and report what needs attention: every plan and website,…

audit-vps

audit-vps

Audit every Hostinger VPS (KVM plans) on the account and report what needs attention: server state and failed actions, CPU,…

connect-domain

connect-domain

Connect a custom domain to a website on Hostinger web hosting (Shared, Cloud or Agency plans) end to end: attach the domain to…

deploy-to-vps

deploy-to-vps

Deploy an existing project to a Hostinger VPS (KVM plans): sets up SSH key access, applies a Hostinger firewall group, runs…

headless

headless

Orchestrator for the Hostinger Headless build flow — build and deploy a real website on the user's Hostinger account from a…

More skills from other plugins.

gitnexus-cli

gitnexus-cli

Use when the user needs to run GitNexus CLI commands like analyze/index a repo, check status, clean the index, generate a wiki,…

gitnexus11d49k
@abhigyanpatwari@abhigyanpatwariInstall Skill
fastmcp-client-cli

fastmcp-client-cli

Query and invoke tools on MCP servers using fastmcp list and fastmcp call. Use when you need to discover what tools a server…

fastmcp9d29k
@prefecthq@prefecthqInstall Skill
n8n-agents

n8n-agents

Design n8n AI agents the right way. Use when building or editing any @n8n/n8n-nodes-langchain.* AI node — an AI Agent, LLM chain,…

n8n-mcp9d23k
@czlonkowski@czlonkowskiInstall Skill
post-to-xhs

post-to-xhs

小红书内容发布技能。支持两种发布模式:(1) 上传图文模式 - 图片+短文;(2) 写长文模式 - 长篇文章+排版模板。 支持两种输入方式:用户提供完整内容和图片/图片URL,直接发布;或提供网页URL,自动提取内容和图片。…

@xpzouying@xpzouyingInstall Skill

Questions about pocketbase.

Which coding agents can use pocketbase?
pocketbase installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.