Create and manage quizzes directly from AI assistants like Claude, Cursor, and other MCP-compatible tools.
The Model Context Protocol (MCP) is an open standard that lets AI assistants interact with external tools and services. Quiz exposes an MCP endpoint that allows AI agents to create quizzes, add and edit questions, and manage the full quiz lifecycle — all without leaving your AI workflow.
Create a new quiz with questions. Returns an admin URL (containing the encryption key and admin token) plus a join URL for participants.
title(required) — The quiz titledescription(optional) — Quiz descriptionquestions(required) — Array of questions with text, options, correctIndex, and optional timerOverridetimerSeconds(optional, default: 20) — Default timer per question in seconds (0 = no timer)expirationHours(optional, default: 24) — Hours until the quiz expires (1–168)Get the full details of a quiz including all decrypted questions, participants, and state. Requires the admin URL.
adminUrl(required) — The admin URL returned when the quiz was createdAdd a new question to an existing quiz (must be in lobby state). Requires the admin URL.
adminUrl(required) — The admin URL returned when the quiz was createdtext(required) — The question textoptions(required) — 2–4 answer optionscorrectIndex(required) — 0-based index of the correct answertimerOverride(optional) — Per-question timer override in seconds (5–120)Update an existing question in a quiz (must be in lobby state). Requires the admin URL.
adminUrl(required) — The admin URL returned when the quiz was createdindex(required) — 0-based index of the questiontext(required) — The question textoptions(required) — 2–4 answer optionscorrectIndex(required) — 0-based index of the correct answertimerOverride(optional) — Per-question timer override in seconds (5–120)Remove a question from a quiz (must be in lobby state). Remaining questions are re-indexed. Requires the admin URL.
adminUrl(required) — The admin URL returned when the quiz was createdindex(required) — 0-based index of the questionPermanently delete a quiz and all its data. This cannot be undone. Requires the admin URL.
adminUrl(required) — The admin URL returned when the quiz was createdWhen you create a quiz via MCP, the AI assistant receives the admin URL which contains both the encryption key and admin token. This URL is not stored on the server — it only exists in the AI's conversation memory. Depending on which AI tool you use, be aware that the admin URL may persist in your conversation history. Only create quizzes through trusted AI tools and treat the admin URL like a password.
Add the following to your Claude Desktop configuration file. On macOS this is at ~/Library/Application Support/Claude/claude_desktop_config.json
// claude_desktop_config.json
{
"mcpServers": {
"quiz": {
"command": "npx",
"args": [
"mcp-remote",
"https://quiz.switch-to.eu/api/mcp/mcp"
]
}
}
}Requires mcp-remote (installed automatically via npx) to bridge stdio to HTTP.
Add a .cursor/mcp.json or .windsurf/mcp.json file to your project root. These editors support streamable HTTP natively.
// .cursor/mcp.json or .windsurf/mcp.json
{
"mcpServers": {
"quiz": {
"url": "https://quiz.switch-to.eu/api/mcp/mcp"
}
}
}Add a .mcp.json file to your project root or home directory.
// .mcp.json
{
"mcpServers": {
"quiz": {
"type": "url",
"url": "https://quiz.switch-to.eu/api/mcp/mcp"
}
}
}All quiz content is encrypted with AES-256-GCM before storage — the server never sees the plaintext. When creating or managing quizzes via MCP, the encryption key and admin token travel through the MCP protocol. Only use this with trusted AI tools and share quiz join links (not admin links) with participants.