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

Duolingo

Latest version: v2.3.0

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
MCP server Transport: stdio Publisher: udondan
6 Stars
3 Forks
4 Versions
TypeScript Repo language

Scan summary

Duolingo was last scanned on 27 Nov 2026 at version 2.3.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 4 versions, all published on 27 Nov 2026.
  • Findings: No rules fired in version 2.3.0.
  • MCP server: Runs over stdio.

Versions

4 versions published
Versions and the rules that fired in each
VersionPublishedStatus
2.3.0 LATEST 27 Nov 2026 No rules fired
2.2.0 27 Nov 2026 No rules fired
2.1.1 27 Nov 2026 No rules fired
2.1.0 27 Nov 2026 Not shown

No rules fired in 2.3.0

Findings

Findings for v2.3.0. 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 2.3.0; other versions have their own rules, not their own score.

README

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

@udondan/duolingo

npm Docker Node.js CI License

[!NOTE] Unofficial community project. Not affiliated with, endorsed or authorized by Duolingo.

A TypeScript package that provides a client library for the Duolingo API, a command line interface (duolingo) and an MCP server for LLM agents (e.g. Claude).

Built natively in TypeScript against the unofficial Duolingo REST API — no third-party Duolingo library dependency.

Table of Contents

  • Getting Your JWT Token
  • CLI
    • Installation
    • Credentials
    • Commands
    • With Docker
  • MCP Server
    • Installation
    • Claude Desktop
    • Claude Code
    • Docker MCP Toolkit
    • Available Tools
  • Library
    • Installation
    • Quick Start
    • API Reference
  • Development
  • Disclaimer

Getting Your JWT Token

The CLI, the MCP server and the library all require a Duolingo JWT token for authentication.

  1. Log in to duolingo.com in your browser.
  2. Open the browser developer console (F12 → Console tab).
  3. Run:
    document.cookie.match(new RegExp('(^| )jwt_token=([^;]+)'))[0].slice(11);
  4. Copy the output — that is your JWT token.

Note: JWT tokens expire. If you get authentication errors, repeat the steps above.


CLI

CLI Installation
npm install -g @udondan/duolingo
duolingo --help

Or run it without installing: npx -y @udondan/duolingo --help.

The CLI and the MCP server are also available as the Docker image udondan/duolingo (amd64 and arm64), no Node.js needed. See With Docker.

Credentials

The CLI reads DUOLINGO_USERNAME and DUOLINGO_JWT from the environment. You can also put them in ~/.config/duolingo/config:

mkdir -p ~/.config/duolingo
cat > ~/.config/duolingo/config <<'EOF'
DUOLINGO_USERNAME=your_username
DUOLINGO_JWT=your_jwt_token
EOF
chmod 0600 ~/.config/duolingo/config

The file is only read when no other user can access it (mode 0600). Environment variables take precedence over the file.

Commands

Output is JSON by default. Use --format markdown (or -f markdown) for the same readable text the MCP tools return.

duolingo streak
duolingo --format markdown progress es
duolingo known-words fr --username someone
duolingo leaderboard --unit month
Command Description
user [-u name] Profile: name, bio, location, followers, languages
settings Account settings
streak [-u name] Current streak, daily goal and longest streak
xp XP earned and lessons completed today
languages [-u name] [-a] Languages being learned (-a for abbreviations)
courses [-u name] All courses, including Math, Chess and Music
switch-course <abbr> [--from abbr] Make another language course the active one
friends Users the authenticated user follows
calendar [-u name] Recent activity of the current course
leaderboard [--unit week\|month] Friends ranked by XP
shop Shop items and prices
health Hearts and refill status
currencies Gem and lingot balances
streak-goal Current streak goal and checkpoints
language <name> [-u name] Level, points and streak of a language (e.g. French)
progress <abbr> Detailed progress in a language (e.g. fr)
known-topics <abbr> [-u name] Learned topics
unknown-topics <abbr> [-u name] Topics not learned yet
golden-topics <abbr> [-u name] Fully mastered topics
reviewable-topics <abbr> [-u name] Learned topics that need review
known-words <abbr> [-u name] Words learned
learned-skills <abbr> [-u name] Learned skills in learning order
voices [abbr] Text-to-speech voices
audio-url <word> [abbr] [--voice v] [--no-random] Pronunciation audio URL
language-name <abbr> [-u name] Full name of a language (fr → French)
abbreviation <name> [-u name] Abbreviation of a language (French → fr)
mcp Start the MCP server (stdio)

