duolingo
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DUOLINGO_JWT | Yes | Your Duolingo JWT token, extracted from the browser cookie jwt_token. Used for authentication by the MCP server. | |
| DUOLINGO_USERNAME | Yes | Your Duolingo username. Used for authentication by the MCP server. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server provides access to Duolingo learning data via the unofficial Duolingo API. You can query user profiles, streak information, language progress, topics, words, TTS audio, and more. Authentication requires DUOLINGO_USERNAME and DUOLINGO_JWT environment variables. To get your JWT token: log in to Duolingo in a browser, open the developer console, and run: document.cookie.match(new RegExp('(^| )jwt_token=([^;]+)'))[0].slice(11)
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| duolingo_get_user_infoA | Get a Duolingo user's profile information. Returns username, full name, bio, location, avatar URL, follower/following counts, learning language, UI language, cohort, admin status, and more. |
| duolingo_get_settingsA | Get the authenticated user's Duolingo account settings. Returns notification preferences and follow/follower relationship flags. Only works for the authenticated user. |
| duolingo_get_streak_infoA | Get a Duolingo user's current streak information. Returns the site-wide streak count, daily XP goal, and whether the streak has been extended today. |
| duolingo_get_daily_xp_progressA | Get the authenticated user's XP progress for today. Returns the daily XP goal, total XP earned today, and a list of lessons completed today. Only works for the authenticated user. |
| duolingo_get_languagesB | Get the list of languages a Duolingo user is currently learning. |
| duolingo_get_friendsA | Get the list of Duolingo users that a given user is following (their friends). Returns each friend's username, display name, and total XP. Only works for the authenticated user. |
| duolingo_get_calendarA | Get a Duolingo user's recent activity calendar. Returns all recent activity entries, sorted newest first. The Duolingo API provides roughly the last 2 weeks of activity. Note: the calendar reflects the currently selected course only (e.g. Spanish, Math, Chess) — not all courses combined. |
| duolingo_get_leaderboardA | Get the XP leaderboard for a Duolingo user's friends. Returns the users they follow, sorted by XP for the given time unit (week or month). Only works for the authenticated user. |
| duolingo_get_coursesA | Get all courses a Duolingo user is enrolled in, including non-language subjects like Math, Chess, and Music. Returns each course's subject, title, XP earned, and course ID. Language courses also include the language code. |
| duolingo_get_shop_itemsA | Get the full Duolingo shop catalogue. Returns all purchasable items with their prices, currency type (gems/lingots), item type, and last-used dates. This is read-only — it does not purchase anything. |
| duolingo_get_healthA | Get the authenticated user's current hearts/health status. Returns heart count, max hearts, refill eligibility, and time until next heart refill. Only works for the authenticated user. |
| duolingo_get_currenciesA | Get the authenticated user's gem and lingot balances. Only works for the authenticated user. |
| duolingo_get_streak_goalA | Get the authenticated user's current streak goal and upcoming checkpoints. Shows the last completed goal, upcoming milestones, and the next selected goal. Only works for the authenticated user. |
| duolingo_get_language_detailsB | Get a user's status and details for a specific language. Returns level, points, streak, and learning status for the given language. |
| duolingo_get_language_progressA | Get detailed progress metrics for a specific language. Returns level, percent to next level, points rank, fluency score, skills learned, and more. |
| duolingo_get_known_topicsC | Get the list of learned topic/skill names for a language. |
| duolingo_get_unknown_topicsB | Get the list of not-yet-learned topics/skills for a language. |
| duolingo_get_golden_topicsA | Get the list of fully mastered ("golden") topics for a language. A golden topic has a strength of 1.0 (fully reviewed). |
| duolingo_get_reviewable_topicsA | Get the list of learned but not fully mastered topics for a language. These are topics that have been started but whose strength is below 1.0, meaning they need review. |
| duolingo_get_known_wordsC | Get the set of words a user has learned in a language. |
| duolingo_get_learned_skillsA | Get full skill objects for all learned skills, sorted by learning order. Returns detailed skill data including title, strength, progress, words, and more. |
| duolingo_get_language_voicesB | Get the available text-to-speech (TTS) voices for a language. Returns a list of voice names. |
| duolingo_get_audio_urlB | Get the URL of a pronunciation audio file for a word. Returns a CloudFront CDN URL pointing to the TTS audio file. |
| duolingo_get_language_from_abbrA | Convert a language abbreviation to its full name. Only works for languages the given user is currently learning. |
| duolingo_get_abbreviation_ofA | Convert a full language name to its abbreviation. Only works for languages the given user is currently learning. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 25 tools
Most tools target distinct data (streak, health, currencies, leaderboard, shop), but several pairs overlap heavily: get_language_details vs get_language_progress both return level/points/streak for one language, get_known_topics vs get_learned_skills return the same learned-skill set at different granularity, and get_languages vs get_courses both enumerate what a user studies. Descriptions help somewhat but an agent can still easily misselect among these.
All 25 tools uniformly use the duolingo_get_<noun> snake_case pattern, which is highly predictable. Minor deviations are the redundant `duolingo_` prefix on every name and awkward noun phrases like get_language_from_abbr and get_abbreviation_of, which don't fit the clean verb_noun shape.
25 tools is at the heavy end for what is essentially a single read-only API surface. The four topic-list tools (known/unknown/golden/reviewable) could be one tool with a filter, so several tools feel like thin wrappers rather than earning their place.
Read coverage is broad (profile, streak, XP, courses, topics, words, leaderboard, shop, health, currencies), but the surface is entirely read-only with no mutation operations, and there are gaps like quests/achievements and any way to act on data. Agents can inspect state but cannot perform the domain's core lifecycle actions.