Get the plugin
WP MCP/Integrations/LearnDash MCP

LearnDash MCP · Pro

LearnDash MCP: build courses and manage learners with an AI agent.

A LearnDash MCP server lets an AI agent see a course as a tree and work on it: add a lesson, reorder topics, enroll a learner. WP MCP reads and writes LearnDash's own storage, so every change is covered by a snapshot and a rollback is exact.

Self-hosted · snapshot before every write · one-click undo

What it is

What a LearnDash MCP server does.

LearnDash keeps a course, its lessons, topics, quizzes and questions as separate post types linked by meta, and stores the whole tree on the course in its ld_course_steps meta. Enrollment, progress, completion and quiz attempts are the learner's user meta. A LearnDash MCP server presents that as one course tree and one learner record.

WP MCP reads and writes all of it as stored data, never through LearnDash's write functions. That is a deliberate choice: a course tree write changes posts and post meta, a learner write changes only that learner's user meta, and both are things the snapshot engine can restore exactly.

A LearnDash course is a tree of lessons, topics and quizzes held in the course's own steps record, and the learner side is a separate matter of enrollment and progress. WP MCP treats the two differently on purpose. Tree writes are on, snapshotted post by post including the steps record, so rollback puts the tree back exactly. Learner writes grant or remove access, so they stay off until the site enables them.

Read and change

What WP MCP can read and change in LearnDash.

It can read

  • A course's tree of lessons, topics and quizzes
  • A user's enrollments, with progress

It can change

  • Build a course tree: add lessons, topics and quizzes
  • Reorder the steps in a course
  • Enroll or unenroll a user in a course (opt-in)
  • Reset a user's progress in one course (opt-in)
plugin-data-readplugin-data-writelearndash-get-courselearndash-enroll-user

These are the real ability and operation names the agent calls. TheLearnDash AI agent tool reference page lists the calls in detail.

Example prompts

Three things to ask first.

Show me the full structure of the Onboarding course, lessons and topics in order.

Add a quiz called 'Module 1 check' at the end of the first lesson.

Which courses is user 204 enrolled in, and how far along are they?

Show me the full structure of the Onboarding course, lessons and topics in order.

learndash-get-course returns the tree of lessons, topics and quizzes in order.

Add a quiz called "Module 1 check" at the end of the first lesson.

plugin-data-write adds the quiz to the tree under a snapshot of the posts and the course steps record.

Which courses is user 204 enrolled in, and how far along are they?

A read returns the user's enrollments with progress. Enrolling them would be an opt-in write that snapshots their user meta.

Safety

Every LearnDash write has a way back.

A course write is snapshotted post by post, including the course's own steps record, so a rollback puts the tree back exactly. A learner write snapshots that learner's user meta. LearnDash's activity log keeps the history it already had.

Snapshot before every write

No tool that writes can skip it. The before-state is saved first, the change is applied second.

One-click undo

Restore a single change with rollback-operation or a whole agent run with rollback-session, from the agent or from wp-admin.

Shared steps are refused, not risked

Shared course steps are not supported, so a tree write is refused while they are switched on rather than risk dropping a lesson another course uses.

Free or Pro

Part of WP MCP Pro.

LearnDash support is part of WP MCP Pro. Course tree writes are on; learner writes (enroll, unenroll, reset progress) stay off until the site opts in, because they grant or take away access.

WP MCP Pro starts at $49 a year for one site. See pricing for what each tier includes.

How to connect

Connect LearnDash MCP in four steps.

  1. 01
    Install WP MCP

    Upload the free wpmcp plugin and activate it. It needs WordPress 6.9 or newer and PHP 8.1 or newer, and it runs entirely on your own server.

  2. 02
    Check the requirement

    LearnDash active. Learner writes are off until the site enables them with the wpmcp_enable_learndash_learner_write filter.

  3. 03
    Connect your client

    Add the site to Claude Code, Claude Desktop, Cursor or any MCP client with a WordPress application password, or the WP-CLI stdio bridge locally. OAuth 2.1 with full or read-only access is there too, once the site owner switches it on.

  4. 04
    Ask for the change

    Describe what you want done in LearnDash. WP MCP snapshots the target, makes the change, and leaves a Restore button next to it in wp-admin.

Step-by-step guides: Claude,Claude Code andCursor. The docscover the safety model in full.

Frequently asked

LearnDash MCP: questions, answered.

What is LearnDash MCP?

It is LearnDash courses and learner records made available to AI agents over the Model Context Protocol. WP MCP lets Claude, Cursor or any MCP client read and build course trees and manage enrollment, snapshotted first.

Can an AI agent build a whole LearnDash course?

It can build and reorder the course tree: lessons, topics and quizzes. The lesson content itself is ordinary WordPress content, edited with the regular content tools.

Can it enroll students?

Yes, once the site opts in. Enroll, unenroll and reset progress are off by default because they grant or remove access.

Does it work with shared course steps?

No. With shared course steps on, tree writes are refused, because a change could affect a lesson that belongs to several courses.

Is a course change reversible?

Yes. Every write is covered by a snapshot, and rollback-operation restores the course tree or the learner's record exactly.

Why are learner writes switched off by default?

Enrolling, unenrolling or resetting progress grants or takes away access. They stay off until the site enables them with the wpmcp_enable_learndash_learner_write filter.

What about shared course steps?

They are not supported, so a tree write is refused while shared steps are switched on, rather than risk dropping a lesson another course uses.

Does LearnDash MCP work with Claude, Claude Code and Cursor?

Yes. Claude Code and Cursor connect to WP MCP over HTTP with a WordPress application password, and Claude Desktop uses the desktop bundle from the WP MCP Connection screen. Clients that can only sign in with OAuth, such as the claude.ai custom connector, need OAuth switched on first with one line in wp-config.php, because it ships off. Once connected, the LearnDash tools are available in every client the same way.

Point your AI agent at LearnDash.