Enterprise DNA
M MCP Servers Developer low

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

J

MCP

jinzcdev/leetcode-mcp-server

Added 1 June 2026

#ai #algorithm #lc #leetcode #llm #mcp #mcp-server

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_challenge
  • get_problem
  • search_problems
  • get_user_profile
  • get_user_contest_ranking
  • get_recent_ac_submissions
  • get_recent_submissions
  • get_user_status
  • get_problem_submission_report
  • get_problem_progress
  • get_all_submissions
  • run_code
  • submit_solution
  • search_notes
  • get_note
  • create_note
  • update_note
  • list_problem_solutions
  • get_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
Free 27-page guide

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.

No spam. Unsubscribe any time.

Running a business, not writing the code? See the MCP servers picked for operators, and get your first one wired up with us.

Operator picks