Skip to main content
Help Center

Connect Konstantly to Claude, Cursor, and other AI agents (MCP)

Use the Konstantly MCP server to let Claude Desktop, Claude Code, Cursor, and other Model Context Protocol agents query your training data and take actions on your behalf – without anyone logging into Konstantly

The MCP Server (1:35)

The Konstantly MCP server brings your training data into the AI tools you already use. Ask Claude Desktop "who's overdue on the OSHA refresher?" and it answers from your real data. Tell Cursor "assign the safety training to the warehouse team, deadline Friday" and it happens – with the same permissions you'd have in the browser.

MCP (Model Context Protocol) is an open standard from Anthropic that lets AI agents talk to outside systems through a shared interface. Think of it as a universal port: any AI tool that speaks MCP can connect to any service that exposes an MCP server. Today that includes Claude Desktop, Claude Code, Cursor, and any custom internal agent you build.

What you can do

Once connected, your AI agent has 33 tools to read and act on Konstantly data:

Read:

  • Search users and courses by name
  • Pull compliance reports for any course or group ("who's done OSHA training?")
  • Check certificate expiry dates ("what's expiring in the next 60 days?")
  • View team statistics and leaderboards
  • Inspect the audit log

Write (needs a key with write scope):

  • Assign single courses or whole learning paths to learners or groups
  • Unassign a course from a person or a group, and move or remove a deadline
  • Send a deadline reminder to the people who haven't finished
  • Add people to groups or remove them, and invite new people by email
  • Publish and unpublish courses, with a preview and a one-time code first
  • Ban/unban users and update emails (e.g. for offboarding)
  • Clone courses to fork a copy for a new audience

AI course generation: your agent gets seven more tools that create and refine courses: generate a complete course from a prompt or a PDF, then iterate on it without ever opening the platform editor. Covered in the "AI course generation" section below.

Assignments, groups and publishing

ToolWhat it does
assign_training, bulk_assign, assign_chainAssign one course to one learner, several courses to a group, or a learning path to people or groups.
unassign_trainingRemove a course from one person or one group. For a group, the course comes off the group and all its subgroups, but people already in them keep the personal assignments they got through the group. To take the course away from a person, unassign that person.
change_deadlineMove or remove the deadline for one person or one group. A group's new deadline doesn't change its subgroups' separate deadlines. Through MCP, a deadline can't be in the past or before a scheduled start.
send_deadline_reminderEmail the deadline reminder now to people with a live, unfinished assignment and a deadline still ahead, at most once per assignment a day. Everyone else is listed with the reason they were skipped (finished, no deadline, deadline passed, reminded in the last 24 hours …).
add_group_members, remove_group_membersUp to 100 people per call. Joining a group assigns its courses; leaving one unassigns nothing.
invite_usersInvite up to 50 addresses per call (500 per key a day), optionally into groups. If one address is already a person or has a pending invitation, nobody is invited. MCP can't invite administrators.
publish_course, unpublish_courseTwo calls each: the first shows what would happen and returns a one-time code, valid for 10 minutes; the second, with that code, does it.

Re-assigning restarts a course. Assigning a course to someone who was removed from it, directly or by joining a group that has it, starts it over: their earlier progress and results are cleared. Your AI client may ask you before these calls, because the assign tools are marked destructive.

Unpublishing wipes progress for good. Unpublishing clears every learner's progress, results and answers in the course, and publishing it again doesn't bring them back. That's why the agent first shows you who is assigned, who is in progress and who has finished, and needs the code from that preview to go ahead. Publishing works the same way: the preview says who gets the course and who will be emailed.

Before you start