Errors go to stderr and the CLI exits with code 1.

With Docker

Arguments after the image name are passed to the CLI. -e NAME without a value takes the variable from your shell:

docker run --rm -e DUOLINGO_USERNAME -e DUOLINGO_JWT udondan/duolingo streak

As an alias, the image behaves like an installed duolingo:

alias duolingo='docker run --rm -e DUOLINGO_USERNAME -e DUOLINGO_JWT udondan/duolingo'

duolingo --format markdown progress es

The config file ~/.config/duolingo/config is not visible inside the container, so pass the credentials as environment variables.


MCP Server

MCP Installation

The server is listed in the MCP Registry as io.github.udondan/duolingo.

Option A — run directly with npx (no install needed):

DUOLINGO_USERNAME=your_username DUOLINGO_JWT=your_jwt npx -y @udondan/duolingo mcp

Option B — install globally:

npm install -g @udondan/duolingo
DUOLINGO_USERNAME=your_username DUOLINGO_JWT=your_jwt duolingo mcp

Option C — run the Docker image:

docker run --rm -i -e DUOLINGO_USERNAME -e DUOLINGO_JWT udondan/duolingo

Without arguments, the image starts the MCP server. -i keeps stdin open, which the server uses to talk to the client.

Option D — clone and build from source:

git clone https://github.com/udondan/duolingo.git
cd duolingo
bun install && bun run build
node dist/cli.js mcp
Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "duolingo": {
      "command": "npx",
      "args": ["-y", "@udondan/duolingo", "mcp"],
      "env": {
        "DUOLINGO_USERNAME": "your_username",
        "DUOLINGO_JWT": "your_jwt_token"
      }
    }
  }
}

With Docker instead of npx, the entry looks like this. -e NAME without a value passes the variable from env to the container:

{
  "mcpServers": {
    "duolingo": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "-e",
        "DUOLINGO_USERNAME",
        "-e",
        "DUOLINGO_JWT",
        "udondan/duolingo"
      ],
      "env": {
        "DUOLINGO_USERNAME": "your_username",
        "DUOLINGO_JWT": "your_jwt_token"
      }
    }
  }
}
Claude Code
claude mcp add duolingo -- npx -y @udondan/duolingo mcp

Then set the environment variables before starting Claude Code:

export DUOLINGO_USERNAME="your_username"
export DUOLINGO_JWT="your_jwt_token"
Docker MCP Toolkit

With the Docker MCP Toolkit of Docker Desktop, the server runs as a container behind the MCP Gateway. The gateway starts the container on demand and passes its tools on to the connected clients. The credentials are stored as secrets in Docker Desktop instead of in plain text in the client configuration.

Requires Docker Desktop with the MCP Toolkit enabled.

  1. Download the server definition docker-mcp.yml and add it to a Toolkit profile. The Toolkit only reads such files from its catalogs directory:

    mkdir -p ~/.docker/mcp/catalogs
    curl -fsSL https://raw.githubusercontent.com/udondan/duolingo/main/docker-mcp.yml -o ~/.docker/mcp/catalogs/duolingo.yml
    
    # new profile "duolingo" ...
    docker mcp profile create --name duolingo --id duolingo --server "file://$HOME/.docker/mcp/catalogs/duolingo.yml"
    # ... or add it to an existing profile
    docker mcp profile server add default --server "file://$HOME/.docker/mcp/catalogs/duolingo.yml"

    The profile keeps the image at the version it had when it was added. Run profile server add again to update.

  2. Store the credentials as secrets (see Getting Your JWT Token):

    docker mcp secret set duolingo.username=your_username
    docker mcp secret set duolingo.jwt=your_jwt_token
  3. Connect a client to the profile:

    docker mcp client connect claude-desktop --profile duolingo

    docker mcp client connect --help lists more clients such as claude-code, cursor or vscode. This also works in Docker Desktop under MCP Toolkit.

