# Leetcode MCP Server (MCP server)

> Leetcode MCP Server is an MCP server that adds tools to AI assistants such as Claude Desktop, Claude Code and Cursor. An MCP server enabling automated access to LeetCode's problems, solutions, and public data with optional authentication for user-specific features… It has 155 GitHub stars, is released under the MIT license and runs locally with npx -y @jinzcdev/leetcode-mcp-server.

The LeetCode MCP Server is a Model Context Protocol (MCP) server that provides seamless integration with LeetCode APIs, enabling advanced automation and intelligent interaction with LeetCode's programming problems, contests, solutions, and user data.

## Key facts

| Fact | Value |
|---|---|
| Repository | https://github.com/jinzcdev/leetcode-mcp-server |
| GitHub stars | 155 |
| License | MIT |
| Language | TypeScript |
| Transport | stdio |
| Packages | npm: @jinzcdev/leetcode-mcp-server |
| Remote URL | none |
| Needs API key | no |
| Official | no |
| Works with | Claude Desktop, Claude Code, Cursor, VS Code |
| Category | Other |
| Latest release | v1.4.0 (Jul 12, 2026) |
| Last commit | Oct 18, 2026 |

## Install

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "leetcode-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@jinzcdev/leetcode-mcp-server"
      ],
      "env": {
        "LEETCODE_SITE": "your-value",
        "LEETCODE_SESSION": "your-value"
      }
    }
  }
}
```

Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.

### Claude Code

```sh
claude mcp add --env LEETCODE_SITE=your-value --env LEETCODE_SESSION=your-value --transport stdio leetcode-mcp-server -- npx -y @jinzcdev/leetcode-mcp-server
```

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

```json
{
  "mcpServers": {
    "leetcode-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@jinzcdev/leetcode-mcp-server"
      ],
      "env": {
        "LEETCODE_SITE": "your-value",
        "LEETCODE_SESSION": "your-value"
      }
    }
  }
}
```

Project file; use ~/.cursor/mcp.json to enable it in every project.

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "leetcode-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@jinzcdev/leetcode-mcp-server"
      ],
      "env": {
        "LEETCODE_SITE": "your-value",
        "LEETCODE_SESSION": "your-value"
      }
    }
  }
}
```

Config formats checked against the official docs on 2026-10-07.

## Environment variables

- `LEETCODE_SITE`: Shown in the README's example configuration.
- `LEETCODE_SESSION`: Shown in the README's example configuration.

## Tools

- `get_daily_challenge`: ✅
- `get_problem`: ✅
- `search_problems`: ✅
- `get_user_profile`: ✅
- `get_user_contest_ranking`: ✅
- `get_recent_ac_submissions`: ✅
- `get_recent_submissions`: ✅
- `get_user_status`: ✅
- `get_problem_submission_report`: ✅
- `get_problem_progress`: ✅
- `get_all_submissions`: ✅
- `run_code`: ✅
- `submit_solution`: ✅
- `search_notes`: ❌
- `get_note`: ❌
- `create_note`: ❌
- `update_note`: ❌
- `list_problem_lists`: ✅
- `get_problem_list`: ✅
- `create_problem_list`: ✅
- `update_problem_list`: ✅
- `add_problems_to_list`: ✅
- `remove_problems_from_list`: ✅
- `reorder_problem_list`: ✅
- `list_problem_solutions`: ✅
- `get_problem_solution`: ✅

## Similar MCP servers

- [Wanderlog MCP](https://appsgit.com/mcp-servers/wanderlog-mcp): MCP server for Wanderlog — build and edit trip itineraries through conversation. (158 stars, MIT)
- [KiCad MCP Pro](https://appsgit.com/mcp-servers/kicad-mcp-pro): Production-grade MCP server for KiCad EDA—PCB design, DRC, simulation, BOM, DFM, and manufacturing. (153 stars, MIT)
- [Outline MCP Server](https://appsgit.com/mcp-servers/outline-mcp-server): Connect AI assistants to Outline for document search, reading, and management. (158 stars, MIT, needs API key)
- [Virustotal](https://appsgit.com/mcp-servers/virustotal): MCP server for querying VirusTotal API with comprehensive security analysis tools. (151 stars, MIT, needs API key)
- [OpenFate Bazi MCP](https://appsgit.com/mcp-servers/openfate-bazi-mcp): OpenFate Bazi MCP with True Solar Time, Four Pillars, Da Yun, and branch interactions. (160 stars, MIT)
- [Arxiv Latex MCP](https://appsgit.com/mcp-servers/arxiv-latex-mcp): MCP server that uses arxiv-to-prompt to fetch and process arXiv LaTeX sources for precise interpretation of mathematical expressions in scientific papers. (149 stars, MIT)

---

Canonical page: https://appsgit.com/mcp-servers/leetcode-mcp-server
Source: appsgit (https://appsgit.com), the app store for github. Data from the GitHub API, refreshed daily.
Machine access: JSON API https://appsgit.com/api/v1/apps (OpenAPI: https://appsgit.com/openapi.json), MCP server https://mcp.appsgit.com/mcp, full index https://appsgit.com/llms-full.txt.
