Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

Learn API

Latest version: v0.1.11

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
MCP server Transport: stdio Publisher: foreverlearning-engineering
12 Versions

Scan summary

Learn API was last scanned on 29 Nov 2026 at version 0.1.11. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 12 versions; the latest 5 were published on 29 Nov 2026.
  • Findings: No rules fired in version 0.1.11.
  • MCP server: Runs over stdio.

Versions

12 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.11 LATEST 29 Nov 2026 No rules fired
0.1.10 29 Nov 2026 No rules fired
0.1.9 29 Nov 2026 No rules fired
0.1.8 29 Nov 2026 Not shown
0.1.7 29 Nov 2026 Not shown

No rules fired in 0.1.11

Findings

Findings for v0.1.11. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.1.11; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Learn API for coding assistants

Give your coding assistant the Learn API's own guide, contract and verified Build with Learn kits, plus a test turn with your own key.

@foreverlearning/learn-mcp is an MCP server. Ask your assistant to "add a tutor to this app", and it can read how the Learn API works, follow a kit whose prompt we verify before we publish it, and send one test turn with your key to show you Learn's reply.

What your assistant gets

Tool Needs your key What it does
learn_kit no The Build with Learn kits: with no kit, every kit; with a kit id, that kit's prompt word for word, what the finished app should show, and its finished checkpoint folder.
learn_guide no The Learn integration guide, whole or by topic, and its runnable examples; with page: "performance", "pricing", "security" or "changelog", the developer site's performance page (turn times and the wait), pricing page (both APIs), integration security page and changelog, also as learn://page/{page}.
learn_contract no The OpenAPI contract: every operation, or one operation with its schemas filled in.
learn_starter_file no The files of a kit's checkpoint folder in learn-tutor-starter (MIT): with only kit, the folder's file list and the starter commit; with path, one file.
learn_search no Plain-words search across the guide, the other pages, the contract's operations, the examples, the kits and their checkpoint files. Each match names the call that reads it.
learn_test_turn yes One real test turn, with the cost stated first and your agreement required.
learn_lookup_request yes Looks up a turn by its request id. Free.

It also offers two prompts, first-tutor and embed-learn (the verified prompts for "Your first tutor in ten minutes" and "Embed Learn in your app"), and the guide, contract, examples and kit files as resources.

Before you start

  • Node 24 or later.
  • For test turns: a developer workspace with Learn and a server key from My APIs in the developer console. The docs tools need no key.

Put your key in your environment, not in a config file you commit:

export FOREVERLEARNING_API_KEY=...        # your server key
export FOREVERLEARNING_BASE_URL=https://developers-api.foreverlearning.ai/v1
# export FOREVERLEARNING_ASSIGNMENT_ID=... # only if your key has more than one Learn assignment

To test on staging, set FOREVERLEARNING_BASE_URL=https://developers-api-staging.foreverlearning.ai/v1.

Install

The server reads the key from the environment it starts in. Each tool below passes your environment's variables through to it.

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

On Windows (not WSL), wrap npx: claude mcp add learn -- cmd /c npx -y @foreverlearning/learn-mcp.

To share it with your team in the project's .mcp.json, without the key:

{
  "mcpServers": {
    "learn": {
      "command": "npx",
      "args": ["-y", "@foreverlearning/learn-mcp"],
      "env": {
        "FOREVERLEARNING_API_KEY": "${FOREVERLEARNING_API_KEY}",
        "FOREVERLEARNING_BASE_URL": "${FOREVERLEARNING_BASE_URL:-https://developers-api.foreverlearning.ai/v1}"
      }
    }
  }
}
Codex
codex mcp add learn -- npx -y @foreverlearning/learn-mcp

Then let the variables 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"]
Cursor

In .cursor/mcp.json (this project) or ~/.cursor/mcp.json (every project):

{
  "mcpServers": {
    "learn": {
      "command": "npx",
      "args": ["-y", "@foreverlearning/learn-mcp"],
      "env": {
        "FOREVERLEARNING_API_KEY": "${env:FOREVERLEARNING_API_KEY}",
        "FOREVERLEARNING_BASE_URL": "${env:FOREVERLEARNING_BASE_URL}"
      }
    }
  }
}
VS Code

In .vscode/mcp.json, VS Code asks for the 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"
      }
    }
  }
}
Any other MCP client

Run npx -y @foreverlearning/learn-mcp as a stdio server, with FOREVERLEARNING_API_KEY and FOREVERLEARNING_BASE_URL in its environment.

