Get started with Q-CTRL MCP
Connect your AI app to Q-CTRL and run your first circuit from a chat
Q-CTRL MCP connects AI apps to your Q-CTRL account. Apps such as Claude, Claude Code, VS Code and Cursor can then use Q-CTRL tools for you.
MCP is the Model Context Protocol. It is an open standard that lets AI apps call tools on other services.
With Q-CTRL MCP, you can ask your AI app to:
- Show who you are signed in as, and your organizations.
- Save, list and remove your quantum hardware provider credentials.
- Check OpenQASM circuits for a backend, and run them with Fire Opal.
- Estimate expectation values of observables, such as an energy.
- Follow your jobs and read their results.
Before you start
You need:
- A Q-CTRL account.
- Access to Fire Opal, to run circuits. If you do not have it, the server gives you a link to get it.
- An account with a hardware provider (IBM Cloud, Amazon Braket or IonQ), to run circuits on hardware.
- An AI app that supports remote MCP servers with OAuth sign-in.
Connect your app
Follow the steps for your app in How to connect your AI app to Q-CTRL MCP.
The first time the app connects, your browser opens the Q-CTRL sign-in page. Sign in with your Q-CTRL account. The browser then sends you back to the app.
Check that it works
Ask your app:
Who am I signed in as on Q-CTRL?
The app calls qctrl_whoami and shows your name, email and organizations.
Run your first circuit
- Add a credential. Ask: "Add my IBM Cloud credential to Q-CTRL." The app opens a Q-CTRL page in your browser. Enter your API key there. You never type a secret into the chat, so the AI model never sees it.
- Pick a backend. Ask: "Which devices can I run Fire Opal on?"
- Run the circuit. Ask: "Run this Bell circuit on ibm_fez with 1024 shots," and paste the OpenQASM. The app asks you to confirm first, because this uses hardware time on your provider account.
- Get the results. The app gets a job ID at once. Hardware queues can take minutes or hours. Ask: "Is my job done?" When it is, ask for the results.
If you are in more than one organization, the app asks which one to run in.
Good to know
- Your secrets stay out of the chat. You enter credentials only on a Q-CTRL page. Tools never return them.
- Hardware time costs money. Tools that run circuits use your provider account. Your app should ask you before it calls them.
- Checks are free. Validating circuits and listing devices use no hardware time.
- Credentials expire. You pick how long Q-CTRL keeps each credential. After that, add it again.
- Rate limits apply. Each user can make a fixed number of tool calls per minute and per hour. Tools that run jobs have a lower limit.
To see every tool your app can call, read Q-CTRL MCP tools.
