LeetCode MCP Server provides a bridge to LeetCode's programming problem platform through the Model Context Protocol. Developed by jinzcdev, this TypeScript implementation supports both leetcode.com and leetcode.cn sites, offering tools for accessing problem descriptions, searching by tags and difficulty, retrieving user profiles and submission history, and accessing community solution articles. The server handles authentication via LeetCode session cookies for accessing private data, and exposes resources for problem metadata and solution content, making it particularly valuable for developers seeking programming assistance, contest preparation, or algorithm learning through AI assistants.
Retrieves today's LeetCode Daily Challenge problem. No parameters required.
Retrieves details for a specific LeetCode problem. Parameters: titleSlug (string, required)
Searches for LeetCode problems with multiple filter criteria. Parameters: category (string, optional), tags (string[], optional), difficulty (enum: 'EASY', 'MEDIUM', 'HARD', optional), searchKeywords (string, optional), limit (number, optional), offset (number, optional)
Retrieves profile information for a LeetCode user. Parameters: username (string, required)
Obtains contest ranking statistics for a user. Parameters: username (string, required), attended (boolean, optional, default: true)
Retrieves a user's recent accepted submissions. Parameters: username (string, required), limit (number, optional, default: 10)
Retrieves a user's recent submissions history. Parameters: username (string, required), limit (number, optional, default: 10)
Retrieves current user's current status. No parameters required.
Provides detailed submission analysis for a specific problem. Parameters: id (number, required)
Retrieves current user's problem-solving progress. Parameters: offset (number, optional, default: 0), limit (number, optional, default: 100), questionStatus (enum: 'ATTEMPTED', 'SOLVED', optional), difficulty (string[], optional)
Retrieves current user's submission history. Parameters: limit (number, default: 20), offset (number, default: 0), questionSlug (string, optional), lang (string, optional, CN only), status (enum: 'AC', 'WA', optional, CN only), lastKey (string, optional, CN only)
Searches for user notes with filtering options. Parameters: keyword (string, optional), limit (number, optional, default: 10), skip (number, optional, default: 0), orderBy (enum: 'ASCENDING', 'DESCENDING', optional, default: 'DESCENDING')
Retrieves notes for a specific problem by question ID. Parameters: questionId (string, required), limit (number, optional, default: 10), skip (number, optional, default: 0)
Creates a new note for a specific LeetCode problem. Parameters: questionId (string, required), content (string, required), summary (string, optional)
Updates an existing note with new content. Parameters: noteId (string, required), content (string, required), summary (string, optional)
Retrieves a list of community solutions for a specific problem. Parameters: questionSlug (string, required), limit (number, optional, default: 10), skip (number, optional), userInput (string, optional), tagSlugs (string[], optional, default: []), orderBy (enum, optional)
Retrieves the complete content of a specific solution. Parameters: topicId (string, required, Global only), slug (string, required, CN only)
No reviews yet. Be the first to review!
Sign in to join the conversation
Our bundler currently only supports TypeScript-based servers. Check back soon!