Developer Tools · Education & Learning

Leetcode MCP Server logo

Leetcode MCP Server

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.

Install

npx -y @jinzcdev/leetcode-mcp-server

Client configuration

{
  "mcpServers": {
    "leetcode": {
      "command": "npx",
      "args": [
        "-y",
        "@jinzcdev/leetcode-mcp-server"
      ],
      "env": {
        "LEETCODE_SITE": "<LEETCODE_SITE>",
        "LEETCODE_SESSION": "<LEETCODE_SESSION>"
      }
    }
  }
}

Environment variables

LEETCODE_SITELEETCODE_SESSION
GitHub stars
5
Author
@jinzcdev
Category
Developer Tools, Education & Learning
License
MIT
Updated
Oct 6, 2026

Features

  • Multi-site Support: Support​ both leetcode.com (Global) and leetcode.cn (China) platforms

  • Dual Transport Modes: Run as a stdio process (default) or as a Streamable HTTP server for web-based integrations

  • Problem Data Retrieval: Obtain detailed problem descriptions, constraints, examples, official editorials, and ​user-submitted solutions

  • User Data Access: Retrieve user profiles, submission history, and contest performance

  • Private Data Access: Create and query user notes, track problem-solving progress, and analyze submission details (AC/WA analysis)

  • Advanced Search Capabilities: Filter problems by tags, difficulty levels, categories, and keywords

  • Daily Challenge Access: Easily access daily challenge problems

Tools (19)

  • get_daily_challenge

    Retrieves today's LeetCode Daily Challenge problem

  • get_problem

    Retrieves details for a specific LeetCode problem

  • search_problems

    Searches for LeetCode problems with multiple filter criteria

  • get_user_profile

    Retrieves profile information for a LeetCode user

  • get_user_contest_ranking

    Obtains contest ranking statistics for a user

  • get_recent_ac_submissions

    Retrieves a user's recent accepted submissions

  • get_recent_submissions

    Retrieves a user's recent submissions history

  • get_user_status

    Retrieves current user's current status

  • get_problem_submission_report

    Provides detailed submission analysis for a specific problem

  • get_problem_progress

    Retrieves current user's problem-solving progress

  • get_all_submissions

    Retrieves current user's submission history

  • run_code

    Runs code for a problem and polls /check/ until finished

  • submit_solution

    Submits code for a problem and polls /check/ until finished

  • search_notes

    Searches for user notes with filtering options

  • get_note

    Retrieves notes for a specific problem by question ID

  • create_note

    Creates a new note for a specific problem

  • update_note

    Updates an existing note with new content

  • list_problem_solutions

    Retrieves a list of community solutions for a specific problem

  • get_problem_solution

    Retrieves the complete content of a specific solution

Details on this page are taken from the project's README. Open README

Related MCP servers

More servers
Playwright logo

Playwright

microsoft/playwright

72.2k

Playwright is a framework for web automation and testing. It drives Chromium, Firefox, and WebKit with a single API — in your tests, in your scripts, and as a tool for AI agents.

Developer Tools
repomix logo

repomix

yamadashy/repomix

15.2k

Repomix is a tool that packs a codebase into an AI-friendly format, supporting local and remote repository processing and providing code compression, security checks and multiple output formats.

Developer Tools
UI-TARS-desktop logo

UI-TARS-desktop

bytedance/UI-TARS-desktop

12.9k

TARS is ByteDance's multimodal AI agent stack, shipping two projects: Agent TARS (a CLI and Web UI agent built on MCP) and UI-TARS-desktop (a desktop GUI agent).

Developer Tools
blender logo

blender

ahujasid/blender-mcp

10.6k

formerly blender-mcp — the PyPI package is now mcp-for-blender. Existing setups keep working; no config change is required. Read more.

Developer Tools
Playwright Browser Automation logo

Playwright Browser Automation

microsoft/playwright-mcp

9.2k

A Model Context Protocol (MCP) server that provides browser automation capabilities using Playwright. This server enables LLMs to interact with web pages through structured accessibility snapshots, bypassing the need for screenshots or visually-tuned models.

Developer Tools
2344 logo

2344

comet-ml/opik

7k

Opik is the open-source LLM observability and evaluation platform for AI agent tracing, LLM evaluation, prompt management, and production monitoring. Built by Comet. Apache-2.0 licensed, free to self-host the full platform, with 20,000+ GitHub stars.

Developer Tools