Leetcode MCP Server
The LeetCode MCP Server is an intelligent service that provides LeetCode API integration, supports global and Chinese sites, and enables problem queries, user data retrieval, and automated operations.
rating : 2.5 points
downloads : 23
What is the LeetCode MCP Server?
The LeetCode MCP Server is an intelligent server based on the Model Context Protocol (MCP). It allows users to access various types of data on the LeetCode platform through standardized interfaces. Whether it's problem information, user data, or personal notes, they can all be obtained and managed through simple API calls.How to use the LeetCode MCP Server?
You can use it by simply installing it via the command line or integrating it into your development environment. The server supports multiple configuration methods, including environment variables and command-line parameters, to meet the needs of different scenarios.Applicable scenarios
It is suitable for scenarios such as programming learning, algorithm training, competition preparation, and personal progress tracking. It is especially useful for developers or teams that need to automate the processing of LeetCode data.Main features
Multi-site supportSupports both leetcode.com (International version) and leetcode.cn (Chinese version) platforms simultaneously.
Problem data retrievalRetrieve detailed problem descriptions, constraints, examples, official solutions, and user-submitted solutions.
User data accessAccess user profiles, submission histories, and competition performance data.
Private data accessCreate and query user notes, track problem-solving progress, and analyze submission details (AC/WA analysis).
Advanced search functionFilter problems by tags, difficulty levels, categories, and keywords.
Daily challenge accessEasily access the daily challenge problems.
Advantages and limitations
Advantages
One-stop access to all LeetCode data
Supports both the International and Chinese versions
Provides detailed data analysis and visualization
Easy to integrate into existing development environments
Limitations
Some advanced features require login authentication
Some functions in the Chinese version are not exactly the same as those in the International version
Requires a Node.js runtime environment
How to use
Install the server
Install globally via npm or run directly.
Configure the server
Set the site type (global or cn) and optional session cookie.
Integrate into the development environment
For example, in Visual Studio Code, add the server configuration by modifying the user settings.
Usage examples
Get problem detailsQuery detailed information about a specific problem, including descriptions, examples, and constraints.
Track problem-solving progressView the list of problems solved and unsolved by the user.
Manage notesCreate and manage problem notes for Chinese version users.
Frequently Asked Questions
How to get the LeetCode session cookie?
What are the differences between the International version and the Chinese version?
Why do some functions require authentication?
How is the server performance?
Related resources
GitHub repository
Project source code and latest updates
MCP Protocol official website
Learn about the Model Context Protocol
LeetCode International website
Official website of the LeetCode International version
LeetCode Chinese website
Official website of the LeetCode Chinese version
Featured MCP Services

Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
97
4.3 points

Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
1.7K
5 points

Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
150
4.5 points

Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
838
4.3 points

Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
6.7K
4.5 points

Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
573
5 points

Context7
Context7 MCP is a service that provides real-time, version-specific documentation and code examples for AI programming assistants. It is directly integrated into prompts through the Model Context Protocol to solve the problem of LLMs using outdated information.
TypeScript
5.2K
4.7 points

Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
289
4.5 points