Duolingo

v3.0.0
io.github.udondan/duolingo Checked 2 hours ago Published 3 days ago

Duolingo profile, streak, XP, courses, words and friends; can switch the active course

Values you need

VariableWhat it is
DUOLINGO_USERNAMErequired Duolingo username
DUOLINGO_JWTrequired secret Duolingo JWT token (the jwt_token cookie of a logged-in browser session)

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add duolingo -e 'DUOLINGO_JWT=<DUOLINGO_JWT>' -e 'DUOLINGO_USERNAME=<DUOLINGO_USERNAME>' -- npx -y @udondan/duolingo@3.0.0 mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "duolingo": {
      "args": [
        "-y",
        "@udondan/duolingo@3.0.0",
        "mcp"
      ],
      "command": "npx",
      "env": {
        "DUOLINGO_JWT": "<DUOLINGO_JWT>",
        "DUOLINGO_USERNAME": "<DUOLINGO_USERNAME>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "duolingo": {
      "args": [
        "-y",
        "@udondan/duolingo@3.0.0",
        "mcp"
      ],
      "command": "npx",
      "env": {
        "DUOLINGO_JWT": "<DUOLINGO_JWT>",
        "DUOLINGO_USERNAME": "<DUOLINGO_USERNAME>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "DUOLINGO_JWT",
      "id": "duolingo-jwt",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "DUOLINGO_USERNAME",
      "id": "duolingo-username",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "duolingo": {
      "args": [
        "-y",
        "@udondan/duolingo@3.0.0",
        "mcp"
      ],
      "command": "npx",
      "env": {
        "DUOLINGO_JWT": "${input:duolingo-jwt}",
        "DUOLINGO_USERNAME": "${input:duolingo-username}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.duolingo]
command = "npx"
args = ["-y", "@udondan/duolingo@3.0.0", "mcp"]
env = { "DUOLINGO_JWT" = "<DUOLINGO_JWT>", "DUOLINGO_USERNAME" = "<DUOLINGO_USERNAME>" }

For AI agents

  1. Ask the user for: DUOLINGO_USERNAME, DUOLINGO_JWT. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: duolingo_get_user_info, duolingo_get_settings, duolingo_get_streak_info, duolingo_get_daily_xp_progress, duolingo_get_languages, duolingo_get_friends, duolingo_get_calendar, duolingo_get_leaderboard, ….
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json