LearnWorlds MCP by usefulapi

v1.41.1
io.usefulapi/learnworlds Checked 2 days ago Published 1 day ago

Check LearnWorlds courses, learners, progress, grades and payments, and enroll or tag users.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

learnworlds_list_courses List courses

List the school's courses, newest first, 50 per page — title, price fields, access (paid/free/draft...), categories and author. A cheap way to confirm the credentials work. LearnWorlds: GET /v2/courses.

ParameterTypeDescription
accessarrayOnly courses with one of these access values.
categoriesstringComma-separated category names to filter by.
pageintegerPage number, starting at 1.

learnworlds_get_course Get a course

Fetch one course by id (its slug). LearnWorlds: GET /v2/courses/{id}.

ParameterTypeDescription
course_id *stringThe course id — the course slug, e.g. "my-first-course".

learnworlds_get_course_contents Get course contents

The course outline: its sections (with drip-feed settings) and the learning activities (videos, PDFs, SCORM, assessments, certificates...) in each, with their ids. LearnWorlds: GET /v2/courses/{id}/contents.

ParameterTypeDescription
course_id *stringThe course id — the course slug, e.g. "my-first-course".

learnworlds_get_course_analytics Get course analytics

Course-level analytics: students, learning units, average score and success rate, total study time, average time to finish, social interactions and certificates issued. LearnWorlds: GET /v2/courses/{id}/analytics.

ParameterTypeDescription
course_id *stringThe course id — the course slug, e.g. "my-first-course".

learnworlds_list_course_users List users enrolled in a course

The users enrolled in one course, newest first (20 per page by default). LearnWorlds: GET /v2/courses/{id}/users.

ParameterTypeDescription
course_id *stringThe course id — the course slug, e.g. "my-first-course".
items_per_pageintegerItems per page, 1-200.
pageintegerPage number, starting at 1.

learnworlds_get_course_grades Get course grades

Assessment grades of the users enrolled in a course — per user and learning unit, with submission time. LearnWorlds: GET /v2/courses/{id}/grades.

ParameterTypeDescription
course_id *stringThe course id — the course slug, e.g. "my-first-course".
items_per_pageintegerItems per page, 1-200.
learning_unitsstringComma-separated learning-unit ids to filter by (from learnworlds_get_course_contents).
orderstringSort direction.
pageintegerPage number, starting at 1.
sortstringField to sort by.
usersstringComma-separated user ids to filter by.

learnworlds_list_users List users

List the school's users, newest first (20 per page by default), filterable by status, role, tags, registration date and custom fields. All filters are ANDed. LearnWorlds: GET /v2/users.

ParameterTypeDescription
custom_fieldsobjectCustom-field filters, e.g. {"cf_skill": "Excel"}. The cf_ prefix is added if missing.
include_suspendedbooleanInclude suspended users (default false).
items_per_pageintegerItems per page, 1-200.
pageintegerPage number, starting at 1.
registration_afternumberRegistered after (Unix timestamp in seconds, e.g. 1626088013).
registration_beforenumberRegistered before (Unix timestamp in seconds, e.g. 1626088013).
rolestring
statusstring
tagsstringComma-separated tags; users with these tags.

learnworlds_get_user Get a user

Fetch one user by id or email — profile, role, tags, sign-up fields, UTMs and last login. LearnWorlds: GET /v2/users/{id}.

ParameterTypeDescription
user *stringThe user's id, or their email address.
include_suspendedbooleanAlso return the user if suspended.

learnworlds_list_user_courses List a user's course enrollments

The courses a user is enrolled in, with enrollment and expiry dates (50 per page). LearnWorlds: GET /v2/users/{id}/courses.

ParameterTypeDescription
user *stringThe user's id, or their email address.
pageintegerPage number, starting at 1.

learnworlds_get_user_course_progress Get a user's progress in a course

A user's progress in one course — status, progress rate, average score, time on course, completed units, and a per-section / per-activity breakdown. LearnWorlds: GET /v2/users/{id}/courses/{cid}/progress.

ParameterTypeDescription
course_id *stringThe course id — the course slug, e.g. "my-first-course".
user *stringThe user's id, or their email address.

learnworlds_list_payments List payments

List payments, newest first (50 per page by default) — product, price, discount, tax, coupon, affiliate, gateway and billing info. All filters are ANDed. LearnWorlds: GET /v2/payments.

