AcademyMCP serversDevelopment

LeetCode MCP Server

Engineering and technical hiring teams that prepare coding practice or interview questions from LeetCode problems.

  • Recommendedour rating
  • 154gitHub stars
  • MITlicence
  • 3 months agolast update
claude mcp add leetcode -e LEETCODE_SITE=global -e LEETCODE_SESSION=<YOUR_LEETCODE_SESSION_COOKIE> -- npx -y @jinzcdev/leetcode-mcp-server
README.md

Loading the file...

What it does

Connects an AI assistant to LeetCode so it can look up problems, solutions, submissions and public data. It works with both the global and China sites, and an optional login adds user features such as notes.

Use cases

  1. 01Look up a problem with its constraints and examples
  2. 02Read official solutions while preparing interview material
  3. 03Check public submission data for a practice session

Questions about
LeetCode MCP Server.

What is LeetCode MCP Server used for?

Engineering and technical hiring teams that prepare coding practice or interview questions from LeetCode problems. Connects an AI assistant to LeetCode so it can look up problems, solutions, submissions and public data. It works with both the global and China sites, and an optional login adds user features such as notes.

How do I install LeetCode MCP Server?

Run this in your terminal: claude mcp add leetcode -e LEETCODE_SITE=global -e LEETCODE_SESSION=<YOUR_LEETCODE_SESSION_COOKIE> -- npx -y @jinzcdev/leetcode-mcp-server

Is LeetCode MCP Server open source?

Yes. The code is on GitHub (jinzcdev/leetcode-mcp-server) under the MIT licence.

Is LeetCode MCP Server safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.