Docs only, no key

npx -y @foreverlearning/learn-mcp --docs-only serves the docs tools and sends no turns. learn-mcp --http --port 8787 serves the same over Streamable HTTP at http://127.0.0.1:8787/mcp.

Test turns: what they cost

  • Test mode: each test turn uses one of your workspace's 50 free test attempts. They last for the life of the workspace, are shared by all its keys, and never reset. A turn that fails after it is sent also uses one.
  • Live mode: 5¢ per turn that succeeds, from your balance. A turn that fails costs nothing. The server refuses a live key unless you tell your assistant to use it.
  • Before every turn, your assistant shows you the cost and asks. Where your coding tool supports it, you also confirm in a dialog.
  • At most 2 test turns each time the server starts. Set LEARN_MCP_MAX_TURNS (up to 10) for more.
  • One test learner per project. The server keeps one pseudonymous learner and one session for each project folder, so repeated testing adds no new learners and opens no new sessions. It never ends the session and never sends a turn twice. If a turn is not confirmed, it gives you the request id to look up, free.

Preparing a session, looking up a request and every docs tool are free.

Your assistant shows Learn's reply exactly as written: what the tutor says, and the hint to work on.

Your key

Your key stays in your environment. The server sends it only to the Learn API, never shows it in a reply or an error, and never writes it to a file. Never paste it into a conversation.

The server keeps its test learner and session ids (never the key) in ~/.foreverlearning/learn-mcp/state.json.

Settings

Variable Default What it does
FOREVERLEARNING_API_KEY none Your server key. Without it, only the docs tools work.
FOREVERLEARNING_BASE_URL https://developers-api.foreverlearning.ai/v1 The API host.
FOREVERLEARNING_ASSIGNMENT_ID none Your Learn assignment, if your key has more than one.
LEARN_MCP_MAX_TURNS 2 Test turns per server start, at most 10.
LEARN_MCP_CONFIRM_DIALOG on off skips the confirmation dialog; your assistant still asks first.
LEARN_MCP_STATE_DIR ~/.foreverlearning/learn-mcp Where the test learner and session ids are kept.
LEARN_MCP_PROJECT the folder the server starts in Which project the test learner belongs to.
LEARN_MCP_KEY_HELP none For a tool that starts this server its own way: the words that tell a developer with no key how to add one.

The docs inside

The guide, the performance, pricing, security and changelog pages, the contract, examples and kits are a dated snapshot of the developer site, bundled with each release of this package. The learn://snapshot resource says when it was taken. The live guide is always at https://developers.foreverlearning.ai/docs/learn/.

Develop

npm ci
npm test          # unit tests against a mocked Learn API
npm run build
node scripts/snapshot.mjs --docs https://developers.foreverlearning.ai --kits <kits folder> --starter <learn-tutor-starter at its public main>   # refresh the docs snapshot
npm run drift     # is the bundled snapshot still what the developer site says?
Keeping the snapshot in sync (maintainers)

npm run drift (scripts/drift-check.mjs) compares the bundled snapshot with the live developer site and exits 1 on any difference: a guide section added, removed or reworded; a contract file or example changed; a kit the Build with Learn index publishes that the snapshot calls coming soon (a hold in scripts/kits.manifest.json included) or does not know; a kit page that no longer carries the snapshot's prompt word for word, or any line of the snapshot's "what you should see" text, or whose Markdown copy (<page>.md) has a check paragraph the snapshot lacks; and the starter repository's main moving. It reads public pages only (no key, no kits folder). The Conversations package has the same check (packages/conversations-mcp, npm run drift); both share scripts/drift-core.mjs.

It runs in prepack, after the build and the tests. When the site cannot be reached it says so and exits 0, so offline work still packs; MCP_DRIFT_CHECK=skip skips it on purpose. A publish with --ignore-scripts does not run prepack, so run npm run drift yourself first.

When it fails, re-take the snapshot from the live site and release a patch version (package.json, server.json twice, SERVER_VERSION in src/config.ts). Each kit's "what you should see" text is taken from the "Check it works" section of its GUIDE.md in the kits record (the Markdown the developer site publishes), so it carries everything the page says. The snapshot script also warns when a kit's CHECK.md says something its page does not, so wording that is not yet published cannot slip in.

License

MIT. See LICENSE.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • MCP Registry ai.foreverlearning/learn

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Frame 2085668439 (1)
Group 1261154229