LearnWorlds MCP by usefulapi
v1.41.1Check 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.
| Parameter | Type | Description |
|---|---|---|
access | array | Only courses with one of these access values. |
categories | string | Comma-separated category names to filter by. |
page | integer | Page number, starting at 1. |
learnworlds_get_course Get a course
Fetch one course by id (its slug). LearnWorlds: GET /v2/courses/{id}.
| Parameter | Type | Description |
|---|---|---|
course_id * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
course_id * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
course_id * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
course_id * | string | The course id — the course slug, e.g. "my-first-course". |
items_per_page | integer | Items per page, 1-200. |
page | integer | Page 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.
| Parameter | Type | Description |
|---|---|---|
course_id * | string | The course id — the course slug, e.g. "my-first-course". |
items_per_page | integer | Items per page, 1-200. |
learning_units | string | Comma-separated learning-unit ids to filter by (from learnworlds_get_course_contents). |
order | string | Sort direction. |
page | integer | Page number, starting at 1. |
sort | string | Field to sort by. |
users | string | Comma-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.
| Parameter | Type | Description |
|---|---|---|
custom_fields | object | Custom-field filters, e.g. {"cf_skill": "Excel"}. The cf_ prefix is added if missing. |
include_suspended | boolean | Include suspended users (default false). |
items_per_page | integer | Items per page, 1-200. |
page | integer | Page number, starting at 1. |
registration_after | number | Registered after (Unix timestamp in seconds, e.g. 1626088013). |
registration_before | number | Registered before (Unix timestamp in seconds, e.g. 1626088013). |
role | string | |
status | string | |
tags | string | Comma-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}.
| Parameter | Type | Description |
|---|---|---|
user * | string | The user's id, or their email address. |
include_suspended | boolean | Also 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.
| Parameter | Type | Description |
|---|---|---|
user * | string | The user's id, or their email address. |
page | integer | Page 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.
| Parameter | Type | Description |
|---|---|---|
course_id * | string | The course id — the course slug, e.g. "my-first-course". |
user * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
affiliate_id | string | Only payments referred by this affiliate (id or email). |
created_after | number | Created after (Unix timestamp in seconds, e.g. 1626088013). |
created_before | number | Created before (Unix timestamp in seconds, e.g. 1626088013). |
items_per_page | integer | Items per page, 1-200. |
page | integer | Page number, starting at 1. |
product_id | string | Only payments for this product id. |
product_type | string | |
user_id | string | Only 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}.
| Parameter | Type | Description |
|---|---|---|
payment_id * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
course_id | string | Only certificates for this course id. |
page | integer | Page number, starting at 1. |
user_id | string | Only 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.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page 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.
| Parameter | Type | Description |
|---|---|---|
activity | string | Only this kind of event. |
created_after | number | Created after (Unix timestamp in seconds, e.g. 1626088013). |
created_before | number | Created before (Unix timestamp in seconds, e.g. 1626088013). |
page | integer | Page number, starting at 1. |
sort | string | By creation time; default desc. |
user_id | string | Only 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.
| Parameter | Type | Description |
|---|---|---|
email * | string | The user's email. |
username * | string | The user's username (display name). |
fields | object | Sign-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_email | boolean | Send LearnWorlds' registration email to the user. |
signup_validation_rules | boolean | Apply the school's sign-up validation rules (default false). |
subscribed_for_marketing_emails | boolean | Marketing-email consent. |
tags | array | Tags 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}.
| Parameter | Type | Description |
|---|---|---|
user * | string | The user's id, or their email address. |
email | string | |
fields | object | Sign-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_emails | boolean | |
tags | array | The complete new tag list (replaces existing tags). |
username | string |
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.
| Parameter | Type | Description |
|---|---|---|
action * | string | |
tags * | array | The tags to attach or detach. |
user * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
price * | number | Price recorded for this enrollment; 0 for a free grant. |
product_id * | string | The product id (for a course, its slug). |
product_type * | string | |
user * | string | The user's id, or their email address. |
duration | integer | Subscriptions only: how many duration_type units. |
duration_type | string | Subscriptions only. |
justification | string | A note, e.g. "Added by admin". |
send_enrollment_email | boolean | Send 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}.
| Parameter | Type | Description |
|---|---|---|
group_id * | string | The user group id (from learnworlds_list_user_groups). |
user * | string | The user's id, or their email address. |