You'll need:

  • A Konstantly workspace on the Business, Scale or Enterprise plan (MCP is included on those plans; the Free plan doesn't see it)
  • Admin or super-user access to that workspace (the mcp_manage permission, which Konstantly grants to the Administrator role by default)
  • One of the supported AI tools installed: Claude Desktop, Claude Code, or Cursor
  • Node.js 20 or later on the machine where the AI tool runs (used to run the MCP server via npx)
  • About 5 minutes

Step 1: Generate your MCP key

In your Konstantly workspace:

  1. Go to Settings → MCP Keys
  2. Click Generate key
  3. Give it a recognizable name – e.g. "My MacBook", "Production agent", "Slack bot"
  4. Choose scopes:

- Read: for analysis, reporting, lookups

- Write: for assignments, user management, course operations

  1. Click Generate

The full key appears once. It looks like:

kmcp_a8f3b2k9X7yZqWpL3mN8RvU2sT5dH6jK4F1gA9oP

Copy it immediately. Closing the dialog without copying means you'll have to revoke and regenerate.

Treat MCP keys like passwords. The key acts as you – anyone holding it inherits your permissions in Konstantly. Don't paste keys into Slack, don't commit them to git, don't share them with teammates (each person should generate their own).

Step 2: Install in your AI tool

Pick the tool you use most. The MCP server itself is published to npm as @konstantly/mcp-server – you don't need to install anything manually; the config below tells your AI tool to fetch it on demand via npx.

Claude Desktop (most common)

Open the Claude Desktop config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

If the file doesn't exist, create it. Add (or merge into) the following:

json
{
  "mcpServers": {
    "konstantly": {
      "command": "npx",
      "args": ["-y", "@konstantly/mcp-server"],
      "env": {
        "KONSTANTLY_MCP_KEY": "kmcp_a8f3b2k9X7yZ...",
        "KONSTANTLY_URL": "https://your-workspace.konstantly.ai"
      }
    }
  }
}

Replace:

  • KONSTANTLY_MCP_KEY with the key you copied in step 1
  • KONSTANTLY_URL with your Konstantly workspace URL (the same one you type into your browser). It must start with https://: the server refuses an http:// address so your key never travels in clear text.

Quit and reopen Claude Desktop. The 🔌 menu in the conversation window now shows konstantly with its tool list.

Claude Code

One-line install:

bash
claude mcp add konstantly \
  --env KONSTANTLY_MCP_KEY=kmcp_a8f3b2k9X7yZ... \
  --env KONSTANTLY_URL=https://your-workspace.konstantly.ai \
  -- npx -y @konstantly/mcp-server

Claude Code picks it up automatically.

Cursor

Open (or create) ~/.cursor/mcp.json:

json
{
  "mcpServers": {
    "konstantly": {
      "command": "npx",
      "args": ["-y", "@konstantly/mcp-server"],
      "env": {
        "KONSTANTLY_MCP_KEY": "kmcp_a8f3b2k9X7yZ...",
        "KONSTANTLY_URL": "https://your-workspace.konstantly.ai"
      }
    }
  }
}

Restart Cursor. The Konstantly tools appear in the agent panel.

Step 3: Try it

Open your AI tool and ask something. Start with a read-only query:

"Find a user named Sarah Chen and tell me her training status."

The agent uses two tools in sequence (find_user then list_assignments) and answers in plain English.

A few more to try:

"How many people in the warehouse group have completed the safety refresher this year? I need this for the audit."

"Show me everyone whose certificates are expiring in the next 60 days, sorted by date."

"What's my own training status?"

If you have write access:

"Assign the new-hire bundle to user 42, deadline two weeks from now."

"Roll out the Q4 compliance refresher to the entire Sales team – due in 30 days."

"Give the warehouse group another week on the forklift refresher, then remind whoever hasn't finished."

"Invite [email protected] and [email protected] into the Phoenix warehouse group."

Each action writes an entry to your audit log (Settings → Action Log), tagged as MCP-driven so you can separate agent actions from human admin actions later.

Verifying it works

If something looks off – the agent says it can't find tools, or queries fail – turn on debug mode by adding to your env block:

json
"env": {
  "KONSTANTLY_MCP_KEY": "kmcp_...",
  "KONSTANTLY_URL": "https://your-workspace.konstantly.ai",
  "KONSTANTLY_MCP_DEBUG": "1"
}

Restart your AI tool. The MCP server logs every request it makes to its error output – you'll see auth attempts, retries, and tool calls. Most issues fall out immediately:

What you seeWhat it means
"Konstantly rejected the API key"The key was revoked or never existed. Generate a new one.
"license does not include MCP access"Your plan doesn't include MCP. Upgrade in Settings → Billing.
"KONSTANTLY_URL must use https://"You typed http:// (or no scheme at all). Fix the URL.
Tool list shows fewer tools than expectedYour role doesn't have the permission (check Settings → Roles).
Agent says "Permission denied" on a write toolSame as above – your role doesn't have the underlying Konstantly permission.
"Refused [CONFIRMATION_REQUIRED]" on a publish or unpublishThe one-time code from the preview expired (after 10 minutes), was already used, or the course changed since. Ask the agent to preview again.
"Permission denied [MCP_ROUTE_NOT_ALLOWED]"Something other than the Konstantly MCP tools used the key. Keys work only through the tools.

Managing keys

The Settings → MCP Keys page shows all keys you've issued, with:

  • The friendly name you gave each one
  • The first few characters of the key (so you can identify it without seeing the full secret)
  • When it was created and last used
  • A revoke button

Revoke a key

Click the trash icon next to any key and confirm. The key stops working within seconds – the next call from any agent using it returns 401.

You don't need to update the AI tool's config beforehand. The key just becomes invalid; the agent will surface the error on the next prompt.

Rotate keys regularly

We recommend rotating keys every 90 days, and immediately when:

  • A teammate who held a key leaves the company
  • A device with a stored key is lost, stolen, or sold
  • You suspect a leak (e.g. accidentally committed to git)

Rotation = generate a new key → update your tool's config → revoke the old key. Total time: under a minute.

Per-device keys

Best practice is one key per device per agent. If you have Claude Desktop on your laptop AND Cursor on your desktop AND a Slack bot, that's three keys. Revoking one (e.g. if you lose the laptop) doesn't break the others.

Security at a glance

A few facts about how MCP integrates with Konstantly's existing security model:

  • Same permissions as the UI. Each key inherits the permissions of the user who created it. A learner-issued key cannot access admin data. A manager-issued key can only ban users below them in the role hierarchy.
  • Keys work only through the MCP tools. A key reaches the parts of Konstantly the tools use and nothing else; every other API route refuses it. A key can't create or revoke keys, can't invite administrators or change their email, and needs a one-time code from a preview to publish or unpublish.
  • Every write tool call is audited. Compliance reports can filter "actions taken by an agent" by querying audit event type 88 (MCP_TOOL_CALL).
  • License downgrades are silent and immediate. Move to a plan without MCP and every existing key stops working – no re-issue required.
  • Rate-limited per key. 600 calls per minute and 100,000 per day on every plan that includes MCP. The MCP server waits out a rate limit only when Konstantly asks it to wait 10 seconds or less (at most twice per call); a longer wait comes straight back to the agent with Konstantly's message, so it can tell you when to try again. A failed write is never sent twice.
  • Timeouts. A call that gets no answer fails after 30 seconds (3 minutes for uploads, refinement, regeneration and cloning, which do their work inside the call). A write that times out may still have completed; the error says so.
  • 256 bits of entropy per key. Brute-forcing is mathematically infeasible. Failed-auth attempts are throttled per source IP to catch enumeration attempts in telemetry.

For the full security model, see the MCP Security documentation. For how Konstantly handles AI processing across all features (Ask Konstantly, course generation, and the MCP integration with third-party agents like Claude and Cursor), see our AI Policy.

Pricing

PlanMCP access
FreeNot included
BusinessAll 33 tools (read, write, AI). 600 calls/min + 100,000/day per key.
ScaleAll 33 tools (read, write, AI). 600 calls/min + 100,000/day per key.
EnterpriseAll 33 tools (read, write, AI). 600 calls/min + 100,000/day per key.

Upgrade from Settings → Billing, or talk to sales.

AI course generation

Seven additional MCP tools let the agent build, then iterate on, complete courses without the customer ever opening Konstantly. They come with the Business, Scale and Enterprise plans, for users whose role can edit courses.

Build a course

ToolWhat it does
upload_source_materialReads a local file off your machine (PDF, Word DOCX, PowerPoint PPTX, Markdown, or an image) and uploads it as a course source. Returns a sessionId.
create_course_from_promptGenerates a complete course (title, modules, lessons, final quiz) from a plain-English description.
create_course_from_filesSame, grounded in source materials you uploaded via upload_source_material.
get_course_generation_statusPolls the background job until generation completes; returns the new courseId.

Iterate on a course

ToolWhat it does
refine_courseAdd new lessons, tests, or sections to a draft course. Append-only – never deletes or modifies anything that already exists.
regenerate_questionSurgical fix for a single quiz question (single-choice or yes/no) in a draft course. Stays on the same concept; previous text preserved in the workspace audit log.
regenerate_lessonRefresh a lesson's AI brief (topic, key points, audience) without touching any pages you've already created in the editor.

How it looks in Claude

You: Build a confined-spaces safety course for warehouse staff from
     this OSHA PDF I just shared. 8 modules + a final quiz.

Claude:  upload_source_material  ~/Downloads/osha-confined-spaces.pdf
         ↳ Indexed · 47 chunks

         create_course_from_files  sessionId=4f1c…, chapters=8
         ↳ Queued · jobId=ai-course-2381

         get_course_generation_status  jobId=ai-course-2381
         ↳ status=completed · courseId=2419

         "Confined-Spaces Safety for Warehouse Staff" is ready as a
         draft — 8 modules + a 10-question final quiz, grounded
         in the OSHA PDF. Open course #2419 to review.

You: Looks good but it's missing emergency rescue procedures. Add a
     section on rescue at the end before the final quiz.

Claude:  refine_course  courseId=2419,
                        feedback="Add a 2-lesson section on confined-
                        space rescue procedures with a checkpoint
                        question, placed just before the final quiz."
         ↳ Added 3 new elements (2 lessons + 1 question) + 4
           transitions to course #2419.

         The rescue section is in the draft — open the course to
         review the new content.

You: Question 5821 is too easy. Make it harder.

Claude:  regenerate_question  questionId=5821, feedback="Make harder"
         ↳ Rewrote the question with tougher distractors. Previous
           version is in your audit log.

A few practical notes

  • Rate limit: 5 AI calls per key per day, 50 per tenant per day. Generation and refinement tools share this bucket: each AI call counts as one regardless of which tool fired it. Plenty for human use. When the quota runs out, the agent gets Konstantly's message saying when to try again.
  • Source materials: PDF, Word (DOCX), PowerPoint (PPTX), Markdown (.md, .markdown), PNG, JPG, GIF, WebP. Save an older Word .doc as DOCX or PDF first. 20 MB max per file, 20 files per hour per user; a file with too much text is refused, so split it. Multiple files in one session ("here's the safety doc AND the procedure manual") work – call upload_source_material once per file with the same sessionId, then create_course_from_files once.
  • Refinement is safe: refine_course never deletes or modifies existing content (append-only). regenerate_question only replaces the targeted question's text and options. regenerate_lesson only updates the lesson's AI brief – pages you've already created in the editor stay untouched.
  • Permission gates per call: write-scope alone isn't enough for refinement / regeneration – the calling user must actually have edit rights on the specific course. Your role's course_edit permission gets you in the door; ownership / sharing decides whether you can mutate this particular course.
  • Async via background job for generation; sync for refinement: initial generation takes 10–30 seconds and runs in the background. Refinement and per-element regeneration are faster (~5–10 seconds) and run synchronously.
  • You stay in control: every course is created in draft. Open it in Konstantly to review and publish.
  • Drafts only for refinement: refine_course and regenerate_question work on draft courses. A published course is refused, also while someone is updating it, before any AI quota is spent. To grow a published course, clone it with clone_course and refine the draft copy. regenerate_lesson works on any course.
  • Audit log: each AI action writes a dedicated event on the course – AI_COURSE_GENERATE, AI_COURSE_REFINE, AI_QUESTION_REGENERATE, or AI_LESSON_REGENERATE – with the issuing key recorded for compliance review.

Common patterns

Daily compliance check

Ask your AI tool every Monday morning:

"Pull this week's compliance status for the warehouse OSHA training, and tell me who's overdue."

Five seconds, no dashboard hunting. Pair with a weekly calendar reminder and you have an effortless compliance check-in.

Onboarding automation (HRIS-integrated setups)

If your team uses Claude or Cursor as part of a broader workflow with HRIS-aware tools (Workday, BambooHR, etc.), you can chain them:

"For every new hire created in Workday this week, assign the new-hire onboarding chain in Konstantly with a 30-day deadline."

The agent calls Workday's MCP (or API) for the user list, then calls Konstantly's assign_chain for each new hire.

Recurring certification reminders

"Show me everyone whose forklift certification expires in the next 60 days. Then assign them the recertification course with a deadline two weeks before expiry."

Two tools in sequence – list_certificates then assign_training per learner.

Chasing a deadline

"Who in the warehouse group hasn't finished the forklift refresher? Give the group another week, then send everyone who hasn't finished a reminder."

get_compliance_status, then change_deadline for the group, then send_deadline_reminder for the people still in progress. The agent tells you who was reminded and who was skipped, and why.

Audit prep (the killer scenario)

"I have an OSHA inspection Tuesday. Generate a compliance summary for confined-spaces and working-at-heights training across all warehouse staff over the last 12 months. Format it as a single document I can hand to the inspector."

get_compliance_status + the agent's built-in document-formatting → finished report in under a minute.

Troubleshooting

The MCP Keys tab isn't visible

Either:

  • Your plan doesn't include MCP (Business, Scale or Enterprise required), OR
  • Your role doesn't have the mcp_manage permission. Talk to a workspace owner / administrator.

Claude Desktop doesn't show the konstantly tools after install

  • Did you fully quit and reopen Claude Desktop? (On macOS, ⌘Q – not just closing the window.)
  • Is the config file valid JSON? Open it in a JSON validator. A trailing comma or missing brace breaks the entire config.
  • Add "KONSTANTLY_MCP_DEBUG": "1" to the env block and check Claude Desktop's MCP logs (Help → Show Logs).

"Permission denied" on a write tool I should have access to

  • Your Konstantly role must include the underlying permission (e.g. user_assign for assign_training). Check Settings → Roles.
  • Your MCP key must have write scope. Check Settings → MCP Keys – regenerate the key with write scope if it was issued read-only.
  • Your plan must be Business, Scale or Enterprise. Check Settings → Billing.

Rate limited

If you're hitting 429s in normal use:

  • Each key gets 600 calls a minute and 100,000 a day. Hitting that usually means a runaway agent: check the KONSTANTLY_MCP_DEBUG=1 logs for a loop.
  • The AI tools have their own quota of 5 calls per key and 50 per workspace a day. The refusal says when to try again.

"Too many failed MCP authentication attempts"

Your tool is sending an invalid key (revoked, typo, or wrong URL). Fix the env var. The block lifts after 60 seconds.

What MCP doesn't do yet

A few capabilities aren't shipped. We'll update this guide as they land:

  • Hosted MCP transport: currently the MCP server runs on the same machine as your AI tool (stdio transport). HTTP transport for hosted scenarios like Slack bots and internal dashboards is on the roadmap.
  • Survey response analytics: the agent can generate surveys today via create_course_from_prompt but can't query individual response data yet.

See also

If you run into anything not covered here, get in touch – we'll add it.