LetLMS

MCP server

Connect any AI agent to your LMS.

Every LetLMS portal has an MCP connection, a way for your AI agent to work with your portal. Connect Claude, ChatGPT or Cursor and approve access. Then ask it to build courses, clone templates or check learner progress.

Your endpoint

https://yourportal.letlms.app/mcp

Transport
Streamable HTTP
Auth
OAuth 2.1 + PKCE
Tools
30

Setup

Pick your client. Three steps or fewer.

Replace yourportal.letlms.app with your portal's domain — it's shown in your admin settings. OAuth is discovered automatically; there are no API keys to copy.

Claude

  1. 1

    Open Connectors

    In Claude, go to Settings → Connectors → Add custom connector.

  2. 2

    Paste your portal's endpoint

    Use the MCP URL shown in your LetLMS admin settings:

    https://yourportal.letlms.app/mcp
  3. 3

    Approve access

    Claude finds the OAuth details on its own. Approve, then switch the connector on in a chat.

ChatGPT

  1. 1

    Create a custom MCP app

    Open Plugins → + Add → Create custom MCP server. Personal accounts turn on Developer mode first.

  2. 2

    Enter the connection

    Paste the endpoint, keep authentication as OAuth, and create it:

    https://yourportal.letlms.app/mcp
  3. 3

    Approve and pick it in chat

    Approve the OAuth request, then select the app from the composer's connector picker.

Claude Code

  1. 1

    Add the server

    Register LetLMS as a remote HTTP server:

    claude mcp add --transport http letlms "https://yourportal.letlms.app/mcp"
  2. 2

    Verify

    Run /mcp to see LetLMS listed. The first tool call opens the OAuth approval in your browser.

Cursor

  1. 1

    Edit your MCP config

    Add this to ~/.cursor/mcp.json, or .cursor/mcp.json for one project:

    {
      "mcpServers": {
        "letlms": { "url": "https://yourportal.letlms.app/mcp" }
      }
    }
  2. 2

    Reload and approve

    Reload Cursor, enable the server under Settings → MCP, and approve the OAuth prompt.

Permissions

Grant exactly what each agent needs.

Access is approved per scope on a standard OAuth consent screen. Tokens are bound to the endpoint you dialed and to one portal.

courses:read
View your courses, sections, and content
courses:write
Create and modify courses, sections, and structure
content:read
Read course content (ebooks, games, assessments, role-plays)
content:write
Create and update course content
users:read
View members of this learning portal, including their email addresses, purchase history, and per-learner progress
users:write
Invite and remove members (including admins) and manage groups
portal:write
Change learning portal settings, including custom JavaScript that runs on every page for every member

Tool catalogue

30 tools. The whole LMS, not a demo.

This is the same catalogue agents read in the guide and the LetLMS agent skill, generated from one source.

Docs

ToolPurpose
load_skill

alreadyRead

Call this first: every other tool refuses until the LetLMS agent skill (SKILL.md) is loaded in this session. Returns the skill — the working sequence, the lesson rules and which guide topics to read when. If you already have this version installed, pass alreadyRead: true to just confirm it.
guide

topic

One topic of the LetLMS guide: the skill topics again, or one it only lists (sales_page, analytics, media). "index" lists every topic and the full tool catalogue.

Course authoring

ToolPurpose
course_list

search, status, cursor, limit

Courses in this portal, newest first.
course_get

courseId, include

One course with its outline (sections and their lessons, in order, each lesson with its type, status and body version). include adds stats. Read it before changing the course or its outline.
course_save

courseId, title, description, slug, thumbnail, status, baseVersion, idempotencyKey

Create a course (no courseId; title required) or change any of its details and release in one call. Only the fields you send change. New courses start as drafts.
course_delete

courseId

Delete a course with all its sections and lessons. Confirm with the user first.
outline_apply

courseId, sections, delete, dryRun, idempotencyKey