ParameterTypeDescription
affiliate_idstringOnly payments referred by this affiliate (id or email).
created_afternumberCreated after (Unix timestamp in seconds, e.g. 1626088013).
created_beforenumberCreated before (Unix timestamp in seconds, e.g. 1626088013).
items_per_pageintegerItems per page, 1-200.
pageintegerPage number, starting at 1.
product_idstringOnly payments for this product id.
product_typestring
user_idstringOnly payments by this user (id or email).

learnworlds_get_payment Get a payment

Fetch one payment by payment id or transaction id. LearnWorlds: GET /v2/payments/{id}.

ParameterTypeDescription
payment_id *stringThe payment id or the transaction id.

learnworlds_list_certificates List certificates

Certificates awarded, newest first (20 per page), for a course and/or a user — at least one of course_id or user_id is required. LearnWorlds: GET /v2/certificates.

ParameterTypeDescription
course_idstringOnly certificates for this course id.
pageintegerPage number, starting at 1.
user_idstringOnly certificates of this user (id or email).

learnworlds_list_user_groups List user groups

List the school's user groups (cohorts / B2B seats), newest first — title, products, group managers, capacity and tags. LearnWorlds: GET /v2/user_groups.

ParameterTypeDescription
pageintegerPage number, starting at 1.

learnworlds_list_event_logs List event logs

The school's activity log (50 per page) — registrations, logins, purchases, enrollments, course completions, certificates, subscription changes and more, filterable by user, activity and time. LearnWorlds: GET /v2/event-logs.

ParameterTypeDescription
activitystringOnly this kind of event.
created_afternumberCreated after (Unix timestamp in seconds, e.g. 1626088013).
created_beforenumberCreated before (Unix timestamp in seconds, e.g. 1626088013).
pageintegerPage number, starting at 1.
sortstringBy creation time; default desc.
user_idstringOnly events of this user (id or email).

learnworlds_create_user Create a user

WRITE: create a learner account. Deliberately no password or admin flag — set send_registration_email so the learner sets their own password. LearnWorlds: POST /v2/users.

ParameterTypeDescription
email *stringThe user's email.
username *stringThe user's username (display name).
fieldsobjectSign-up fields to set, e.g. {"company": "Acme", "phone": "+1..."}. Built-in keys include bio, location, url, phone, address, country, birthday, company, company_size, university, graduation_year and s…
send_registration_emailbooleanSend LearnWorlds' registration email to the user.
signup_validation_rulesbooleanApply the school's sign-up validation rules (default false).
subscribed_for_marketing_emailsbooleanMarketing-email consent.
tagsarrayTags to attach to the new user.

learnworlds_update_user Update a user

WRITE: update a user's email, username, marketing consent, sign-up fields or tags. Only the fields you pass are sent. Passing `tags` REPLACES the tag list — use learnworlds_update_user_tags to add/remove individual tags. LearnWorlds: PUT /v2/users/{id}.

ParameterTypeDescription
user *stringThe user's id, or their email address.
emailstring
fieldsobjectSign-up fields to set, e.g. {"company": "Acme", "phone": "+1..."}. Built-in keys include bio, location, url, phone, address, country, birthday, company, company_size, university, graduation_year and s…
subscribed_for_marketing_emailsboolean
tagsarrayThe complete new tag list (replaces existing tags).
usernamestring

learnworlds_update_user_tags Attach or detach user tags

WRITE: add (attach) or remove (detach) tags on a user, leaving their other tags untouched. Reversible with the opposite action. LearnWorlds: PUT /v2/users/{id}/tags.

ParameterTypeDescription
action *string
tags *arrayThe tags to attach or detach.
user *stringThe user's id, or their email address.

learnworlds_enroll_user Enroll a user in a product

WRITE: manually enroll a user in a course, bundle or subscription. This grants access and records a manual enrollment at the given price (use 0 for a free grant) — it does not charge the learner's card. Optionally emails the learner. LearnWorlds: POST /v2/users/{id}/enrollment.

ParameterTypeDescription
price *numberPrice recorded for this enrollment; 0 for a free grant.
product_id *stringThe product id (for a course, its slug).
product_type *string
user *stringThe user's id, or their email address.
durationintegerSubscriptions only: how many duration_type units.
duration_typestringSubscriptions only.
justificationstringA note, e.g. "Added by admin".
send_enrollment_emailbooleanSend the enrollment email to the learner.

learnworlds_add_user_to_group Add a user to a user group

WRITE: add an existing user to a user group (which may enroll them in the group's products). LearnWorlds: POST /v2/user_groups/{id}/users/{uid}.

ParameterTypeDescription
group_id *stringThe user group id (from learnworlds_list_user_groups).
user *stringThe user's id, or their email address.