duo-metrics-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@duo-metrics-mcphow much XP did I earn today?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
duo-metrics-mcp
Personal Duolingo metrics MCP server for AI assistants.
duo-metrics-mcp lets an MCP-compatible assistant answer daily language-learning
questions such as:
Did I practice Duolingo today?
How much XP did I earn today?
How many sessions did I complete?
How much time did I spend practicing?
What is my current streak?
What did my last week or month of Duolingo activity look like?
The server uses Duolingo's unofficial web endpoints. Public profile lookup works without authentication. Daily XP summaries require an authenticated Duolingo web session cookie.
Status
This is an unofficial personal-use MCP server. Duolingo does not publish or support these endpoints for third-party API use, so endpoint behavior can change without notice.
The current implementation is intentionally lightweight:
no database
no background scheduler
no password login
live API reads on demand
optional local ignored session file for authenticated calls
Related MCP server: Strava MCP Server
Tools
duolingo_get_public_profile
Fetches public profile data by username.
Authentication: not required.
Useful for:
user id discovery
public streak data
total XP
active course
course XP split
Input:
{
"username": "JoaoPedroS572669"
}duolingo_get_authenticated_profile
Fetches the richer authenticated profile by user id.
Authentication: required.
Input:
{
"userId": 955434155472097
}duolingo_get_xp_summaries
Fetches daily XP summaries, including sessions, total practice time, and streak extension status.
Authentication: required.
Input:
{
"userId": 955434155472097,
"startDate": "2026-06-01",
"endDate": "2026-06-20",
"timezone": "America/Sao_Paulo",
"readable": true
}Example output:
{
"userId": 955434155472097,
"timezone": "America/Sao_Paulo",
"summaries": [
{
"date": "2026-06-20",
"gainedXp": 353,
"numSessions": 11,
"totalSessionTimeSeconds": 1057,
"totalSessionTimeMinutes": 17.6,
"streakExtended": true,
"frozen": false,
"repaired": false,
"dailyGoalXp": 1,
"shielded": false
}
]
}duolingo_today_status
Returns a compact daily status for assistant workflows.
Authentication: required.
Input:
{
"userId": 955434155472097,
"timezone": "America/Sao_Paulo"
}Example output:
{
"userId": 955434155472097,
"date": "2026-06-20",
"timezone": "America/Sao_Paulo",
"playedToday": true,
"xpToday": 353,
"sessionsToday": 11,
"minutesToday": 17.6,
"streakExtended": true
}duolingo_auth_help
Explains the supported authentication configuration to the assistant.
Authentication: not required.
Requirements
Node.js 20 or newer
npm
an MCP-compatible client that supports stdio servers
Installation
Clone and build:
git clone https://github.com/Tavaresiqueira/duo-metrics-mcp.git
cd duo-metrics-mcp
npm install
npm run buildRun the server manually:
npm startFor development:
npm run devRun the smoke test:
npm run smokeThe smoke test builds the project, starts the MCP server through stdio, lists the available tools, calls the public profile tool, and verifies the missing-auth path for authenticated tools.
Configuration
The server reads defaults from environment variables:
$env:DUOLINGO_USERNAME = "JoaoPedroS572669"
$env:DUOLINGO_USER_ID = "955434155472097"These defaults let assistants call tools without repeating the username or user id on every request.
Authentication
Public profile data does not require authentication.
Daily XP summaries require an authenticated Duolingo session cookie. The server supports two auth modes:
DUOLINGO_COOKIEenvironment variable.duolingo-session.jsonin the repo root
Environment Variable
Set the full Cookie header before starting the MCP server:
$env:DUOLINGO_COOKIE = "jwt_token=...; logged_out_uuid=...; ..."
npm startLocal Session File
Create .duolingo-session.json:
{
"cookie": "jwt_token=...; logged_out_uuid=...; ...",
"createdAt": "2026-06-20T18:00:00Z",
"source": "manual browser session"
}This file is ignored by git.
You can also create it from the environment variable:
$env:DUOLINGO_COOKIE = "jwt_token=...; logged_out_uuid=...; ..."
npm run save-session
Remove-Item Env:\DUOLINGO_COOKIEGetting a Cookie
Use a browser where you are already logged in to Duolingo:
Open
https://www.duolingo.com/learn.Open browser developer tools.
Go to the Network tab.
Reload the page.
Select a request to
www.duolingo.com.Copy the request
Cookieheader.Store it as
DUOLINGO_COOKIEor in.duolingo-session.json.
Do not commit cookies, tokens, or session files.
MCP Client Setup
Use the built server over stdio.
Example config:
{
"mcpServers": {
"duo-metrics": {
"command": "node",
"args": [
"C:\\Users\\joao.siqueira\\Documents\\duo-metrics-mcp\\dist\\index.js"
],
"env": {
"DUOLINGO_USERNAME": "JoaoPedroS572669",
"DUOLINGO_USER_ID": "955434155472097"
}
}
}
}If you want authenticated tools without a .duolingo-session.json file, include
DUOLINGO_COOKIE in the MCP environment block. Prefer the local session file for
personal desktop use so the cookie does not sit in a shared config file.
Best Usage
This MCP works best as a small daily workflow source, not as a full Duolingo clone.
Good assistant prompts:
Check whether I completed Duolingo today.Show my Duolingo XP for the last 7 days.Include my Duolingo streak and today's XP in my evening shutdown.Compare today's Duolingo effort against the last 14 days.Before I stop working, confirm whether my Duolingo streak is safe.Recommended workflow:
Keep
DUOLINGO_USERNAMEandDUOLINGO_USER_IDconfigured.Keep
.duolingo-session.jsonlocal and ignored.Let the assistant call
duolingo_today_statusduring daily check-ins.Use
duolingo_get_xp_summariesfor weekly/monthly review prompts.Refresh the session cookie only when Duolingo starts returning
401.
Troubleshooting
Authenticated tools return missing session
Set DUOLINGO_COOKIE or create .duolingo-session.json.
Authenticated tools return 401
Your session probably expired. Log in to Duolingo in the browser again, copy a
fresh Cookie header, and update .duolingo-session.json.
Public profile lookup fails
Check that the username is the Duolingo username, not the email address. The username is case-insensitive for lookup, but the returned profile may use Duolingo's canonical casing.
Dates look off by one day
Pass the timezone explicitly:
{
"timezone": "America/Sao_Paulo"
}Privacy
This server can access personal Duolingo account data when configured with a
session cookie. Treat .duolingo-session.json like a secret.
The project intentionally avoids password-based login. It only uses an existing web session cookie that you provide.
Development
Useful commands:
npm run build
npm run typecheck
npm run smokeProject layout:
src/index.ts MCP server and tool registration
src/duolingoClient.ts Duolingo endpoint client and normalization
src/config.ts Environment/session-file configuration
src/types.ts Shared TypeScript types
scripts/save-session.mjs
scripts/smoke-test.mjsLimitations
Duolingo endpoints are unofficial.
Session cookies can expire.
Some browser cookies are
HttpOnly, so they cannot be read fromdocument.cookie.The server does not currently persist long-term history.
The server does not currently automate login.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityDmaintenanceIntegrates with the Strava API to allow AI assistants to access fitness data including athlete profiles, activity history, and segment statistics. It enables users to query detailed performance metrics and explore geographic segment data through natural language commands.Last updated8108MIT
- AlicenseBqualityDmaintenanceEnables users to interact with their Strava data through natural language to analyze workouts, track fitness progress, and explore routes. It supports retrieving detailed activity stats, heart rate data, and segment insights directly within AI assistants.Last updated26395MIT
- FlicenseAqualityCmaintenanceEnables AI assistants to access and analyze intervals.icu training data including activities, fitness metrics (CTL/ATL/TSB), wellness stats, and calendar events. Supports natural language querying of athletic performance for training insights and workout planning.Last updated6
- Alicense-qualityDmaintenanceEnables AI assistants to directly access and analyze Strava activity data, including runs, rides, and swims, through natural language queries.Last updated13MIT
Related MCP Connectors
Garmin data in Claude & ChatGPT via the Garmin Health API. OAuth sign-in, no password sharing.
Connect your XP account to AI via Brazil's Open Finance: balances, statements, cards, investments. R
WHOOP recovery, strain, sleep and workouts in Claude via official WHOOP OAuth. Free, open source.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Tavaresiqueira/duo-metrics-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server