Developers

Give your AI agents the keys to your academy

LearnBase ships with a public REST API and a built-in Model Context Protocol server so any AI agent can read and write to your tenant with a single API key.

What is MCP?

Model Context Protocol

MCP is an open protocol from Anthropic that lets AI agents discover and call tools. It is the standard way Claude Desktop, Cursor, and the ChatGPT desktop app connect to external systems.

Every LearnBase tenant exposes an MCP server at /v1/mcp. The server wraps our public API, so AI agents can list your catalog, enroll students, create courses, upload videos, and more — scoped to whatever the API key you issue allows.

One-line install

Add LearnBase to Claude Code in seconds

Paste this into your terminal. Replace YOUR-TENANT with your subdomain and lb_xxx... with your API key.

claude mcp add --transport http learnbase https://api.uselearnbase.com/v1/mcp --header "X-API-Key: lb_xxx..."
Connect in 60 seconds

Plug it into your favorite client

Generate an API key in your dashboard, then paste the snippet below.

Claude Desktop

Add this to your claude_desktop_config.json and restart Claude.

{
  "mcpServers": {
    "learnbase": {
      "url": "https://api.uselearnbase.com/v1/mcp",
      "headers": {
        "X-API-Key": "lb_xxx..."
      }
    }
  }
}

Cursor

Add this to your Cursor MCP settings under Settings → MCP.

{
  "mcpServers": {
    "learnbase": {
      "url": "https://api.uselearnbase.com/v1/mcp",
      "headers": {
        "X-API-Key": "lb_xxx..."
      }
    }
  }
}

ChatGPT

Create a custom connector in ChatGPT pointing at your MCP URL with the X-API-Key header.

URL:     https://api.uselearnbase.com/v1/mcp
Header:  X-API-Key: lb_xxx...
Tools

What your agents can do

Every mutation respects the scopes on the API key you issue. Need less access? Create a read-only key.

Tenant & analytics
get_tenant_info, get_tenant_analytics
Courses & modules
list_courses, get_course, create_course, update_course, delete_course, attach_module_to_course
Courses & modules
list_modules, create_module, update_module, delete_module, set_module_items
Content (videos, docs, quizzes)
list_videos, create_video, update_video, delete_video
Content (videos, docs, quizzes)
list_documents, create_document, update_document, delete_document
Content (videos, docs, quizzes)
list_quizzes, create_quiz, update_quiz, delete_quiz, add_quiz_question
Users & enrollments
list_users, create_user, update_user, list_enrollments, enroll_user, unenroll_user
Courses & modules
list_categories, create_category, update_category, delete_category
File uploads
get_upload_url (S3 presigned URL for direct upload)
Security

You stay in control

Every request is authenticated with an API key you create from your dashboard. Keys are scoped (read:courses, write:users, full:access, etc.) and can be rotated or revoked at any time.

All calls are logged and rate-limited. Agents can only touch data in your tenant — never across tenants. When in doubt, start with a read-only key and expand from there.

Ready to let agents do the work?

Create your API key and paste the snippet into Claude Desktop — you will be creating courses with natural language in under a minute.