AI assistants and the API
Connect an AI assistant to PrintCtrl over MCP, give your own scripts an API client, and send alerts to a webhook.
Docs: AI assistants and the API
AI assistants (MCP)
PrintCtrl has an MCP server. Connect Claude, ChatGPT, Cursor, VS Code or another MCP client to it, sign in with your PrintCtrl account, and the assistant can do what you can do in the dashboard, within what your role allows. Every call it makes is in the audit log.
Ask it things like “which printers at Redgate Legal are offline?”, “what’s low on toner?”, “deploy the second-floor copier to LON-DESK-14” or “add a group called Surgery and move BRS-SURGERY-1 into it”.
Server URL: https://api.printctrl.io/mcp
Turn MCP on
MCP is off for a new account. An administrator turns it on once for everyone.
Open Company → Integrations and select Set up beside MCP, under Developer.
Under Access, turn on On for this account.
There’s no key to copy. The first time an assistant connects, a browser window opens, you sign in to PrintCtrl and select Allow.
Connect an assistant
Under Connect an assistant, the MCP page has a tab for each assistant with the same steps and a copy button.
| Assistant | How to connect |
|---|---|
| Claude | Web, desktop or mobile: Settings → Connectors → Add custom connector. Name it PrintCtrl, paste the server URL, then select Connect and sign in. |
| Claude Code | Run claude mcp add --transport http printctrl https://api.printctrl.io/mcp, then run /mcp, choose printctrl and sign in. |
| ChatGPT | In developer mode, add a custom MCP server with the server URL and OAuth authentication, then sign in. |
| Cursor | Select Add to Cursor on the MCP page, or add "printctrl": { "url": "https://api.printctrl.io/mcp" } under mcpServers in ~/.cursor/mcp.json. |
| VS Code | Select Install in VS Code on the MCP page, or add "printctrl": { "type": "http", "url": "https://api.printctrl.io/mcp" } under servers in your user mcp.json. |
| Other coding agents | The Prompt tab has a paragraph to paste into the agent. It adds the server, then you sign in. |
| Scripts | Send an API client to the MCP endpoint as a bearer token: Authorization: Bearer pck_…:pcs_…. The client’s access level applies. |
What an assistant can do
An assistant works as you, so it can do what your role lets you do in the dashboard. Common questions and actions have their own tools. Everything else, such as groups, print profiles, drivers, customers, monitoring settings, alert recipients, the team, floor plans and branding, goes through three catalog tools that cover every dashboard action.
| Tools | Role needed | What they do |
|---|---|---|
| fleet_ | Any | Counts, plus offline devices, printers not responding, low supplies and failed deployments. |
| list_ | Any | Customers and their settings. |
| list_ | Any | Computers running the agent. |
| list_ | Any | Printers, with their monitoring state. |
| list_ | Any | Toner and ink levels. |
| list_ | Any | Managed printers, and where each one is installed, pending or failed. |
| list_ | Any | Open and resolved alerts. |
| search_ | Any | Who did what, and when. |
| deploy_ | Editor | Install a managed printer for a customer, group or device, or retry failed installs. |
| printer_ | Editor | Print a test page, pause or resume a printer’s queue, or clear it. |
| device_ | Editor or Administrator | Run printer discovery on a device (Editor). Restart, update or uninstall the agent (Administrator). |
| find_ | Any | Find the dashboard action for what you asked, in your words. |
| read_ | Any | Look something up with that action. Reads only. |
| run_ | Your role decides | Make a change with that action, exactly as the dashboard would, including removing things. |
The catalog actions are the REST API routes the dashboard uses, and PrintCtrl checks your role on each one as it does in the dashboard. Tools that change things are marked as such, so assistants ask before using them.
Some actions stay in the dashboard whatever your role: closing the account, changing your password or two-factor, resetting someone else’s two-factor, creating, rotating or revoking API clients, cancelling or resuming the subscription, and the MCP settings and connections on this page. To subscribe, an assistant gives you a Stripe link to open. It can’t pay for you.
Who sees what
- Each connection belongs to one person in one account and has that person’s role.
- Every call shows in the audit log as the person “via” the assistant, for example
jordan@northgate-it.example via Claude. - Administrators see every connected assistant under Connected assistants on the MCP page, with the person, when it connected and when it was last used, and can Revoke any of them. Turning off On for this account stops all of them at once.
- Printer names, hostnames and comments come from the computers you manage, so PrintCtrl tells assistants to treat them as data, not instructions.
What an assistant reads goes to the AI provider you connected it to. See section 7.5 of the DPA.
API clients
An API client is a client ID and secret for your own scripts, a PSA or an RMM. It works with the REST API and the MCP server, and acts with the access level you give it, not as a person.
Open Company → Integrations, select Set up (or Manage) beside API, then select Create API client.
Give it a name that says what uses it, such as
PSA ticket sync, and choose its access:Access Can Read only View everything. Edit Also change printers, print profiles, groups and deployments. Read and write Everything an administrator can do through the API. Select Create, then copy the Client ID and Client secret. The secret is shown once.
Send both with HTTP Basic authentication on every request:
curl -u pck_…:pcs_… https://api.printctrl.io/api/v1/customers
From a client’s menu, Rotate secret issues a new secret and stops the old one, and Revoke client stops the client for good. Turn on Email admins when a client is created, rotated or revoked, or keeps failing to sign in to hear about changes.
Some things are for signed-in people only, such as the team, two-factor and closing the account. The API reference lists what a client can call.
Webhooks
Alerts can go to a webhook as well as email, so an offline printer can open a ticket in your PSA or post to a chat channel. PrintCtrl posts each alert as JSON, signed with HMAC-SHA256 in the X-PrintCtrl-Signature header (t=<unix seconds>,v1=<hex>).
Open Company → Integrations and select Set up beside Webhook, under Notifications.
Enter the URL and select Save. Copy the Signing secret, shown once: your endpoint uses it to check each request. Send test posts a test event to the URL.
Make sure alerting is on and choose which alerts to send under Alerts → Settings. See Alerts.