Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 91
  • 0 stars
  • 3k a week
  • MIT
  • Updated

Install Learn API

Built from the published package, never by AI.

claude mcp add learn-api -- npx -y @foreverlearning/learn-mcp

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Learn API in Claude Code

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)
SettingNeededWhat it is
FOREVERLEARNING_API_KEYEnvironment variable, secretOptionalYour Learn server key, from My APIs in the developer console. Needed only for test turns; the docs tools work without it.
FOREVERLEARNING_BASE_URLEnvironment variableOptionalThe API host, ending in /v1. Default: https://developers-api.foreverlearning.ai/v1
FOREVERLEARNING_ASSIGNMENT_IDEnvironment variableOptionalYour 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

A

No 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 →

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.

Learn API Install

Add to stack

Loading.