Back to MCP Directory
Leetcode
Model Context Protocol moderate risk

Leetcode

The LeetCode MCP server provides access to LeetCode problems, user data, solutions, and notes, enabling automation and intelligent interaction with the platform.

Connections & Capabilities

Connects To

GitHub

Capabilities

readwrite

Quickstart

Install

npx -y @smithery/cli install @jinzcdev/leetcode-mcp-server --client claude

Config

{
  "mcp": {
    "servers": {
      "leetcode": {
        "type": "stdio",
        "command": "npx",
        "args": ["-y", "@jinzcdev/leetcode-mcp-server"],
        "env": {
          "LEETCODE_SITE": "global",
          "LEETCODE_SESSION": "<YOUR_LEETCODE_SESSION_COOKIE>"
        }
      }
    }
  }
}

Exposed MCP Tools (17)

safe
get_daily_challenge

Retrieves today's LeetCode Daily Challenge problem.

Read-only access to problem data.

safe
get_problem

Retrieves details for a specific LeetCode problem.

Read-only access to problem data.

safe
search_problems

Searches for LeetCode problems with multiple filter criteria.

Read-only access to problem data.

safe
get_user_profile

Retrieves profile information for a LeetCode user.

Read-only access to user profile data.

safe
get_user_contest_ranking

Obtains contest ranking statistics for a user.

Read-only access to contest ranking data.

safe
get_recent_ac_submissions

Retrieves a user's recent accepted submissions.

Read-only access to submission data.

safe
get_recent_submissions

Retrieves a user's recent submissions history.

Read-only access to submission data.

safe
get_user_status

Retrieves current user's current status.

Read-only access to user status data.

safe
get_problem_submission_report

Provides detailed submission analysis for a specific problem.

Read-only access to submission report data.

safe
get_problem_progress

Retrieves current user's problem-solving progress.

Read-only access to problem progress data.

safe
get_all_submissions

Retrieves current user's submission history.

Read-only access to submission history data.

safe
search_notes

Searches for user notes with filtering options.

Read-only access to note data.

safe
get_note

Retrieves notes for a specific problem by question ID.

Read-only access to note data.

moderate
create_note

Creates a new note for a specific problem.

Creates a new note for the user.

moderate
update_note

Updates an existing note with new content.

Updates an existing note for the user.

safe
list_problem_solutions

Retrieves a list of community solutions for a specific problem.

Read-only access to community solutions.

safe
get_problem_solution

Retrieves the complete content of a specific solution.

Read-only access to solution content.

Safety Assessment

This server is generally safe for read-only operations. Accessing and modifying user notes requires authentication, which introduces a moderate risk if the session cookie is compromised. Ensure proper handling and storage of the session cookie to mitigate potential risks.

  • Primarily read-only access to problem and user data.
  • Authentication required for accessing private user data and notes.
  • No direct code execution or system-level access.
  • MCP framework provides a layer of abstraction and control.
  • Authenticated access allows modification of user notes.
  • Potential for information leakage if session cookie is compromised.
  • Rate limiting not explicitly mentioned, potential for abuse.
  • Reliance on LeetCode's API security.
Leetcode Review, Pricing & Alternatives (2026) | Flaex AI