Documentation · AI
Connecting an AI tool (MCP)
Let Claude Code or another AI tool write drafts in your organization.
What this is
You can connect your own AI tool to CTF Hub. The tool can then read your content and write new drafts: workshops, challenges, learning paths and 3D workshops.
The connection uses a standard called MCP. You do not need to know how it works. You give the tool one address, sign in, and choose what it may do.
- The tool writes drafts only. A person reviews and publishes them. The one exception is replying to trial run feedback, if you allow it.
- It can never do more than you can. If your role cannot write challenges, neither can a tool you connect.
- It cannot publish, delete, see users or scores, or read a challenge's answers.
- You can disconnect it at any time.
Plan
Connecting AI tools needs a plan with API access: Team, Pro or Enterprise.
Connect Claude Code
- In CTF Hub open Profile → API keys (or Profile → AI tools). Under Connect an AI tool, copy the command.
- Paste it in your terminal and press Enter.
- In Claude Code type
/mcp, choose ctf-hub, and choose to sign in. - Your browser opens CTF Hub. Sign in if asked.
- Choose what the tool may do (see below), then choose Approve.
- Go back to Claude Code. It says it is connected.
The command looks like this. Use the address shown in your own CTF Hub.
claude mcp add --transport http ctf-hub https://api.ctf-hub.io/mcpTip
Try it: ask the tool to list your workshops, or to write a short workshop about phishing and save it as a draft.
Connect another tool
Claude, Cursor, VS Code and other tools that support remote MCP servers work the same way. Add a new MCP server (in Claude this is called a custom connector) and paste the address from Connect an AI tool. The tool sends you to CTF Hub to sign in and approve.
Choosing what the tool may do
On the approval page, each kind of content has three choices.
- No access
- The tool cannot see this kind of content at all.
- Read only
- The tool can list and read it. It cannot change anything.
- Read and write drafts
- The tool can also create drafts and change the drafts it wrote.
| Kind of content | What writing means |
|---|---|
| Workshops | Create and edit workshop drafts |
| Challenges | Create and edit challenge drafts. It can set an answer but never read one back |
| Learning paths | Create and edit training program drafts |
| 3D workshops | Create and edit scenario drafts |
| Images | Upload pictures to use in content |
| Trial run feedback | Reply to what reviewers said, and mark it done. This level is called Read, reply and mark done |
Generate images with AI is a separate tick. Each image uses one of your plan's monthly AI images.
Good to know
Everything starts at No access. You turn on what you want. Choices your own role does not have are not offered.
Before you approve
Careful
Approve only if you started connecting the tool yourself, just now. If someone sent you a link to the approval page, choose Refuse.
The page shows where you will be sent after you answer. For a tool on your own computer it says so. If the address is one you do not know, refuse.
What the tool can do
| Area | Reading | Writing drafts |
|---|---|---|
| Workshops | List, read, check a workshop | Create, copy, add or change sections and slides |
| Challenges | List, read (never the answers), check | Create, copy, add or change questions and hints |
| Learning paths | List, read, check | Create and change |
| 3D workshops | List, read, check | Create, copy, add or change scenes |
| Images | List, see what is left this month | Upload, or generate with AI |
| Trial run feedback | List trial runs, read the reviews and the feedback | Reply to feedback, mark it done or reopen it |
The tool also has guides built in. It reads them before it writes, so it knows how a good workshop or challenge is built.
Trial run feedback
A trial run sends a draft to a few reviewers before it is published. A connected tool can read what they said and help you answer it.
- The tool sees only the trial runs you can see: content you wrote, or everything if you are a verifier or an administrator.
- Reviewers are shown to the tool as Reviewer 1, Reviewer 2. It never gets their names.
- It cannot open, close or extend a trial run, or invite reviewers.
With Read, reply and mark done, the tool can also post a reply and mark a piece of feedback done or reopen it.
Careful
A reply is posted in your name and the reviewer is notified, often by email. It is marked via AI tool so everyone can see a tool wrote it. Read each reply before you let the tool post it.
Tip
Try: ask the tool to go through the open feedback on a draft, suggest what to change, and show you each reply before posting.
What happens to what it writes
- Everything arrives as a draft, marked as written through the API.
- Open it in CTF Hub, read it, and fix what you want.
- Once you save a draft yourself, it is yours. The tool can no longer change it.
- A challenge still has to be verified by a reviewer before it can go in an event.
- A learning path can only include workshops that are published and challenges that are verified.
See and disconnect tools
Open Profile → API keys or Profile → AI tools. Each connected tool is listed with what it may do and when it was last used.
Choose Disconnect. It stops working at once.
People who manage API keys see every tool connected in the organization. Everyone else sees their own.
Good to know
A connection ends by itself one year after you approved it. Connect again to continue.
Using an API key instead
For a script, or a tool that cannot open a browser, use an API key.
- Open Profile → API keys and choose Create API Key.
- Give it a name and choose when it expires.
- Tick the permissions. Use for an AI tool ticks the ones for writing drafts.
- Copy the key. It is shown once.
claude mcp add --transport http ctf-hub https://api.ctf-hub.io/mcp --header "Authorization: Bearer ctfhub_…"Careful
Treat a key like a password. Do not put it in shared files. If it leaks, choose Revoke.
A key can only be given what you can do yourself. Permissions your role does not have are greyed out.
Limits
Your plan includes a number of API calls per month. Each thing the tool does uses one.
| Team | Pro | Enterprise | |
|---|---|---|---|
| API calls per month | 2,500 | 25,000 | Unlimited |
| AI images per month | 5 | 15 | Unlimited |
The AI images are the same ones your people use inside CTF Hub. There is also a daily limit per tool, so a tool cannot use up the month in one go.
If it does not work
- The approval page says not found
- Refresh the page (Ctrl Shift R) and start again from the tool.
- This request has expired
- A request lasts ten minutes. Start again from the tool.
- You cannot connect AI tools
- Your role has nothing it could give a tool. Ask an administrator.
- Not included in your plan
- Your plan has no API access. See Plans and billing.
- The tool says it is not signed in
- In Claude Code type
/mcpand sign in again. - A tool you need is missing
- You did not give that kind of content. Disconnect and connect again with more access.
Read next
Still stuck? Contact support.