Create, rename, reorder, move, publish or delete sections and lessons in one transaction. List sections (and a section's lessons) in the order you want them; new items get a key you choose and come back in idMap. Leaving an item out never deletes it; use delete. Bodies are written with lesson_write.
lesson_get

lessonId, view, from, to

A lesson and its body with the body version to send back as baseVersion. view: "full" (default), "outline" (text ids for lesson_edit text ops, or the question list) or "range" (body lines from–to, for a large lesson).
lesson_write

lessonId, sectionId, type, title, description, status, orderIndex, body, baseVersion, dryRun, idempotencyKey

Create a lesson (sectionId + type) or replace a lesson's whole body (lessonId + baseVersion). HTML you built as a local file: upload it (media_put localFile: true), then send body.ref: { libraryPath } instead of the text. The server adds the progress SDK to HTML lessons and checks that games report their score; problems come back as errors or warnings. dryRun checks without saving. For small changes use lesson_edit.
lesson_edit

lessonId, baseVersion, ops

Small edits saved as one new version, without resending the body: replace (exact text that occurs once), text (wording only, by text id from lesson_get view outline; never changes structure or scripts), question (add / update / remove assessment questions) and config (assessment settings).
lesson_delete

lessonId

Delete one lesson (outline_apply's delete does the same in bulk). Confirm with the user first.
sales_page_get

courseId

A course's public sales page HTML (the built-in template when it has none yet), its colour theme, the {{VARIABLES}} it may use and the baseVersion for sales_page_write.
sales_page_write

courseId, html, theme, baseVersion, dryRun

Replace a course's sales page and/or its colour theme. Read it first and send its baseVersion. Known {{VARIABLES}} only; no scripts, iframes, forms or on* handlers. Live once saved. guide({ topic: "sales_page" }) has the rules.

Media and course library

ToolPurpose
media_get

assetId, scope, courseId, folder, search, type, recursive, cursor, limit

List a media folder (sub-folders + files) or a course's library (scope: "course-library"), or one file in full with where it is used (assetId) — a text file also comes with its contents and version.
media_put

localFile, assetId, base64, sourceUrl, text, name, mimeType, folder, fromFolder, scope, courseId, path, baseVersion

A file on your machine (any type): localFile: true + where it goes (path, or folder + name; or assetId + baseVersion to overwrite a library text file) returns a one-time URL and curl command; send no contents. Otherwise upload with exactly one of text, sourceUrl, base64; overwrite with assetId + text + baseVersion; move / rename with assetId or fromFolder. Only images, video and audio may be portal-wide; the rest goes into a course library.
media_delete

assetId, folder, force

Delete a file, or an empty folder. A file still in use is refused with its usages; show them to the user and repeat with force: true only if they agree.

Templates and cloning

ToolPurpose
template_search

query, category, templateId

Showcase course templates any portal can clone, each with a public preview URL; templateId returns one template's outline.
course_clone

courseId, title

Deep-copy a template or one of this portal's courses into a new draft course (sections, lessons, media). Never copies learners, progress or orders.

Analytics

ToolPurpose
analytics_query

scope, filters, groupBy, includeLearners, cursor, limit

How learners are doing on a course, section or lesson: completions, scores, where they stop, who has not started, views and time spent. Filters narrow the totals and the learner rows together, so to count learners matching a condition, filter and read summary.matchingLearners. Learner rows need users:read.

Members, enrolments and groups

ToolPurpose
member_list

search, role, cursor, limit

Members of this portal with their role.
member_invite

emails, role

Email an invitation to join this portal as a student (default) or admin.
member_remove

userId

Remove a member with their enrolments and group memberships here (progress is kept). Not the owner, the last admin or yourself.
enrollment_add

courseId, emails

Enrol learners in any course by email (no payment taken), creating their account and membership when needed.
group_list

search, cursor, limit

Groups with their member and course counts.
group_save

groupId, name

Create a group (no groupId) or rename one.
group_delete

groupId

Delete a group, unenrolling its members from the courses they got through it.
group_add_members

groupId, members

Add people to a group (by userId, or by email — an email that isn't a member yet, e.g. only invited, gets an account and a student membership); they are enrolled in the group's courses.
group_add_courses

groupId, courseIds

Assign courses to a group; its current members are enrolled in each.

Portal settings

ToolPurpose
portal_get

—

The portal's settings (title, subdomain, icon, joining method, custom JavaScript, AI instructions) and the version for portal_update. Read it before changing a setting.
portal_update

title, subdomain, icon, joiningMethod, customJavascript, courseEditorInstructions, studentChatInstructions, baseVersion, dryRun

Change any subset of settings. customJavascript and the instructions replace the whole text, so read them with portal_get, edit, and send baseVersion. dryRun warns about risky changes (subdomain, joining method, scripts) before saving.

Agent behaviour

Rules every connected agent is given.

The LetLMS guide sets out how an agent must work with your portal. The short version:

Reads before it writes

Agents fetch the course structure and a lesson's current content before changing anything, so they don't duplicate sections. Every write carries the version it read, so a stale edit is refused instead of overwriting newer work.

Edits surgically

A one-line fix is a one-line replace, not a regenerated lesson. Every content change is versioned and reversible.

Talks in titles, not IDs

Agents are told never to show internal identifiers. You hear about “Module 2: Objections”, not a UUID.

Only does what you asked

A question about a course gets an answer, not a surprise rewrite. Destructive operations are never retried silently.

Questions

Frequently asked

What is the LetLMS MCP server?

It is your portal's connection for AI agents, using MCP (Model Context Protocol). Available at https://<your-portal>/mcp, it gives your agent 30 tools for courses, learners, progress, course pages, templates and media. You approve the access your agent receives.

Is MCP access included in my plan?

Yes. Unlimited MCP connectivity is part of every plan, and work your agent does over MCP doesn't spend LetLMS AI credits.

Can an agent reach another portal's data?

No. Tokens are audience-bound to the endpoint you connected and scoped to a single portal. A token issued for one portal cannot read or change another.

What happens if the agent lacks a permission?

The tool returns an insufficient_scope error naming the scope it needs. The agent should ask you to grant it rather than retry.

How does an agent learn to use LetLMS?

Before anything else it loads the public LetLMS agent skill — the data model, how to work, every tool and the rules generated content must follow. The server enforces it: until an agent has loaded the skill, every other tool refuses, whichever AI client is connected.

Give your agent a learning portal.

14-day free trial. Plans from $19/month, with unlimited MCP connectivity on every plan.