Learn API
MCP server by foreverlearning-engineering Verified · foreverlearning.ai
Learn API gives coding assistants the guide, OpenAPI contract and verified Build with Learn kits for adding a Learn tutor to an app. It is for developers who want tutoring with learner memory and safety built in. Test turns need a server key.
Install Learn API
Built from the published package, never by AI.
claude mcp add learn-api -- npx -y @foreverlearning/learn-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"learn-api": {
"args": [
"-y",
"@foreverlearning/learn-mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"learn-api": {
"args": [
"-y",
"@foreverlearning/learn-mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"learn-api": {
"args": [
"-y",
"@foreverlearning/learn-mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add learn-api -- npx -y @foreverlearning/learn-mcp{
"mcpServers": {
"learn-api": {
"args": [
"-y",
"@foreverlearning/learn-mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add learn-api npx -y @foreverlearning/learn-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the learn-api block.
About
Learn API is an MCP server that gives a coding assistant the documentation and tools for adding the Learn tutoring system to an app. The assistant can read the Learn integration guide, the OpenAPI contract, and the Build with Learn kits, whose prompts are verified before publishing. It can also search these docs and read starter files from the learn-tutor-starter repository (MIT).
With a server key from the developer console, it can also send one test turn to show Learn's reply. Test turns show the cost first and need your agreement, and the key stays in your environment. The docs tools need no key. The package is for developers who want to build a Learn tutor into their app, with learner memory and safety built in.
Written from the project's README and checked against it.
Tools it gives your assistant
learn_kitLists the Build with Learn kits, or returns one kit's prompt, expected result and checkpoint folder.learn_guideReturns the Learn integration guide, by topic or whole, plus performance, pricing, security and changelog pages.learn_contractReturns the OpenAPI contract, either every operation or one operation with its schemas.learn_starter_fileLists a kit's checkpoint files in learn-tutor-starter, or returns one file by path.learn_searchSearches the guide, pages, contract operations, examples, kits and checkpoint files in plain words.learn_test_turnSends one real test turn with your key, after stating the cost and getting your agreement.learn_lookup_requestLooks up a turn by its request id. This call is free.
What you need
- Node.js 24 or later
- A Learn developer workspace with a server key from My APIs (test turns only)
- An account on the Learn developer console (test turns only)
| Setting | Needed | What it is |
|---|---|---|
FOREVERLEARNING_Environment variable, secret | Optional | Your Learn server key, from My APIs in the developer console. Needed only for test turns; the docs tools work without it. |
FOREVERLEARNING_Environment variable | Optional | The API host, ending in /v1. Default: https://developers-api.foreverlearning.ai/v1 |
FOREVERLEARNING_Environment variable | Optional | Your Learn assignment id, if your key has more than one. |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- Add a tutor to this app using the Learn API
- Show the Learn API contract for one operation
- Find the Build with Learn kit for an embedded tutor
Good to know
- Test turns need a Learn server key; the docs tools work without one.
- Each workspace has 100 free test attempts that never reset.
- Live mode charges 5 cents per successful turn from your balance.
- The docs snapshot is dated and bundled with each release.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Learn API
All alternatives →Turns GitHub repositories into architecture diagrams, written explanations, Mermaid source and narrated explainer videos. Built for developers who want to understand a codebase, and for AI agents that need to read one.
Mocks, records, and chaos-tests HTTP(S) dependencies for development and testing. One port serves many protocols, including gRPC, WebSockets, and LLM chat APIs. Built for developers and testers who need stand-in services during tests.
Provides MCP server and CLI tools that let AI coding agents build, test and manage iOS and macOS projects with Xcode and simulators. It is aimed at developers working on Apple platform apps.
Creates editable draw.io diagrams in AI chat from Mermaid, PlantUML, CSV or draw.io XML. Built for people who want diagrams from text prompts that stay editable in draw.io.
Indexes your code, git history, tests and decisions on your machine so AI coding agents can query the index instead of re-reading files. Built for developers who want fewer files opened and clearer answers about change risk and code health.
Gives your AI assistant hosted codebase intelligence for repos indexed on repowise.dev. Use it to ask how code works, what a change may break, and which tests to run.
Compare with GitDiagram, mockserver or XcodeBuildMCP
Learn API: common questions
Does Learn API need an API key?
Only the test turn and turn lookup tools need a Learn server key. All docs tools work without one.
How much do test turns cost?
In test mode each turn uses one of 100 free attempts in the workspace. In live mode each successful turn costs 5 cents from your balance.
Is my API key shared or saved?
The key stays in your environment and is sent only to the Learn API. The server does not show it in replies or write it to a file.
How do I install Learn API?
In Claude Code run claude mcp add learn-api -- npx -y @foreverlearning/learn-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Learn API the official server?
Learn API is published by foreverlearning.ai from its verified domain in the official MCP Registry.
Is Learn API free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Learn API safe to use?
It scores 91 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Learn API?
Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.
Does Learn API work with ChatGPT?
Yes. Add its server URL in ChatGPT as a custom connector. See MCP in ChatGPT.
