jinzcdev/leetcode-mcp-server
by Various
An MCP server enabling automated access to LeetCode's problems, solutions, and public data with optional authentication for user-specific features, supporting leetcode.com & leetco
MCP
jinzcdev/leetcode-mcp-server
Added 1 June 2026
Overview
An MCP server that provides automated access to LeetCode problems, solutions, and public data. It supports both leetcode.com and leetcode.cn with optional authentication for user-specific features. The server exposes data through the Model Context Protocol for integration with compatible clients.
Best for
Best for
Developers building AI tools that need LeetCode problem data
Use cases
- Fetching LeetCode problem descriptions and test cases programmatically
- Automating solution retrieval for code review or analysis
- Integrating LeetCode data into AI coding assistants via MCP
How to use
Install
npm install -g @jinzcdev/leetcode-mcp-server Tools exposed
get_daily_challengeget_problemsearch_problemsget_user_profileget_user_contest_rankingget_recent_ac_submissionsget_recent_submissionsget_user_statusget_problem_submission_reportget_problem_progressget_all_submissionsrun_codesubmit_solutionsearch_notesget_notecreate_noteupdate_notelist_problem_solutionsget_problem_solution
Tested with
Claude Desktop
Example client config
{\n "mcp": {\n "servers": {\n "leetcode": {\n "type": "stdio",\n "command": "npx",\n "args": [\n "-y",\n "@jinzcdev/leetcode-mcp-server",\n "--site",\n "global",\n "--session",\n "<YOUR_LEETCODE_SESSION_COOKIE>"\n ]\n }\n }\n }\n} Notes
An MCP server that provides automated access to LeetCode problems, solutions, and public data. It supports both leetcode.com and leetcode.cn with optional authentication for user-specific features. The server exposes data through the Model Context Protocol for integration with compatible clients.
115 stars on GitHub. Last updated 2026-03-18. Licensed MIT.
Use cases
- Fetching LeetCode problem descriptions and test cases programmatically
- Automating solution retrieval for code review or analysis
- Integrating LeetCode data into AI coding assistants via MCP
Pros
- Open source TypeScript implementation with 115 stars
- Supports both leetcode.com and leetcode.cn domains
- Optional authentication enables access to user-specific data
Cons
- Relies on LeetCode’s public API which may change without notice
- Small community size may limit support and contributions
- Requires an MCP-compatible client to use the server
Indexed from awesome-mcp-servers-punkpeye and enriched against its public facts.
Pros
- Open source TypeScript implementation with 115 stars
- Supports both leetcode.com and leetcode.cn domains
- Optional authentication enables access to user-specific data
Cons
- Relies on LeetCode's public API which may change without notice
- Small community size may limit support and contributions
- Requires an MCP-compatible client to use the server
Pairs with
Other entries in the index that connect to this one. Click through to see the chain.
Cline
Cline
Open-source autonomous coding agent that lives inside VS Code. BYO model key, watch it work.
Continue
Continue.dev
Open-source AI code assistant for VS Code and JetBrains. Customisable, BYO model, built for enterprise.
Claude Code
Anthropic
Anthropic's terminal-native coding agent. Reads your repo, edits files, runs tests, ships PRs.
Get the free Developer’s Field Guide
A 27-page field guide to the AI coding workflow with Claude. Claude Code, MCP servers, the prompt patterns that work, and what to delegate. Free.
Enter your work email. We send it straight over, plus a few short notes worth knowing. Unsubscribe any time.