LearnWorlds MCP by usefulapi
Check LearnWorlds courses, learners, progress, grades and payments, and enroll or tag users.
Sollte ich dies verwenden
Qualität und Sicherheit
Befunde (3)
- LOWin learnworlds_get_course_contents
- LOWin learnworlds_get_course_analytics
- LOWin learnworlds_get_user_course_progress
Basierend auf einer automatisierten Analyse der Tool-Definitionen und der Einhaltung des Protokolls.
Kontextkosten
Dies ist die ungefähre Anzahl der Tokens, die jedes Mal verbraucht werden, wenn die Tools des Servers in den Kontext eines Modells geladen werden. Höhere Werte verringern die Aufmerksamkeit, die für andere Aufgaben verfügbar ist.
Installieren
Installation mit einem Klick
Fügen Sie dies Ihrer Datei `claude_desktop_config.json` hinzu:
{
"mcpServers": {
"learnworlds": {
"url": "https://learnworlds.usefulapi.io/mcp"
}
}
}Remote-Endpunkte
https://learnworlds.usefulapi.io/mcpstreamable-httpWas es kann
Tool-Inventar
Tools (20)
🟢learnworlds_list_courses(categories, access, page)
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.
Eingabe-Schema
{
"type": "object",
"properties": {
"categories": {
"description": "Comma-separated category names to filter by.",
"type": "string"
},
"access": {
"description": "Only courses with one of these access values.",
"type": "array",
"items": {
"type": "string",
"enum": [
"paid",
"free",
"coming_soon",
"private",
"draft",
"enrollment_closed"
]
}
},
"page": {
"description": "Page number, starting at 1.",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢learnworlds_get_course(course_id)
Fetch one course by id (its slug). LearnWorlds: GET /v2/courses/{id}.
Eingabe-Schema
{
"type": "object",
"properties": {
"course_id": {
"type": "string",
"minLength": 1,
"description": "The course id — the course slug, e.g. \"my-first-course\"."
}
},
"required": [
"course_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢learnworlds_get_course_contents(course_id)
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.
Eingabe-Schema
{
"type": "object",
"properties": {
"course_id": {
"type": "string",
"minLength": 1,
"description": "The course id — the course slug, e.g. \"my-first-course\"."
}
},
"required": [
"course_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢learnworlds_get_course_analytics(course_id)
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.
Eingabe-Schema
{
"type": "object",
"properties": {
"course_id": {
"type": "string",
"minLength": 1,
"description": "The course id — the course slug, e.g. \"my-first-course\"."
}
},
"required": [
"course_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢learnworlds_list_course_users(course_id, page, items_per_page)
The users enrolled in one course, newest first (20 per page by default). LearnWorlds: GET /v2/courses/{id}/users.
Eingabe-Schema
{
"type": "object",
"properties": {
"course_id": {
"type": "string",
"minLength": 1,
"description": "The course id — the course slug, e.g. \"my-first-course\"."
},
"page": {
"description": "Page number, starting at 1.",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
"items_per_page": {
"description": "Items per page, 1-200.",
"type": "integer",
"minimum": 1,
"maximum": 200
}
},
"required": [
"course_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢learnworlds_get_course_grades(course_id, users, learning_units, sort, order, ...)
Assessment grades of the users enrolled in a course — per user and learning unit, with submission time. LearnWorlds: GET /v2/courses/{id}/grades.
Eingabe-Schema
{
"type": "object",
"properties": {
"course_id": {
"type": "string",
"minLength": 1,
"description": "The course id — the course slug, e.g. \"my-first-course\"."
},
"users": {
"description": "Comma-separated user ids to filter by.",
"type": "string"
},
"learning_units": {
"description": "Comma-separated learning-unit ids to filter by (from learnworlds_get_course_contents).",
"type": "string"
},
"sort": {
"description": "Field to sort by.",
"type": "string",
"enum": [
"created",
"submittedTimestamp"
]
},
"order": {
"description": "Sort direction.",
"type": "string",
"enum": [
"asc",
"desc"
]
},
"page": {
"description": "Page number, starting at 1.",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
"items_per_page": {
"description": "Items per page, 1-200.",
"type": "integer",
"minimum": 1,
"maximum": 200
}
},
"required": [
"course_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢learnworlds_list_users(status, role, tags, registration_after, registration_before, ...)
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.
Eingabe-Schema
{
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"paying",
"non_paying",
"suspended",
"never_logged_in"
]
},
"role": {
"type": "string",
"enum": [
"user",
"admin",
"instructor",
"reporter",
"license_reporter"
]
},
"tags": {
"description": "Comma-separated tags; users with these tags.",
"type": "string"
},
"registration_after": {
"description": "Registered after (Unix timestamp in seconds, e.g. 1626088013).",
"type": "number",
"minimum": 0
},
"registration_before": {
"description": "Registered before (Unix timestamp in seconds, e.g. 1626088013).",
"type": "number",
"minimum": 0
},
"include_suspended": {
"description": "Include suspended users (default false).",
"type": "boolean"
},
"custom_fields": {
"description": "Custom-field filters, e.g. {\"cf_skill\": \"Excel\"}. The cf_ prefix is added if missing.",
"type": "object",
"propertyNames": {
"type": "string",
"pattern": "^(cf_)?[A-Za-z0-9_]+$"
},
"additionalProperties": {
"type": "string"
}
},
"page": {
"description": "Page number, starting at 1.",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
"items_per_page": {
"description": "Items per page, 1-200.",
"type": "integer",
"minimum": 1,
"maximum": 200
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢learnworlds_get_user(user, include_suspended)
Fetch one user by id or email — profile, role, tags, sign-up fields, UTMs and last login. LearnWorlds: GET /v2/users/{id}.
Eingabe-Schema
{
"type": "object",
"properties": {
"user": {
"type": "string",
"minLength": 1,
"description": "The user's id, or their email address."
},
"include_suspended": {
"description": "Also return the user if suspended.",
"type": "boolean"
}
},
"required": [
"user"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢learnworlds_list_user_courses(user, page)
The courses a user is enrolled in, with enrollment and expiry dates (50 per page). LearnWorlds: GET /v2/users/{id}/courses.
Eingabe-Schema
{
"type": "object",
"properties": {
"user": {
"type": "string",
"minLength": 1,
"description": "The user's id, or their email address."
},
"page": {
"description": "Page number, starting at 1.",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
}
},
"required": [
"user"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢learnworlds_get_user_course_progress(user, course_id)
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.
Eingabe-Schema
{
"type": "object",
"properties": {
"user": {
"type": "string",
"minLength": 1,
"description": "The user's id, or their email address."
},
"course_id": {
"type": "string",
"minLength": 1,
"description": "The course id — the course slug, e.g. \"my-first-course\"."
}
},
"required": [
"user",
"course_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢learnworlds_list_payments(product_type, product_id, user_id, affiliate_id, created_after, ...)
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.
Eingabe-Schema
{
"type": "object",
"properties": {
"product_type": {
"type": "string",
"enum": [
"course",
"bundle",
"subscription"
]
},
"product_id": {
"description": "Only payments for this product id.",
"type": "string"
},
"user_id": {
"description": "Only payments by this user (id or email).",
"type": "string"
},
"affiliate_id": {
"description": "Only payments referred by this affiliate (id or email).",
"type": "string"
},
"created_after": {
"description": "Created after (Unix timestamp in seconds, e.g. 1626088013).",
"type": "number",
"minimum": 0
},
"created_before": {
"description": "Created before (Unix timestamp in seconds, e.g. 1626088013).",
"type": "number",
"minimum": 0
},
"page": {
"description": "Page number, starting at 1.",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
"items_per_page": {
"description": "Items per page, 1-200.",
"type": "integer",
"minimum": 1,
"maximum": 200
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢learnworlds_get_payment(payment_id)
Fetch one payment by payment id or transaction id. LearnWorlds: GET /v2/payments/{id}.
Eingabe-Schema
{
"type": "object",
"properties": {
"payment_id": {
"type": "string",
"minLength": 1,
"description": "The payment id or the transaction id."
}
},
"required": [
"payment_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢learnworlds_list_certificates(course_id, user_id, page)
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.
Eingabe-Schema
{
"type": "object",
"properties": {
"course_id": {
"description": "Only certificates for this course id.",
"type": "string"
},
"user_id": {
"description": "Only certificates of this user (id or email).",
"type": "string"
},
"page": {
"description": "Page number, starting at 1.",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢learnworlds_list_user_groups(page)
List the school's user groups (cohorts / B2B seats), newest first — title, products, group managers, capacity and tags. LearnWorlds: GET /v2/user_groups.
Eingabe-Schema
{
"type": "object",
"properties": {
"page": {
"description": "Page number, starting at 1.",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢learnworlds_list_event_logs(user_id, activity, created_after, created_before, sort, ...)
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.
Eingabe-Schema
{
"type": "object",
"properties": {
"user_id": {
"description": "Only events of this user (id or email).",
"type": "string"
},
"activity": {
"description": "Only this kind of event.",
"type": "string",
"enum": [
"register",
"login",
"logout",
"purchase",
"manual_enrollment",
"drip_feed_section_unlocked",
"subscription_signup",
"subscription_trial",
"subscription_trial_expired",
"subscription_changed",
"subscription_renewal",
"subscription_cancelled",
"subscription_scheduled_cancellation",
"subscription_reactivated",
"failed_purchase",
"new_affiliate",
"new_affiliate_manual",
"affiliate_deactivated",
"affiliate_payout",
"follow",
"post",
"post_comment",
"post_like",
"award_certificate",
"visit_course",
"complete_course",
"installment_paid",
"payment_plan_completed",
"payment_plan_canceled",
"payment_failed",
"sca_related_events",
"session_scheduled",
"session_attended",
"session_manually_attended",
"group_session_scheduled",
"group_session_attended",
"group_session_manually_attended"
]
},
"created_after": {
"description": "Created after (Unix timestamp in seconds, e.g. 1626088013).",
"type": "number",
"minimum": 0
},
"created_before": {
"description": "Created before (Unix timestamp in seconds, e.g. 1626088013).",
"type": "number",
"minimum": 0
},
"sort": {
"description": "By creation time; default desc.",
"type": "string",
"enum": [
"asc",
"desc"
]
},
"page": {
"description": "Page number, starting at 1.",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴learnworlds_create_user(email, username, send_registration_email, subscribed_for_marketing_emails, signup_validation_rules, ...)
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.
Eingabe-Schema
{
"type": "object",
"properties": {
"email": {
"type": "string",
"format": "email",
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
"description": "The user's email."
},
"username": {
"type": "string",
"minLength": 1,
"description": "The user's username (display name)."
},
"send_registration_email": {
"description": "Send LearnWorlds' registration email to the user.",
"type": "boolean"
},
"subscribed_for_marketing_emails": {
"description": "Marketing-email consent.",
"type": "boolean"
},
"signup_validation_rules": {
"description": "Apply the school's sign-up validation rules (default false).",
"type": "boolean"
},
"fields": {
"description": "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 social links; custom fields use their cf_ key (e.g. cf_skill).",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": [
"string",
"null"
]
}
},
"tags": {
"description": "Tags to attach to the new user.",
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"email",
"username"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴learnworlds_update_user(user, email, username, subscribed_for_marketing_emails, fields, ...)
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}.
Eingabe-Schema
{
"type": "object",
"properties": {
"user": {
"type": "string",
"minLength": 1,
"description": "The user's id, or their email address."
},
"email": {
"type": "string",
"format": "email",
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
},
"username": {
"type": "string",
"minLength": 1
},
"subscribed_for_marketing_emails": {
"type": "boolean"
},
"fields": {
"description": "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 social links; custom fields use their cf_ key (e.g. cf_skill).",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": [
"string",
"null"
]
}
},
"tags": {
"description": "The complete new tag list (replaces existing tags).",
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"user"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴learnworlds_update_user_tags(user, tags, action)
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.
Eingabe-Schema
{
"type": "object",
"properties": {
"user": {
"type": "string",
"minLength": 1,
"description": "The user's id, or their email address."
},
"tags": {
"minItems": 1,
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"description": "The tags to attach or detach."
},
"action": {
"type": "string",
"enum": [
"attach",
"detach"
]
}
},
"required": [
"user",
"tags",
"action"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴learnworlds_enroll_user(user, product_id, product_type, price, justification, ...)
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.
Eingabe-Schema
{
"type": "object",
"properties": {
"user": {
"type": "string",
"minLength": 1,
"description": "The user's id, or their email address."
},
"product_id": {
"type": "string",
"minLength": 1,
"description": "The product id (for a course, its slug)."
},
"product_type": {
"type": "string",
"enum": [
"course",
"bundle",
"subscription"
]
},
"price": {
"type": "number",
"minimum": 0,
"description": "Price recorded for this enrollment; 0 for a free grant."
},
"justification": {
"description": "A note, e.g. \"Added by admin\".",
"type": "string"
},
"duration_type": {
"description": "Subscriptions only.",
"type": "string",
"enum": [
"months",
"weeks",
"days"
]
},
"duration": {
"description": "Subscriptions only: how many duration_type units.",
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
"send_enrollment_email": {
"description": "Send the enrollment email to the learner.",
"type": "boolean"
}
},
"required": [
"user",
"product_id",
"product_type",
"price"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴learnworlds_add_user_to_group(group_id, user)
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}.
Eingabe-Schema
{
"type": "object",
"properties": {
"group_id": {
"type": "string",
"minLength": 1,
"description": "The user group id (from learnworlds_list_user_groups)."
},
"user": {
"type": "string",
"minLength": 1,
"description": "The user's id, or their email address."
}
},
"required": [
"group_id",
"user"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}Community
Nachweis