Leetcode MCP Server
UnclaimedAn MCP server enabling automated access to LeetCode's problems, solutions, and public data with optional authentication for user-specific features, supporting leetcode.com & leetcode.cn sites.
Install
npx -y @jinzcdev/leetcode-mcp-server --site globalUnclaimed listing
Is this your MCP server?
This listing was auto-indexed from the public record. Claim it to edit the page, set compatibility and unlock growth tools. Takes under two minutes.
Claim this serverTools (40)
attended
Whether to include only the contests the user has participated in (boolean, optional, default: true)
category
Problem category filter (string, optional, default: "all-code-essentials")
create_note
❌
dataInput
Custom input to run (string, optional)
difficulty
Problem difficulty level filter (enum: "EASY", "MEDIUM", "HARD", optional)
get_all_submissions
✅
get_daily_challenge
✅
get_note
❌
get_problem
✅
get_problem_progress
✅
get_problem_solution
✅
get_problem_submission_report
✅
get_recent_ac_submissions
✅
get_recent_submissions
✅
get_user_contest_ranking
✅
get_user_profile
✅
get_user_status
✅
id
The numerical submission ID (number, required)
keyword
Search term to filter notes (string, optional)
lang
Programming language filter (string, optional, CN only)
lastKey
Pagination token for retrieving next page (string, optional, CN only)
limit
Maximum number of problems to return (number, optional, default: 10)
list_problem_solutions
✅
offset
Number of problems to skip (number, optional)
pollIntervalMs
Polling interval in milliseconds (number, optional, default: 1500)
questionSlug
Optional problem identifier (string, optional)
questionStatus
Filter by question status (enum: "ATTEMPTED", "SOLVED", optional)
run_code
✅
search_notes
❌
search_problems
✅
searchKeywords
Keywords to search in problem titles and descriptions (string, optional)
skip
Number of notes to skip (number, optional, default: 0)
status
Submission status filter (enum: "AC", "WA", optional, CN only)
submit_solution
✅
tags
List of topic tags to filter problems by (string[], optional)
timeoutMs
Polling timeout in milliseconds (number, optional, default: 120000)
titleSlug
The URL slug/identifier of the problem (string, required)
typedCode
Source code to run (string, required)
update_note
❌
username
LeetCode username (string, required)