MCP Server
The Instruqt MCP server lets an AI assistant (e.g. Claude, ChatGPT, Codex, Cursor) work on your labs. Describe what you want in plain language, such as a new lab, a change to a page, or a task that needs fixing, and the assistant does the work in Instruqt as you.
It works with any assistant that supports remote MCP (Model Context Protocol) servers. You sign in with your Instruqt account in the browser; there is no API key to create.
https://api.instruqt.com/mcpBefore you start
Section titled “Before you start”- You need your own Instruqt account, and a role in the team you want to work in. The assistant always works as you, so every change can be traced back to you.
- Team API keys and accounts without an email address cannot connect.
- The assistant can do exactly what your role allows in Instruqt, and nothing more: a lab you cannot edit in Instruqt, it cannot edit either.
Connect your assistant
Section titled “Connect your assistant”A connector you add once is available in claude.ai, the desktop app and Cowork.
With a personal Claude account:
- Open Customize → Connectors.
- Click + Add → Add custom connector.
- Enter the name
Instruqtand the URLhttps://api.instruqt.com/mcp, then click Continue. - Keep the sign-in settings Claude detects, and click Add.
- Click Connect and sign in.
- In a chat, click + → Connectors and turn Instruqt on.
With a Claude organization account, an owner adds the connector once: Organization settings → Connectors → Add, hover over Custom and select Web, then enter the name and URL and click Add. Each member then finds Instruqt under Customize → Connectors, clicks Connect and signs in with their own Instruqt account.
Claude asks before it uses a tool; you can allow it once or always.
- Open the Plugins page, click +, then Add custom MCP server.
- Enter the name
Instruqtand, under Connection, the server URLhttps://api.instruqt.com/mcp. - Choose OAuth as the authentication.
- Read the warning, select I understand and want to continue, then click Create as a plugin.
- Install the plugin and sign in.
- In a chat, type
@and select Instruqt.
ChatGPT asks you to confirm every step that changes something, such as creating, updating or publishing. Steps that only read run without asking.
claude mcp add --transport http instruqt https://api.instruqt.com/mcpThen run /mcp in Claude Code, select instruqt, and choose Authenticate to sign in. Add --scope user to the command to use the server in every project.
codex mcp add instruqt --url https://api.instruqt.com/mcpcodex mcp login instruqtThe login command opens the browser to sign in.
Add the server to ~/.cursor/mcp.json, or to .cursor/mcp.json in a project:
{ "mcpServers": { "instruqt": { "url": "https://api.instruqt.com/mcp" } }}In Cursor Settings → MCP, the server shows that it needs a login. Click it to sign in.
- Open the Command Palette and run MCP: Add Server.
- Choose HTTP, enter
https://api.instruqt.com/mcp, and name itinstruqt. - Start the server when VS Code asks, and sign in.
Add a remote MCP server with the HTTP transport and the URL https://api.instruqt.com/mcp, then sign in when the assistant asks. The server signs you in with OAuth, so the assistant needs to support it.
Sign in
Section titled “Sign in”The first time the assistant connects, it opens Instruqt in your browser:
- Sign in to Instruqt, if you are not signed in already.
- The Connect an AI assistant page shows the app that is asking: who published it, and where your browser goes back to.
- Click Allow if you started connecting the app yourself. Otherwise, click Deny.
The browser returns to the assistant, which is now connected. The connection renews itself while you use it. After 30 days without use, or 90 days at most, the assistant asks you to sign in again. To disconnect, remove the server from the assistant.
Use it
Section titled “Use it”Tell the assistant which team to work in, by the team’s slug: the part of the Instruqt URL after /manage/, e.g. acme in https://play.instruqt.com/manage/acme/labs. The assistant asks for it if you leave it out.
Then ask for what you need, for example:
- “Create a lab in the
acmeteam that teaches the basics of Docker Compose, in three chapters.” - “In
acme/intro-to-git, add a quiz after the page about branches.” - “Validate
acme/k8s-workshopand tell me what is wrong with it.” - “Change the VM in this lab to the latest Ubuntu image, and update its startup script.”
The assistant makes its changes in a private draft of the lab that only you see. Users see none of them until the draft is published, and the assistant publishes only when you ask it to. Publishing works as it does in Instruqt: it adds a version to the lab’s history, and a lab connected to a Git repository gets the change there too (see External version control).
The assistant can:
- find, create and update labs, including their tags, maintenance mode and whether the lab is a template;
- read and change a lab’s pages, tasks, quizzes, layouts and sandbox, and validate them;
- create and publish modules, and use them in labs;
- list the VM images, the names of the team’s secrets, and the cloud settings your labs can use;
- read Instruqt’s lab-authoring guides, which it uses to write content that follows best practice.
Migrate a track
Section titled “Migrate a track”The assistant cannot read a track from Instruqt, but it can rebuild one as a lab from the track’s files. An assistant that reads folders on your computer (e.g. Claude Code, Codex) works best for this.
-
Get the track’s files. A track kept in a Git repository is already in the right form. Otherwise, pull it with the Instruqt CLI:
instruqt track pull <team-slug>/<track-slug>. -
Ask the assistant for a plan before it builds anything, for example:
I exported my Instruqt track to the folder
my-track. Rebuild it as a lab in the team<team-slug>. Read the track files first, and before building anything, give me a plan: how each challenge, check and part of the sandbox maps to the lab, and a list of everything that does not map one to one and needs my decision. -
Decide each item on that list, then let the assistant build the lab.
-
Test every task by doing it wrong and then right. A track’s check scripts rely on helper commands that labs do not have, so a ported check can pass when it should fail.
-
Validate the lab, play it from start to end, then publish it and move your users over.
Coming from Tracks maps familiar track features to labs.
What it cannot do
Section titled “What it cannot do”- Play a lab. Validation checks the lab’s files, not the running lab. Play every lab before your users do.
- Copy, delete or rename a lab, or connect it to a Git repository. Do these in Instruqt.
- Resolve publishing conflicts. When someone else published changes that clash, resolve them in Instruqt.
- Manage invites, embeds, team members or reporting.
- Work on tracks. It works with labs only, and helps rebuild tracks as labs.
Publishing does not check the lab for errors: ask the assistant to validate before it publishes.
Good practice
Section titled “Good practice”- Approve publishing yourself. Most assistants can ask before they use a tool. Keep that on at least for publishing, which reaches your users; reading and editing the private draft can run without asking.
- Say how much to change. For a small change to an existing lab, say so: “only fix the failing task”.
- Check before you publish. Ask the assistant to validate the lab and show you its changes, then play the lab before you publish it.
- Be careful with outside content. Text the assistant reads from websites or files can contain instructions meant to mislead it. Review what it does with them.
Security
Section titled “Security”- The assistant works as you, with your role in the team, and sees only what you can see in Instruqt.
- It can list the names of your team’s secrets, but not their values.
- Every publish adds a version to the lab’s history, as a publish from Instruqt does.
- The lab content you work on passes through your AI assistant’s provider.
Troubleshooting
Section titled “Troubleshooting”| What you see | What to do |
|---|---|
| The browser did not open | Copy the sign-in link the assistant shows into your browser. |
| The assistant asks you to sign in again | The connection expired. Sign in again: in Claude Code, run /mcp and choose Authenticate; in Codex, run codex mcp login instruqt; in Claude, click Connect on the connector. |
| The sign-in link has expired | Start again from the assistant. |
| Sign-in is refused | The Instruqt account you signed in with has no email address. Sign in with an account that has one. |
| The assistant finds no labs, or cannot do anything | Give it the team slug from the Instruqt URL, and check that you have a role in that team. |
| The assistant says it has no permission to edit the lab | Your role does not allow it. A team Owner can change your role; see Roles & permissions. |
| New tools are missing | Reconnect the server, or restart the assistant, to reload the tool list. |
| A request times out | Try again, or ask for the change in smaller steps. |
| The lab validates but breaks when played | Describe what broke to the assistant, fix it in a draft and publish again. |
| Publishing fails with a conflict | Someone else published changes that clash. Resolve them in Instruqt. |