docker mcp gateway run --profile duolingo --dry-run --verbose checks the setup without starting a client. The output should end with duolingo: (N tools).

Available Tools

All tools are read-only except duolingo_switch_course, which changes the active course of your account.

Account
Tool Description
duolingo_get_user_info Profile: username, name, bio, location, avatar, followers, learning language
duolingo_get_settings Notification and account settings
duolingo_get_streak_info Current streak, longest streak, daily goal, extended today
duolingo_get_daily_xp_progress XP goal, XP earned today, lessons completed today
duolingo_get_languages Languages being learned (full names or abbreviations)
duolingo_get_courses All courses including Math, Chess, and Music with XP per course
duolingo_switch_course Make another of your language courses the active one (changes the account)
duolingo_get_friends Users the authenticated user follows, with total XP
duolingo_get_calendar Recent activity calendar for the current course (~last 2 weeks)
duolingo_get_leaderboard Authenticated user's friends sorted by XP for week or month
duolingo_get_shop_items Full shop catalogue with prices and item types
duolingo_get_health Current hearts count, max hearts, refill timing
duolingo_get_currencies Gem and lingot balances
duolingo_get_streak_goal Current streak goal with upcoming checkpoints
Language
Tool Description
duolingo_get_language_details Level, points, streak for a specific language
duolingo_get_language_progress Detailed progress: level %, points to next level, fluency
duolingo_get_known_topics Learned topic/skill names
duolingo_get_unknown_topics Not-yet-learned topics
duolingo_get_golden_topics Fully mastered topics (strength = 1.0)
duolingo_get_reviewable_topics Learned but not fully mastered topics
duolingo_get_known_words Set of known words for a language
duolingo_get_learned_skills Full skill objects sorted by learning order
duolingo_get_language_voices Available TTS voice names for a language
duolingo_get_audio_url Pronunciation audio URL for a word

Courses on the learning path no longer fill the legacy skill tree. For the authenticated user's current course, the topic, skill and word tools read it from the current API instead: there, a topic is mastered once all its levels (crowns) are finished, and words come from the Words page. Duolingo only returns this for the active course; for your other courses the tools say so, and duolingo_switch_course makes one of them active. Switching changes the active course in the Duolingo apps too, so the tool is only meant to be used when you ask for it.

Utilities
Tool Description
duolingo_get_language_from_abbr Convert language abbreviation to full name (e.g. fr → French)
duolingo_get_abbreviation_of Convert full language name to abbreviation (e.g. French → fr)

Library

Library Installation
npm install @udondan/duolingo
Quick Start
import { DuolingoClient } from '@udondan/duolingo';

const client = new DuolingoClient('your_username', 'your_jwt_token');

// Get all courses including Math, Chess, and Music
const userData = await client.getUserData();
const userId = userData.id;
const v2 = await client.getUserDataV2(userId);
for (const course of v2.courses) {
  console.log(`${course.subject}: ${course.xp} XP`);
}

// Get streak info
const streak = v2.streak;
const longestStreak = v2.streakData.longestStreak?.length;

// Get friends
const friends = await client.getFollowing(userId);
for (const friend of friends) {
  console.log(`${friend.username}: ${friend.totalXp} XP`);
}

// Get shop items
const items = await client.getShopItems();
const streakFreeze = items.find((i) => i.id === 'streak_freeze');

// Get hearts
const health = await client.getHealth();
console.log(`Hearts: ${health.hearts}/${health.maxHearts}`);

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 io.github.udondan/duolingo

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

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

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

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

Frame 2085668439 (1)
Group 1261154229