Learn API
The learning system for your app: tutoring with memory and safety on our Cognitive Operating System.
Should I use this
Quality & Safety
Findings (2)
- HIGH
- MEDIUMin learn_guide
Based on automated analysis of tool definitions and protocol compliance.
Context Cost
This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.
Install
One-Click Install
Add this to your `claude_desktop_config.json` file:
{
"mcpServers": {
"learn": {
"command": "npx",
"args": [
"@foreverlearning/learn-mcp"
]
}
}
}Runnable packages
0.1.13stdioRemote endpoints
https://developers.foreverlearning.ai/mcp/learnstreamable-httpWhat it can do
Tool inventory
Tools (5)
🟢learn_guide(topic, example, page)
Read the Learn API integration guide (snapshot of 2026-11-30, learn-mcp 0.1.13), whole or by topic, or one of its runnable examples. Runnable examples are here; a kit's finished code is in learn_starter_file. Use it for any question about building with the Learn API: preparing a session, the four kinds of help, sending a turn and accepting it only on its final done event, the safety status, receipts, errors and recovery. For exact request and response fields, use learn_contract. Answer only from what it says; if it does not cover something, say so instead of guessing. Topics: access, setup, content, display-name, learner, learner-id, controls, diagnostic, files, turn, safety, team, receipts, timing, saved, open-session, long-sessions, recovery, errors, privacy, price, examples. Examples: README.md, prepare.mjs, quest.ts, quest.py, quest.sh, server.ts. Other guide pages, with page: performance (Fast today. Faster every release., https://developers.foreverlearning.ai/docs/performance/; topics: expect, by-turn-type, edge-cases, faster, checked-first, wait); pricing (Pay only for what you use., https://developers.foreverlearning.ai/pricing/; topics: 5-per-turn-that-succeeds, 3-per-text-turn, memory-that-outlives-the-session, safety-that-reads-the-whole-conversation, understand-what-youll-pay, an-api-built-for-your-organization); security (Build the boundary into your integration., https://developers.foreverlearning.ai/security/; topics: keep-secrets-on-the-server, protect-account-changes, respect-the-person-behind-the-conversation, make-escalation-explicit, report-a-concern); changelog (Know what the contract says., https://developers.foreverlearning.ai/changelog/; topics: 100-free-attempts-with-learn-and-conversations, learn-replies-arrive-as-soon-as-they-are-checked, fifty-free-attempts-with-learn-and-conversations, learn-learning-sessions, replies-regenerate-before-a-turn-fails, failed-turns-resolve-cleanly, characters-that-carry-the-moment, conversations-api-released, current-conversation-contract-documented). Read performance for what to expect from turn times and how to design the wait, pricing for what each API costs, security for keys, account changes, end users and escalation, changelog for what changed in the API and when.
Input Schema
{
"type": "object",
"properties": {
"topic": {
"description": "A topic id from the list (for example \"turn\", \"safety\", \"errors\") or words from its heading. Leave it out for the whole guide.",
"type": "string",
"maxLength": 200
},
"example": {
"description": "A runnable example file to read instead, for example \"quest.ts\" or \"README.md\".",
"type": "string",
"maxLength": 200
},
"page": {
"description": "Another guide page to read instead of the integration guide: \"performance\", \"pricing\", \"security\", \"changelog\"; with topic, one of its sections.",
"type": "string",
"maxLength": 200
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢learn_contract(operation, file)
Read the Learn API contract (OpenAPI 3.1 and JSON Schema, snapshot of 2026-11-30). With no arguments: every operation, by method, path and operationId. With operation (an operationId such as "developerChat", or "POST /v1/chat"): that operation with every schema it uses filled in. With file: one whole contract file (large). Use only fields the contract defines. For how and why to use an operation, use learn_guide.
Input Schema
{
"type": "object",
"properties": {
"operation": {
"description": "An operationId, or a method and path such as \"GET /v1/requests/{request_id}\".",
"type": "string",
"maxLength": 200
},
"file": {
"description": "One whole contract file.",
"type": "string",
"enum": [
"learn.openapi.json",
"learn-v1.schema.json",
"developer-runtime.openapi.json",
"developer-runtime.schema.json"
]
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢learn_kit(kit)
With no kit, list every Build with Learn kit; with a kit id, read that kit: where to run it, its verified prompt word for word, its check (what the finished app shows, with a real reply), and its finished checkpoint folder in learn-tutor-starter. The kits are step-by-step builds with the Learn API, from a first tutor page to embedding Learn in an existing app; each prompt for coding assistants is verified as written. Start here, with no kit, when the developer wants to add tutoring, a tutor, homework help or learning help to an app with the Learn API. Kits: 01-first-tutor, 02-four-kinds-of-help, 03-photos-of-work, 04-remember-the-learner, 05-safety-status, embed, class. The checkpoint folder's files are in learn_starter_file.
Input Schema
{
"type": "object",
"properties": {
"kit": {
"description": "A kit id such as \"01-first-tutor\" or \"embed\", a step number, or words from its title. Leave it out to list every kit.",
"type": "string",
"maxLength": 200
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢learn_starter_file(kit, path)
List or read the files of a kit's finished checkpoint folder in learn-tutor-starter (MIT). These are a kit's finished checkpoint files; the guide's standalone runnable examples are in learn_guide. With only kit, list the folder's files; with path, read one file. The kit itself (prompt, check) is in learn_kit.
Input Schema
{
"type": "object",
"properties": {
"kit": {
"type": "string",
"maxLength": 200,
"description": "The kit id, for example \"01-first-tutor\"."
},
"path": {
"description": "A file path inside the kit folder, for example \"learn.ts\" or \"public/app.js\". Leave it out to list the folder's files.",
"type": "string",
"maxLength": 300
}
},
"required": [
"kit"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢learn_search(query)
Search the Learn API docs by plain words. Returns matching guide sections, pages, contract operations, examples and kits, each with the call that reads it. Use it when you don't know where something lives; when you do, call the specific tool directly.
Input Schema
{
"type": "object",
"properties": {
"query": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Plain words, for example \"photo upload\", \"what changed\" or \"developerChat\"."
}
},
"required": [
"query"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}Community
Evidence