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.

Updated

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.

  1. Open Company → Integrations and select Set up beside MCP, under Developer.

  2. Under Access, turn on On for this account.

    The MCP page: On for this account turned on, the server URL, setup tabs for each assistant, and Claude listed under Connected assistants. The MCP page: On for this account turned on, the server URL, setup tabs for each assistant, and Claude listed under Connected assistants.

There’s no key to copy. The first time an assistant connects, a browser window opens, you sign in to PrintCtrl and select Allow.

The PrintCtrl sign-in window an assistant opens, asking whether to allow Claude to use PrintCtrl as you. The PrintCtrl sign-in window an assistant opens, asking whether to allow Claude to use PrintCtrl as you.

Connect an assistant

Under Connect an assistant, the MCP page has a tab for each assistant with the same steps and a copy button.

AssistantHow to connect
ClaudeWeb, desktop or mobile: Settings → Connectors → Add custom connector. Name it PrintCtrl, paste the server URL, then select Connect and sign in.
Claude CodeRun claude mcp add --transport http printctrl https://api.printctrl.io/mcp, then run /mcp, choose printctrl and sign in.
ChatGPTIn developer mode, add a custom MCP server with the server URL and OAuth authentication, then sign in.
CursorSelect Add to Cursor on the MCP page, or add "printctrl": { "url": "https://api.printctrl.io/mcp" } under mcpServers in ~/.cursor/mcp.json.
VS CodeSelect 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 agentsThe Prompt tab has a paragraph to paste into the agent. It adds the server, then you sign in.
ScriptsSend 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.

ToolsRole neededWhat they do
fleet_summaryAnyCounts, plus offline devices, printers not responding, low supplies and failed deployments.
list_customers, get_customerAnyCustomers and their settings.
list_devices, get_deviceAnyComputers running the agent.
list_printers, get_printerAnyPrinters, with their monitoring state.
list_suppliesAnyToner and ink levels.
list_managed_printers, get_deployment_statusAnyManaged printers, and where each one is installed, pending or failed.
list_alertsAnyOpen and resolved alerts.
search_audit_logAnyWho did what, and when.
deploy_managed_printer, retry_failed_deploymentEditorInstall a managed printer for a customer, group or device, or retry failed installs.
printer_actionEditorPrint a test page, pause or resume a printer’s queue, or clear it.
device_actionEditor or AdministratorRun printer discovery on a device (Editor). Restart, update or uninstall the agent (Administrator).
find_operationAnyFind the dashboard action for what you asked, in your words.
read_operationAnyLook something up with that action. Reads only.
run_operationYour role decidesMake 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.
The audit log filtered to Claude: a fleet summary, supply levels, a deployment’s status, a retried install and an audit search, each recorded as the person via Claude. The audit log filtered to Claude: a fleet summary, supply levels, a deployment’s status, a retried install and an audit search, each recorded as the person via Claude.

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.

  1. Open Company → Integrations, select Set up (or Manage) beside API, then select Create API client.

  2. Give it a name that says what uses it, such as PSA ticket sync, and choose its access:

    AccessCan
    Read onlyView everything.
    EditAlso change printers, print profiles, groups and deployments.
    Read and writeEverything an administrator can do through the API.
  3. Select Create, then copy the Client ID and Client secret. The secret is shown once.

    The API page with three clients: Nightly inventory export (read only), PSA ticket sync (read and write) and a revoked Old RMM script. The API page with three clients: Nightly inventory export (read only), PSA ticket sync (read and write) and a revoked Old RMM script.

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>).

  1. Open Company → Integrations and select Set up beside Webhook, under Notifications.

  2. 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.

  3. Make sure alerting is on and choose which alerts to send under Alerts → Settings. See Alerts.