# Monkeytype

> Monkeytype is an open-source MCP server for games and play. Monkeytype profiles, results, streaks and leaderboards as 22 MCP tools. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API
- **Repository:** https://github.com/abhinav-prabhakar/monkeytypemcp
- **MCP Registry name:** io.github.Abhinav-Prabhakar/monkeytype-mcp
- **Categories:** [games and play](https://ai-powered.com/categories/games-and-play), [analytics and data](https://ai-powered.com/categories/analytics-and-data)
- **Listing updated:** 2026-11-23

## About

Typing-test history is awkward to analyse by hand, so this server wraps the official Monkeytype API and adds two composite tools that return a lot in one call. One gives a profile with lifetime stats, streak and latest result; the other averages your recent results, shows a per-mode breakdown and says whether you are improving.

Public tools such as profiles, global typing stats and the speed histogram need no key. Tools that read your own results, personal bests, tags, streaks or leaderboard rank need an ApeKey generated in your Monkeytype account, with scopes like results:read, users:read and leaderboards:read. Error responses are turned into short messages that name the missing scope.

It runs over stdio or Streamable HTTP, retries with backoff, honours Retry-After and caches static endpoints. Timestamps come back as Unix milliseconds, and each tool returns pretty-printed JSON. It suits typists who want trend questions answered in chat.

## Features

- **Trend analysis:** One tool averages recent results, breaks them down by mode and reports improvement.
- **Overview in one call:** A single tool combines profile, lifetime stats, streak and last result.
- **Leaderboards:** Reads all-time, daily and weekly XP leaderboards and your rank.
- **Public tools without a key:** Profiles, global stats and the speed histogram work with no ApeKey.
- **Scoped errors:** Auth failures name the ApeKey scope that is missing.
- **Stdio and HTTP:** Runs locally over stdio or as a Streamable HTTP server.

## Good for

- Check whether your WPM is improving over the last 100 tests
- Compare your 15-second speed with the global histogram
- See how far you are from rank 1 on a leaderboard
- Check if a Monkeytype username is free

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add monkeytype-mcp --env MONKEYTYPE_API_KEY='<MONKEYTYPE_API_KEY>' -- npx -y monkeytype-mcp-server
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "monkeytype-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "monkeytype-mcp-server"
      ],
      "env": {
        "MONKEYTYPE_API_KEY": "<MONKEYTYPE_API_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "monkeytype-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "monkeytype-mcp-server"
      ],
      "env": {
        "MONKEYTYPE_API_KEY": "<MONKEYTYPE_API_KEY>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "monkeytype-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "monkeytype-mcp-server"
      ],
      "env": {
        "MONKEYTYPE_API_KEY": "<MONKEYTYPE_API_KEY>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "monkeytype-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "monkeytype-mcp-server"
      ],
      "env": {
        "MONKEYTYPE_API_KEY": "<MONKEYTYPE_API_KEY>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add monkeytype-mcp --env MONKEYTYPE_API_KEY='<MONKEYTYPE_API_KEY>' -- npx -y monkeytype-mcp-server
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.monkeytype-mcp]
command = "npx"
args = ["-y", "monkeytype-mcp-server"]
env = { MONKEYTYPE_API_KEY = "<MONKEYTYPE_API_KEY>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "monkeytype-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "monkeytype-mcp-server"
      ],
      "env": {
        "MONKEYTYPE_API_KEY": "<MONKEYTYPE_API_KEY>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e MONKEYTYPE_API_KEY='<MONKEYTYPE_API_KEY>' monkeytype-mcp npx -- -y monkeytype-mcp-server

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "monkeytype-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "monkeytype-mcp-server"
      ],
      "env": {
        "MONKEYTYPE_API_KEY": "<MONKEYTYPE_API_KEY>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "monkeytype-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "monkeytype-mcp-server"
      ],
      "env": {
        "MONKEYTYPE_API_KEY": "<MONKEYTYPE_API_KEY>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "monkeytype-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "monkeytype-mcp-server"
      ],
      "env": {
        "MONKEYTYPE_API_KEY": "<MONKEYTYPE_API_KEY>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "monkeytype-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "monkeytype-mcp-server"
      ],
      "env": {
        "MONKEYTYPE_API_KEY": "<MONKEYTYPE_API_KEY>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "monkeytype-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "monkeytype-mcp-server"
      ],
      "env": {
        "MONKEYTYPE_API_KEY": "<MONKEYTYPE_API_KEY>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "monkeytype-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "monkeytype-mcp-server"
      ],
      "env": {
        "MONKEYTYPE_API_KEY": "<MONKEYTYPE_API_KEY>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "monkeytype-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "monkeytype-mcp-server"
      ],
      "env": {
        "MONKEYTYPE_API_KEY": "<MONKEYTYPE_API_KEY>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "monkeytype-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "monkeytype-mcp-server"
      ],
      "env": {
        "MONKEYTYPE_API_KEY": "<MONKEYTYPE_API_KEY>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 22 tools changes data; 1 name doesn't say. From the server's own tool labels and tool names; not verified by us.

- `check_username` (name suggests: reads): Check whether a username is available
- `get_profile` (name suggests: reads): Fetch a profile
- `get_user_overview` (name suggests: reads): Profile, lifetime stats, streak and last result in one call
- `get_stats` (name suggests: reads): Completed tests, started tests and total typing time
- `get_personal_bests` (name suggests: reads): Personal bests for a mode
- `get_tags` (name suggests: reads): Your result tags
- `get_streak` (name suggests: reads): Current and longest streak
- `get_current_test_activity` (name suggests: reads): Daily test counts
- `send_forgot_password_email` (name suggests: changes): Trigger the password reset email
- `get_results` (name suggests: reads): Up to 1000 saved results, newest first
- `get_result_by_id` (name suggests: reads): One result including chart data
- `get_last_result` (name suggests: reads): Your most recent result
- `analyze_results` (name suggests: reads): Averages, best score, per-mode breakdown and trend
- `get_leaderboard` (name suggests: reads): All-time leaderboard for a language and mode
- `get_leaderboard_rank` (name suggests: reads): Your rank on a leaderboard
- `get_daily_leaderboard` (name suggests: reads): Daily leaderboard
- `get_weekly_xp_leaderboard` (name suggests: reads): Weekly XP leaderboard
- `get_configuration` (name suggests: reads): Server configuration and feature flags
- `get_psas` (name suggests: reads): Public service announcements
- `get_typing_stats` (name suggests: reads): Global tests started and completed and time typed
- `get_speed_histogram` (name suggests: reads): Personal bests grouped by WPM
- `is_submission_enabled`: Whether quote submissions are open

## FAQ

### Do I need an API key?

Only for tools that read your own data; public tools work without one.

### Where do I get a key?

In Monkeytype under Account, Ape Keys, then generate a new key with the scopes you need.

### How many tools are there?

22.

### How do I verify the setup?

Run the package with the --check flag and your key set.

### Is Monkeytype free?

Yes. Monkeytype is open source, so you can use and self-host it for free.

### How do I add Monkeytype to Claude Code?

Run this command in your terminal: claude mcp add monkeytype-mcp --env MONKEYTYPE_API_KEY='<MONKEYTYPE_API_KEY>' -- npx -y monkeytype-mcp-server

### What are the best alternatives to Monkeytype?

The closest alternatives to Monkeytype are Agent-Native Analytics, dashboard-icons, Google Ads + Meta Ads + SEO/GEO MCP, Tapetide - Indian Stock Market MCP and Pitot.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Agent-Native Analytics](https://ai-powered.com/mcp/agent-native-analytics): Agent-Native Analytics is an open-source MCP server for analytics and data.
- [dashboard-icons](https://ai-powered.com/mcp/dashboard-icons): dashboard-icons is an open-source MCP server for analytics and data.
- [Google Ads + Meta Ads + SEO/GEO MCP](https://ai-powered.com/mcp/google-ads-meta-ads-seo-geo-mcp): Google Ads + Meta Ads + SEO/GEO MCP is a freemium MCP server for marketing and seo.
- [Tapetide - Indian Stock Market MCP](https://ai-powered.com/mcp/tapetide-indian-stock-market-mcp): Tapetide - Indian Stock Market MCP is a freemium MCP server for finance and payments.
- [Pitot](https://ai-powered.com/mcp/pitot): Pitot is an open-source MCP server for cloud and infrastructure.
- [World Monitor](https://ai-powered.com/mcp/world-monitor): World Monitor is a freemium MCP server for analytics and data.
- [Australian Economic Data (ABS, RBA & APRA)](https://ai-powered.com/mcp/australian-economic-data-abs-rba-and-apra): Australian Economic Data (ABS, RBA & APRA) is an open-source MCP server for analytics and data.
- [Datatomcp](https://ai-powered.com/mcp/datatomcp-2): Datatomcp is a freemium MCP server for analytics and data.

---
Source: https://ai-powered.com/mcp/monkeytype
