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.
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.
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..."
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...
What your agents can do
Every mutation respects the scopes on the API key you issue. Need less access? Create a read-only key.
get_tenant_info, get_tenant_analyticslist_courses, get_course, create_course, update_course, delete_course, attach_module_to_courselist_modules, create_module, update_module, delete_module, set_module_itemslist_videos, create_video, update_video, delete_videolist_documents, create_document, update_document, delete_documentlist_quizzes, create_quiz, update_quiz, delete_quiz, add_quiz_questionlist_users, create_user, update_user, list_enrollments, enroll_user, unenroll_userlist_categories, create_category, update_category, delete_categoryget_upload_url (S3 presigned URL for direct upload)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.
