“How many iSkitch licenses did we sell this week?” “Resend the key to this customer, they say it never arrived.” “Free the old device on this license.” These are everyday support questions and tasks. Since this week we can do them in plain language, from the AI assistant we already use for coding, without opening the dashboard.
We built it as an MCP (Model Context Protocol) server that lives in the same Cloudflare Worker that sells and activates the licenses. This post explains how it works and, above all, what we did so it isn’t an open door to customer data.
MCP in two lines
MCP is an open protocol that lets an AI assistant use external tools. The server tells it which tools it has and what parameters they take; the assistant decides when to use them and with what data, and the server does the work. The assistant never gets into the database: it can only do what the tools allow.
The tools are the API, one by one
The MCP server has no logic of its own. Its tools are the 17 operations of the admin API, with the same names: search_licenses, get_license, sales_summary, resend_key, release_device, revoke_license… And those are, in turn, the same functions the dashboard uses. Three doors, one way of doing things.
That has an upside we hadn’t planned for: when the assistant does something, it shows up in the dashboard history just as if we had done it by hand, with the name of the token used.
Each token sees only its tools
To connect, the assistant uses one of the API tokens, and the token’s permissions decide which tools it sees. With a read-only token, the assistant doesn’t even know “revoke license” exists: it isn’t in its list. That’s safer than showing it the tool and hoping it won’t use it.
Tools that change something are marked as write tools, and the irreversible ones (revoke, move to another email) also as destructive, with a required confirmation. MCP clients rely on those hints to ask for your permission before running them. If the assistant picks the wrong license, you find out before anything happens.
The same two layers as the API
The MCP server sits behind the same things as the API:
- Cloudflare Access with a service token: without it, Cloudflare cuts the request off before it reaches the Worker.
- Our own token, with its permissions, expiry, allowed IPs and a limit of 30 requests per minute.
On top of that, the server rejects requests that arrive with another site’s Origin header. The MCP specification asks for this to stop a malicious page from using your browser to talk to a local or internal server.
What data reaches the assistant
This is the part we thought about the most. Whatever a tool returns goes to the provider of the assistant you use. If you ask for a customer’s licenses, that answer leaves your Worker and goes to their servers.
That’s why, by default, the token doesn’t carry the personal-data permission: the assistant sees emails masked (a***@example.com) and doesn’t see IPs, device names or the technical details of activations. Support almost never needs more. If one day you do, you create a token with that permission, knowing what it implies. It’s your decision as the controller of that data, not ours.
How you connect it
The server runs over HTTP, without sessions: every request stands on its own. To connect it you need an MCP client that lets you add headers to the connection, because you have to pass our token and the two Cloudflare credentials. The most widely used desktop and command-line clients allow it, directly or through the mcp-remote bridge.
We tested it first in the test environment and then in production. The first real question was “list the iSkitch licenses”, and there they were, with the emails masked as they should be.
Update (November 9, 2026): web assistants that only support OAuth can now connect. We use Cloudflare Zero Trust sign-in as the OAuth provider, on a separate domain that only serves the MCP: you sign in with your account, your access policies apply and each person gets their own permissions in the admin. What the assistant does shows up in the history with your email. We tested it with a claude.ai connector, first in testing and then in production.
What it doesn’t do yet
One thing, and it’s on the list:
- The new protocol version. We implement the MCP generation that starts with the
initializehandshake, which is what most clients use today. Clients that already speak the July 2026 specification get the response that specification expects and fall back to the previous one on their own. When they stop supporting it, it’s time to update.
For OwnLicense
On the OwnLicense MCP page we describe the three MCP levels we want to offer. This is the third one, administration in your own Worker, and it already works in our apps. If you sell software with licenses and would like to do support this way, join the waitlist.