plsk.org documentationAPICabinetplsk.org

Example - MCP session

Updated 2026-11-08

Connect a client

Claude Code:

claude mcp add --transport http plsk https://api.plsk.org/mcp

Authorization is completed in the browser with /mcp in the client.

Codex, in the configuration file:

[mcp_servers.plsk]
url = "https://api.plsk.org/mcp"
codex mcp login plsk

Create a subscription and publish a page

Step Tool Parameters
1 create_subscription name: demo, idempotency_key: demo-1
2 get_subscription id from step 1; repeat until status is ready
3 site_api method: GET, path: /domains; the response lists the domain id
4 site_api method: PUT, path: /domains/<id>/fs/content, query: {"path": "index.html"}, body: {"encoding": "plain", "content": "<h1>Hello</h1>"}
5 HTTP client GET https://<hostname>/
6 delete_subscription id

Deletion completes in approximately 2 minutes.