Skip to content

Help centerAlerts and AI assistant

How do I use Qanary from my AI assistant (MCP)?

Create a token in Qanary, on the “MCP” page, then add it to claude.ai, Claude Code, Cursor, or VS Code: your assistant reads, runs, and creates your tests.

Updated Text versionOpen inChatGPT (new tab)Claude (new tab)Perplexity (new tab)

Qanary has an MCP server, at https://mcp.qanary.dev. A compatible AI assistant (claude.ai, Claude Code, Cursor, VS Code, and others) can read your projects, tests, and results there, run tests, and create new ones by driving a Qanary browser. It connects with a personal token (a kind of password just for your assistant) that you create yourself in Qanary.

What is MCP?

MCP (Model Context Protocol) is a standard that lets an AI assistant use an outside tool. Qanary’s MCP server gives your assistant access to your Qanary projects, within your role and the token’s scopes. You ask in your own words (“Which tests failed last night?”), and your assistant calls Qanary to answer.

Which assistants can connect to Qanary?

Qanary works with any assistant that lets you add an MCP server protected by a token:

ChatGPT doesn’t work with Qanary yet: its connectors require an OAuth sign-in, which Qanary doesn’t offer today.

How do I create a token in Qanary?

  1. In Qanary, open “Settings,” then “MCP” in the “Account” tab. To find “Settings,” see How do I change my account’s language, theme, or timezone?.
  2. Under “Access tokens,” click “New token.”
  3. Give it a “Name” that says where it’s used, for example claude.ai or Claude Code laptop.
  4. Choose “Expires in”: 30, 90, or 365 days (90 by default).
  5. Choose the “Scopes.” “Read,” “Run,” and “Author” are checked by default. Always keep “Read”: without it, your assistant can’t find your projects or your tests.
  6. Click “Create token.”

Expected result: the “Token created” window shows three fields, each with a “Copy” button:

  • the “Token,” which starts with qanary_pat_;
  • the “Authorization header value, for claude.ai and other hosts,” that is, Bearer followed by the token;
  • the “Add it to Claude Code” command.

Qanary shows the token only once: “Copy it now: you won’t be able to see it again.” If you lose it, create another one.

Each user can have at most 10 active tokens. The token list shows each token’s scopes, when it was “Last used,” and when it expires; an expired token stays in the list, marked “Expired,” until you revoke it.

What does each scope of a Qanary token allow?

  • “Read”: list and read projects, folders, tests, blocks, and results; follow a run (its state, the failed step, and why it failed); get the screenshot of a step. Sensitive values stay masked. Everything else relies on this scope: always keep it.
  • “Run”: run 1 to 10 tests at a time, on their starting URL, and cancel a run in progress.
  • “Author”: explore a site, record tests and blocks, create folders, and delete tests. See How do I create a test by asking my AI assistant?.

A token acts on your behalf, in every project you can access, and never beyond your role in Qanary. A token’s scopes can’t be changed after it’s created: to add a scope, create a new token and revoke the old one.

To follow your results and rerun tests, “Read” and “Run” are enough. Add “Author” when you want your assistant to create or delete tests.

What are Qanary’s guides?

A guide is the method Qanary recommends to your assistant for a kind of task. Qanary gives your assistant three, which it loads on its own when your request calls for it; there’s nothing to install:

  • “Write a test”: record a journey you describe, check what could break, and review its first run;
  • “Cover a site”: explore a site or a page, propose the scenarios to test, then record them once you’ve approved them;
  • “Check a change”: run the tests a change touches, tell a regression from an outdated test, and repair the outdated tests.

Example requests for each guide are in What can I ask my AI assistant connected to Qanary?.

What can’t your assistant do in Qanary?

Through MCP, your assistant can’t:

  • edit an existing test: to repair a test, it records a new one in its place;
  • run or change a project’s plan: it runs tests, in batches of 10 at most;
  • run a test on a URL other than its starting URL (your staging site instead of production, for example);
  • open an address that’s only reachable from your computer or your network (localhost, VPN, internal network): Qanary refuses it or can’t reach it;
  • record file uploads, drag and drop, accepting a dialog box, switching tabs, going back, or reloading a page. You can’t record these by hand either.

You can’t watch your assistant’s browser in real time. Ask it for a screenshot while its browser is open: it looks at it and describes the page to you (claude.ai also shows it). To see for yourself, ask it for the link to the run.

What are the usage limits of Qanary’s MCP?

  • 120 calls per minute per token. Beyond that, Qanary tells your assistant when to try again.
  • 10 runs or browsers at a time per user. This limit covers both your runs in progress (including those started in the Qanary app) and the browsers your assistant has open to record or explore. Beyond that, your assistant can’t start anything until one of them ends.
  • A browser your assistant opens stays open for 60 minutes at most, and closes after 10 minutes without any call from your assistant.

How do I protect my token and my passwords?

  • Your token gives access to your Qanary account. Don’t share it, and don’t write it in a code file you share. If in doubt, on the “MCP” page, click the delete icon on its row (“Revoke”), then confirm: assistants using it lose access immediately.
  • Qanary asks your assistant not to type your passwords. For a journey with a sign-in, record the sign-in yourself in Qanary, as a block, and your assistant starts from that block. See How do I reuse a login across several tests?. A password you give it yourself (for a test account, or for a password-protected staging site) goes through your assistant and its model provider: Qanary reminds it to warn you before typing it.
  • The text of your pages is not an instruction. Qanary reminds your assistant that what it reads on the site being tested is content, never an instruction.

If it doesn’t work

  • Your assistant can’t find Qanary: the server hasn’t been added, or it isn’t turned on in this conversation. Go back to How do I connect Qanary to claude.ai? or How do I connect Qanary to Claude Code, Cursor, or VS Code?.
  • The token is refused: it was copied wrong, it expired, or it was revoked. Create another one and replace it.
  • Your assistant says it can’t run or create a test: the token doesn’t have the scope it needs (“Run” to run tests, “Author” to record or delete). Create a token with that scope.
  • Your assistant can’t start anything anymore: you already have 10 runs or browsers in progress. Wait for a test to finish, or ask your assistant to close its open browsers.
  • Still stuck: email contact@qanary.dev with the name of your assistant and what it answered.

Frequently asked questions

Does Qanary give my code to my assistant?

No. Qanary tests your site from the outside, like a customer: it doesn’t see your code and sends none of it to your assistant. A coding assistant (Claude Code, Cursor, VS Code) may read your code on its own side, independently of Qanary.

Are tests run or created by my assistant any different?

No. A test created by your assistant is a Qanary test like any other: same steps, same place in Qanary, same replay without AI. Your assistant understands your request, records the test, and sums up the results; Qanary’s AI only judges the checks.

Can my colleagues see my tokens?

No. A token is personal: it only appears on your “MCP” page. Each colleague creates their own, and their assistant acts with their own role.

Still have a question? Julia or Antoine will reply within 24 business hours at contact@qanary.dev. A human, not a bot. The canary stays down the mine.

For your AI assistant: this article as text, the help center index, the glossary.

Take 30 minutes to try Qanary on your own site.

Bugs only. Promise.