MonkeyType MCP Server
An MCP server that gives an AI assistant 22 typed tools to query Monkeytype data — profiles, results, stats, streaks, leaderboards and global stats — with public tools working without a key.
Check usernames — test whether a Monkeytype username is free (1–16 chars, no leading dot).
Profiles — fetch a compact or full profile by username/uid (
me/selfkeywords resolve to your configured username), or a one-shot overview combining profile, lifetime stats, streak and last result.Personal stats (need an ApeKey) — completed/started tests and total time typing, personal bests per mode, your tags, current & longest streak, and daily test counts up to 372 days.
Results — list up to 1000 saved results newest-first with limit/offset/timestamp filters, fetch one result by id with chart data, get your latest result, or run
analyze_resultsfor averages, best score, improvement trend and mode/language breakdown.Leaderboards — all-time boards for a language and mode, your own rank, plus daily and weekly-XP boards (when enabled server-side), with paging and friends-only options.
Public data — Monkeytype server configuration/feature flags, PSAs, global tests started/completed and time typed, the WPM speed histogram, and whether quote submissions are open.
Account action — trigger a password reset email (constrained by Monkeytype's captcha, so rarely usable from a client).
Integrates with Codeium's Windsurf through MCP configuration at ~/.codeium/windsurf/mcp_config.json, enabling MonkeyType API access.
Project is hosted on GitHub with repository information provided for accessing source code and contributing.
Provides access to all MonkeyType API endpoints, allowing interaction with user data, test results, leaderboards, and server configuration. Features include retrieving personal bests, user stats, test results, leaderboard data, and checking username availability.
Provides installation methods via npm, including using npx to run the server directly or installing the package globally.
Enables integration with OpenAI's LLM platforms by configuring them to use the MonkeyType MCP server as a tool provider.
Click on "Deploy 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., "@MonkeyType MCP Server show me my typing stats from last week"
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.
Monkeytype MCP
Ask your AI about your typing. A Model Context Protocol server for Monkeytype: profiles, personal bests, saved results, streaks, leaderboards and global stats — exposed as 22 typed tools for Claude, Cursor, VS Code, Windsurf, Zed, or any other MCP client.
You: How has my typing speed trended over my last 50 tests?
Claude: → analyze_results(limit: 50)
Your average is 112 WPM with 97.4% accuracy.
The newer half of your tests averages 5.8 WPM more than the older half — improving.Contents
Related MCP server: Strava MCP Server
Why this server
Complete and current. Every endpoint in the official Monkeytype API (v2.5), including the endpoints that moved in 2025 (
/results/id/{id},/leaderboards/xp/weekly,/quotes/isSubmissionEnabled,/users/currentTestActivity).Public tools need no key. Profiles, global stats, speed histograms and PSAs work out of the box.
Built for LLMs, not for curl. Composite tools (
get_user_overview,analyze_results) collapse four or fifty API calls into one that fits in a context window.Honest failure modes. 401/403/422/429 responses become one-line, actionable messages (including which ApeKey scope is missing).
Production plumbing. Exponential backoff with
Retry-After, per-request timeouts, TTL caching for static endpoints, stdio and Streamable HTTP.Typed and tested. Strict TypeScript, Zod-validated tool inputs, 44 tests over the client, every tool, the MCP handshake and the HTTP transport.
Quick start
1. Get an ApeKey (optional for public tools)
Sign in at monkeytype.com.
Open Account → Ape Keys → Generate new.
Enable the scopes for the endpoints you need (
results:read,users:read,leaderboards:read).Copy the key — Monkeytype only shows it once.
2. Add the server to your client
The package runs on demand through npx; there is nothing to install globally.
Claude Code
claude mcp add monkeytype \
--env MONKEYTYPE_API_KEY=your_ape_key \
--env MONKEYTYPE_USERNAME=your_username \
-- npx -y monkeytype-mcp-serverClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"monkeytype": {
"command": "npx",
"args": ["-y", "monkeytype-mcp-server"],
"env": {
"MONKEYTYPE_API_KEY": "your_ape_key",
"MONKEYTYPE_USERNAME": "your_username"
}
}
}
}Cursor (~/.cursor/mcp.json), Windsurf (~/.codeium/windsurf/mcp_config.json) and Cline use the same shape:
{
"mcpServers": {
"monkeytype": {
"command": "npx",
"args": ["-y", "monkeytype-mcp-server"],
"env": { "MONKEYTYPE_API_KEY": "your_ape_key" }
}
}
}VS Code (.vscode/mcp.json)
{
"servers": {
"monkeytype": {
"type": "stdio",
"command": "npx",
"args": ["-y", "monkeytype-mcp-server"],
"env": { "MONKEYTYPE_API_KEY": "your_ape_key" }
}
}
}Anything else — the generic stdio snippet:
{
"command": "npx",
"args": ["-y", "monkeytype-mcp-server"],
"env": { "MONKEYTYPE_API_KEY": "your_ape_key" }
}Verify the connection before wiring it into a client:
MONKEYTYPE_API_KEY=your_ape_key npx -y monkeytype-mcp-server --checkTools
Authentication column: — means the tool works without an ApeKey.
Profile & user
Tool | Auth | What it does |
| — | Check whether a username is available |
| — | Fetch a profile (compact summary by default, |
| — | Profile + lifetime stats + streak + last result in one call |
| ✓ | Completed tests, started tests, total time typing |
| ✓ | Personal bests for a mode (defaults to |
| ✓ | Your result tags |
| ✓ | Current and longest streak |
| ✓ | Daily test counts (up to 372 days) |
| — | Trigger the reset email (Monkeytype requires a captcha token) |
Results
Tool | Auth | What it does |
| ✓ | Up to 1000 saved results, newest first |
| ✓ | One result, including chart data |
| ✓ | Your most recent result |
| ✓ | Averages, best score, per-mode breakdown and improvement trend |
Leaderboards
Tool | Auth | What it does |
| ✓ | All-time leaderboard for a language and mode |
| ✓ | Your rank on that leaderboard |
| ✓ | Daily leaderboard (when enabled server-side) |
| ✓ | Weekly XP leaderboard (when enabled server-side) |
Public data
Tool | Auth | What it does |
| — | Server configuration and feature flags (cached) |
| — | Public service announcements (cached) |
| — | Global tests started/completed and time typed (cached) |
| — | Users' personal bests grouped by WPM |
| — | Whether quote submissions are open (cached) |
Every tool returns pretty-printed JSON in a text content block. Timestamps are Unix epoch milliseconds.
Example prompts
“How many tests have I completed and how long have I been typing in total?”
“What is my personal best in 60-second time mode?”
“Show the top 10 English 15-second leaderboard and tell me how far I am from rank 1.”
“Analyze my last 100 tests: average WPM, accuracy, and whether I'm improving.”
“Is
swift_foxavailable as a Monkeytype username?”“How does my 15-second WPM compare to the global speed histogram?”
Configuration
Variable | Default | Description |
| — | ApeKey. Required for authenticated tools; public tools work without it. |
| — | Default username/uid for |
|
| Override the API host (useful for proxies). |
|
| Per-request timeout. |
|
| Retries for 429/5xx/network failures. |
|
| TTL for static endpoints. |
|
|
|
|
| Port for the HTTP transport. |
|
| Bind address for the HTTP transport. |
CLI flags mirror the transport settings: --transport, --port, --host, --check, --version, --help.
HTTP transport
For web clients or shared deployments, serve Streamable HTTP instead of stdio:
MONKEYTYPE_API_KEY=your_ape_key npx -y monkeytype-mcp-server --transport http --port 8787MCP endpoint:
POST http://127.0.0.1:8787/mcp(stateless, JSON responses)Health probe:
GET http://127.0.0.1:8787/health
The server binds to localhost by default. If you expose it publicly, put it behind authentication — anyone who can reach it can use your ApeKey.
Docker
docker build -t monkeytype-mcp .
# HTTP transport on :3000
docker run --rm -p 3000:3000 \
-e MONKEYTYPE_API_KEY=your_ape_key \
monkeytype-mcp
# stdio transport (the client talks over stdin/stdout)
docker run -i --rm \
-e MONKEYTYPE_API_KEY=your_ape_key \
monkeytype-mcp \
node dist/cli.js --transport stdioProgrammatic API
The package exports the client, the tool registry and a transport-agnostic server factory:
import { MonkeytypeClient, createServer, loadConfig } from "monkeytype-mcp-server";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
const config = loadConfig({ ...process.env, MONKEYTYPE_API_KEY: "your_ape_key" });
const client = new MonkeytypeClient(config);
const results = await client.get("/results", { query: { limit: 5 } });
console.log(results);
const server = createServer({ config, client });
await server.connect(new StdioServerTransport());Useful exports: MonkeytypeClient, loadConfig, createServer, startHttpServer, TOOLS, MonkeytypeError, VERSION.
Development
npm install
npm run dev # run the CLI from source with reload
npm test # 44 vitest tests
npm run test:coverage
npm run typecheck
npm run lint
npm run build # emit dist/ and .d.ts
node dist/cli.js --checkProject layout:
src/
cli.ts CLI entry point (stdio/http/check)
server.ts McpServer factory + tool registration
client.ts HTTP client: retries, cache, errors
config.ts Environment parsing
errors.ts Actionable error types
tools/ One module per API area
tests/ Client, tool, MCP handshake and HTTP testsPull requests are welcome. Run npm run lint && npm test && npm run build before opening one.
Troubleshooting
Symptom | Fix |
“This tool needs a Monkeytype ApeKey” | Set |
| The key is wrong or was revoked. Generate a new one. |
| The key is missing that scope. Re-create the ApeKey with the matching scope. |
|
|
| Monkeytype limits results to 60/hour (30/day with an ApeKey). The server retries automatically when |
Client can't find the server | Run |
Empty responses | Monkeytype returns empty arrays for “nothing yet” (e.g. no PSAs); that's a valid result, not a bug. |
Legal
This project is not affiliated with, endorsed by, or supported by Monkeytype. It calls the public API using your own credentials. Respect Monkeytype's terms of service and rate limits.
License
MIT © Abhinav Prabhakar
Thanks to Monkeytype for the API and the Model Context Protocol team for the SDK.
Available Tools
22 toolsanalyze_resultsAnalyze recent resultsARead-onlyIdempotent
Aggregate recent results into averages, best score, trend and mode/language breakdown. Cheaper than fetching raw results and doing the math yourself.
Inputs: mode, limit, language, onOrAfterTimestamp.
check_usernameCheck username availabilityARead-onlyIdempotent
Check whether a Monkeytype username is free. Names must be 1-16 characters and not start with a dot. Rate limit: 60/min.
Inputs: name (required).
get_configurationGet server configurationARead-onlyIdempotent
Monkeytype server configuration: enabled features, limits and support information. Cached briefly.
Inputs: no named parameters.
get_current_test_activityGet test activityARead-onlyIdempotent
Daily test counts for the authenticated user (up to 372 days). Handy for streaks and consistency charts.
Inputs: no named parameters.
get_daily_leaderboardGet daily leaderboardARead-onlyIdempotent
Today's leaderboard. Only available when dailyLeaderboards.enabled is true in the server configuration.
Inputs: mode (required), mode2 (required), language (required), page, +2 more.
get_last_resultGet last resultARead-onlyIdempotent
The most recent saved result for the authenticated user, including chart data.
Inputs: no named parameters.
get_leaderboardGet all-time leaderboardARead-onlyIdempotent
All-time Monkeytype leaderboard for a language and mode. Rate limit: 500/hour. Requires an ApeKey.
Inputs: mode (required), mode2 (required), language (required), page, +2 more.
get_leaderboard_rankGet your leaderboard rankARead-onlyIdempotent
The authenticated user's rank on the all-time leaderboard for a language and mode.
Inputs: mode (required), mode2 (required), language (required), friendsOnly.
get_personal_bestsGet personal bestsARead-onlyIdempotent
Personal best scores for the authenticated user in a given mode. Requires the results scope on your ApeKey.
Inputs: mode, mode2.
get_profileGet profileARead-onlyIdempotent
Fetch a Monkeytype profile by username or uid. Defaults to MONKEYTYPE_USERNAME. Returns a compact summary unless compact=false.
Inputs: isUid, compact, uidOrName.
get_psasGet public service announcementsARead-onlyIdempotent
Current Monkeytype PSAs, including maintenance and event notices.
Inputs: no named parameters.
get_result_by_idGet result by idARead-onlyIdempotent
Fetch one saved result by id, including chart data. Ids look like 'abc123def456'. Rate limit: 300/hour.
Inputs: resultId (required).
get_resultsGet resultsARead-onlyIdempotent
Recent typing test results for the authenticated user, newest first. Up to 1000 per call. Rate limit: 60/hour (30/day with an ApeKey).
Inputs: limit, offset, onOrAfterTimestamp.
get_speed_histogramGet speed histogramARead-onlyIdempotent
Number of users' personal bests grouped by WPM (multiples of ten) for a language and mode.
Inputs: mode (required), mode2 (required), language (required).
get_statsGet typing statsBRead-onlyIdempotent
Completed tests, started tests and total time typing for the authenticated user.
Inputs: no named parameters.
get_streakGet streakARead-onlyIdempotent
Current and longest typing streak for the authenticated user.
Inputs: no named parameters.
get_tagsGet tagsARead-onlyIdempotent
List the tags created by the authenticated user.
Inputs: no named parameters.
get_typing_statsGet global typing statsARead-onlyIdempotent
Global number of tests started/completed and total time typed across Monkeytype.
Inputs: no named parameters.
get_user_overviewGet user overviewARead-onlyIdempotent
One-shot snapshot: profile summary, lifetime stats, streak and last result. Fewer round trips than calling four tools.
Inputs: uidOrName.
get_weekly_xp_leaderboardGet weekly XP leaderboardBRead-onlyIdempotent
Weekly XP leaderboard. Only available when leaderboards.weeklyXp.enabled is true in the server configuration.
Inputs: page, pageSize, friendsOnly.
is_submission_enabledIs quote submission enabledARead-onlyIdempotent
Whether Monkeytype is currently accepting quote submissions.
Inputs: no named parameters.
send_forgot_password_emailSend password reset emailARead-onlyIdempotent
Trigger Monkeytype's password reset email. Monkeytype requires a captcha token generated on the website, so this rarely works from an MCP client.
Inputs: email (required), captcha (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 22 tools
Several tools have fuzzy boundaries: get_stats vs get_typing_stats (user vs global totals), get_stats vs get_user_overview (which bundles lifetime stats + streak + last result), and get_current_test_activity all touch overlapping metrics. The leaderboard family and the results family are reasonably distinguishable, but an agent must read descriptions carefully to pick between get_stats, get_user_overview, and get_current_test_activity.
Most tools follow a clean get_<noun> snake_case pattern (get_tags, get_stats, get_results, get_leaderboard_rank). A handful deviate: send_forgot_password_email, is_submission_enabled, check_username, analyze_results — still readable but break the dominant verb_noun convention.
22 tools is on the heavy side for a read-only API wrapper, with some near-duplicates and conditional tools (get_daily_leaderboard, get_weekly_xp_leaderboard) that only work if server config enables them. A few, like send_forgot_password_email, are known to rarely function from an MCP client and arguably don't earn their place.
Coverage of the Monkeytype read surface is strong: profile, stats, results, streaks, PBs, leaderboards, histograms, config, and PSAs are all present. Minor gaps exist — no tools to enumerate languages/modes/themes or fetch quotes, which several parameterized tools implicitly depend on.
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
Enable secure connectivity between Sentry issues and debugging data, and LLM clients, using a Model Context Protocol (MCP) server.
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
Related MCP Servers
- AlicenseBqualityDmaintenanceA Model Context Protocol server that provides language models with access to Strava API data, allowing them to query and analyze athlete activities from Strava.425MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables language models to interact with Strava data, including activities, athlete statistics, routes, achievements, and social features.6MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol Server that enables LLMs to interact with and execute REST API calls through natural language prompts, supporting GET/PUT/POST/PATCH operations on configured APIs.6Apache 2.0
- FlicenseNot gradedqualityDmaintenanceA Python server implementing the Model Context Protocol that exposes tools for querying external APIs, compatible with Claude Desktop and ChatGPT Desktop.-