Developer production · Server APIs
The Learn APIBy ForeverLearning

Build with Learn

Learn works inside your coding assistant.

Add one URL to your coding assistant. No key, no install. It reads the Learn guide, the contract, the examples and the kits, and builds on what Learn really does.

Your MCP server URL
https://developers.foreverlearning.ai/mcp/learn

Three steps

  1. Copy the URL.
  2. Add it to your assistant as a remote MCP server over Streamable HTTP. No key, no install.
  3. Ask for a tutor, in plain words: "Add a chat page where a learner gets tutoring help from the Learn API."

Then try real turns in the Learn Sandbox, with 50 free test attempts in every workspace.

Connect your assistant

Open your coding assistant's MCP settings and add a remote server:

  • URL: https://developers.foreverlearning.ai/mcp/learn
  • Transport: Streamable HTTP
  • Authentication: none

That's it. There is no key to paste and nothing to install.

In your assistant, one line:

Claude Code

claude mcp add --transport http learn https://developers.foreverlearning.ai/mcp/learn

Codex

codex mcp add learn --url https://developers.foreverlearning.ai/mcp/learn

Any other assistant that supports remote MCP servers: add the URL as a Streamable HTTP server, with no authentication.

What your assistant reads

  • The guide and the contract. The Learn integration guide and the OpenAPI contract, so it builds on what Learn does, not on guesses.
  • The examples. Runnable code for every call, with recovery and receipts.
  • The kits. Each Build with Learn kit has a prompt we run in coding assistants before we publish it, and a check of what the finished app shows.

The URL serves documentation only, so it never needs your key.

Test turns from your assistant

Optional. To have your assistant send real test turns with your own key, add the local Learn server as well. Put your server key and the API host in your environment first. Never put the key in a file you commit.

export FOREVERLEARNING_API_KEY=your-server-key
export FOREVERLEARNING_BASE_URL=https://developers-api.foreverlearning.ai/v1

Then add the local server to your tool. It needs Node 24 or later. The VS Code extension needs neither Node nor a config file.

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

On Windows, outside WSL: claude mcp add learn -- cmd /c npx -y @foreverlearning/learn-mcp

What a test turn costs

  • With a test key, each test turn uses one of your workspace's 50 free test attempts. They never reset.
  • With a live key, 5¢ per turn that succeeds. A turn that fails costs nothing. Your assistant uses a live key only when you say so.
  • Your assistant asks first, every time, and sends at most two test turns each time it starts the local server.
  • One test learner per project. Your assistant tests as the same learner every time, and never sends a turn twice.

Your key stays in your own environment. It goes only to the Learn API, and never into a reply, a file or a conversation.

Then ask your assistant for your first tutor.

Build your first tutor