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.
https://developers.foreverlearning.ai/mcp/learnThree steps
- Copy the URL.
- Add it to your assistant as a remote MCP server over Streamable HTTP. No key, no install.
- 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
codex mcp add learn -- npx -y @foreverlearning/learn-mcp
Then pass your key through, in ~/.codex/config.toml:
[mcp_servers.learn]
command = "npx"
args = ["-y", "@foreverlearning/learn-mcp"]
env_vars = ["FOREVERLEARNING_API_KEY", "FOREVERLEARNING_BASE_URL", "FOREVERLEARNING_ASSIGNMENT_ID"]
In .cursor/mcp.json:
{
"mcpServers": {
"learn": {
"command": "npx",
"args": ["-y", "@foreverlearning/learn-mcp"],
"env": {
"FOREVERLEARNING_API_KEY": "${env:FOREVERLEARNING_API_KEY}",
"FOREVERLEARNING_BASE_URL": "${env:FOREVERLEARNING_BASE_URL}"
}
}
}
}
The easiest way: install the Learn API extension from the Visual Studio Marketplace, then run Learn: Set API key from the Command Palette and paste your key. VS Code keeps it in its secret storage, never in your settings or files. Nothing else to install: no Node, no config.
Or add the server yourself, in .vscode/mcp.json. VS Code asks for your key once and keeps it out of the file:
{
"inputs": [
{ "type": "promptString", "id": "learn-key", "description": "Learn API server key", "password": true }
],
"servers": {
"learn": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@foreverlearning/learn-mcp"],
"env": {
"FOREVERLEARNING_API_KEY": "${input:learn-key}",
"FOREVERLEARNING_BASE_URL": "https://developers-api.foreverlearning.ai/v1"
}
}
}
}
Add a stdio server that runs npx -y @foreverlearning/learn-mcp, with FOREVERLEARNING_API_KEY and FOREVERLEARNING_BASE_URL in its environment. If your key has more than one Learn assignment, add FOREVERLEARNING_ASSIGNMENT_ID.
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