leetcode-mcp-server
17
LeetCode MCP Server provides an interface for interacting with LeetCode APIs, enabling features like problem data retrieval and user analysis. It supports both global and Chinese platforms and includes tools for searching problems and accessing user data.
LeetCode MCP Server
The LeetCode MCP Server is a Model Context Protocol (MCP) server for seamless integration with LeetCode APIs. It enables advanced automation and intelligent interactions with programming problems, contests, solutions, and user data on both global and China platforms.
Features
- Multi-site support for leetcode.com and leetcode.cn
- Retrieve detailed problem data, user profiles, and contest performance
- Access private data with authentication
- Filter problems by tags, difficulty, and keywords
- Access daily challenge problems
Prerequisites
- Node.js runtime environment
- Optional authentication via LeetCode session cookie for enhanced access
Installation
Via Smithery
Use Smithery for automatic setup with npx
commands.
Manual Installation
Install using npm or clone the repository and run it locally.
Usage
Integrate with Visual Studio Code by adding configuration settings to the User Settings JSON file.