Feedback

LeetCode MCP Server (Developer Tools)

@jinzcdev Claim

Basic information

Runtime
TypeScript
Version
1.0.0
Category
License
MIT
Transports
stdio
Author
jinzcdev
Submitted by
Community
Quality
10
Stars
95

About LeetCode MCP Server

Access LeetCode problems, user profiles, and community solutions for improved algorithm practice and LeetCode 75 contest prep.

LeetCode is a MCP server in the Developer Tools category listed in the AddMCP.net directory, published by jinzcdev. Supported transport: stdio. Runtime: TypeScript. License: MIT. The repository has 95 GitHub stars. Source code is hosted on github.com. Related topics: automation, community, developer-tools, leetcode, mcp-server.

Setup

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

LeetCode MCP Server (Developer Tools) config

Add this server to your MCP-compatible client using the configuration below.

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

LeetCode MCP Server (Developer Tools) tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is LeetCode?

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. It supports both leetcode.com (Global) and leetcode.cn (China) platforms.

How to use LeetCode?

Install the npm package globally or run it with npx. Configure it using command-line arguments (--site, --session) or environment variables (LEETCODE_SITE, LEETCODE_SESSION). Integrate with MCP‑compatible clients (e.g., VS Code) by adding a JSON configuration to your user settings. Tools are invoked through the MCP client after setup.

Key features of LeetCode

  • Multi-site support for leetcode.com and leetcode.cn
  • Retrieve problem descriptions, constraints, examples, official editorials, and user‑submitted solutions
  • Access user profiles, submission history, and contest performance
  • Create and query personal notes, track problem‑solving progress (requires authentication)
  • Advanced search by tags, difficulty, categories, and keywords
  • Access daily challenge problems

Use cases of LeetCode

  • Automating retrieval of the daily challenge for practice
  • Analyzing user submission history and contest rankings
  • Searching and filtering LeetCode problems for targeted study sessions
  • Managing personal notes and tracking problem‑solving progress
  • Integrating LeetCode data into AI assistants or development workflows

Frequently asked questions

1 What are the prerequisites?

A Node.js runtime environment, and optionally a LeetCode session cookie for authenticated API access.

2 How do I set the site (global or China)?

Use the --site command-line argument with value global or cn, or set the LEETCODE_SITE environment variable. Command-line arguments take precedence over environment variables.

3 Where does the authentication session cookie come from?

The LEETCODE_SESSION cookie is obtained from your browser after logging into LeetCode. It is required for private data access such as user notes, submission details, and problem progress.

4 What transports does the server use?

The server communicates via stdio transport using the MCP protocol, configured through a command execution (e.g., npx).

5 What are the known limitations?

Notes tools are only available on LeetCode China (CN). The get_recent_submissions tool is only available on Global. Several tools require authentication.

Videos

Tutorials, guides, and showcases related to LeetCode MCP Server (Developer Tools). The player loads when you press play.

Videos belong to their creators. Relevance is approximate; check the channel and description before following setup steps.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