Skip to content
MCP server

Leetcode

Gateway MCP server giving AI clients read-only access to LeetCode profiles, stats

Install
Pricing
Freemium
Platforms
API, CLI, self-hosted
Runs
Locally or Remotely
Version
0.2.1
Listing updated
today

Similar MCP servers

About Leetcode

Leetcode is a freemium MCP server for developer tools. It can run locally on your machine or as a hosted remote server.

The README describes this as a LeetCode bridge that queries LeetCode's public GraphQL endpoint without an API key. It covers public user profiles, solved-problem counts by difficulty, recent accepted submissions, the daily challenge, individual problems looked up by slug, and overall problem set totals.

The server is hosted on the Pipeworx gateway, so calls go through that service rather than directly to LeetCode. It can also be run locally with npx as a stdio bridge that forwards requests to the same endpoint. Without an API key, calls are capped per day; a free Pipeworx account raises the limit.

The server suits developers and coding-practice tracking workflows that want an assistant to look up LeetCode progress or problem details. The README notes the upstream endpoint is unofficial and may change without notice.

Install

Run in a terminal

claude mcp add --transport http leetcode https://gateway.pipeworx.io/leetcode/mcp

Add to Settings → Connectors → Add custom connector

https://gateway.pipeworx.io/leetcode/mcp
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "leetcode": {
      "url": "https://gateway.pipeworx.io/leetcode/mcp"
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "leetcode": {
      "type": "http",
      "url": "https://gateway.pipeworx.io/leetcode/mcp"
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "leetcode": {
      "serverUrl": "https://gateway.pipeworx.io/leetcode/mcp"
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "leetcode": {
      "type": "http",
      "url": "https://gateway.pipeworx.io/leetcode/mcp"
    }
  }
}

Using several servers? Build one config file with the MCP config generator.

Configuration

  • PIPEWORX_API_KEYOptional Pipeworx API key. Without it calls are anonymous and capped daily; a free key raises the cap.

Tools this server provides (6)

Taken from the project documentation; the running server may differ.

user_profile
Public profile by username.
user_solved
Solved-problem stats by difficulty.
user_recent_submissions
Recent accepted submissions.
daily_question
Today's daily coding challenge.
problem
Problem detail by title slug.
problemset_stats
Total problems by difficulty.

What it does

Public profile lookup
Fetches a user's public profile by username, including real name, avatar and contest rating.
Solved problem stats
Returns a user's solved-problem counts broken down by difficulty.
Recent accepted submissions
Lists a user's recent accepted submissions, with an optional limit.
Daily challenge retrieval
Returns the current daily coding challenge.
Problem detail by slug
Looks up a single problem's details using its title slug, such as two-sum.
Problem set totals
Reports the total number of problems by difficulty.

Good for

  • Checking a LeetCode user's solved counts and recent accepted submissions
  • Pulling the daily challenge into a study or reminder workflow
  • Retrieving details for a specific problem by slug while practicing
  • Comparing difficulty breakdowns across LeetCode users

Pricing

Freemium

Free anonymous use capped daily; free account raises the cap; paid credits and subscriptions for higher usage.

Prices change. Check pipeworx.io before you buy.

Leetcode FAQ

Does it need an API key?

No. Without a key, calls are anonymous and capped daily. A free Pipeworx account raises the daily cap, and the README describes the key as optional.

Which tools does it expose?

The README lists six pack tools: user_profile, user_solved, user_recent_submissions, daily_question, problem and problemset_stats. The hosted endpoint also lists shared Pipeworx meta-tools.

Is it affiliated with LeetCode?

The README states it is an independent, unofficial integration and not affiliated with, endorsed by, or published by LeetCode.

Is Leetcode free?

Leetcode has a free plan, with paid plans for more usage or features.

How do I add Leetcode to Claude Code?

Run this command in your terminal: claude mcp add --transport http leetcode https://gateway.pipeworx.io/leetcode/mcp

What are the best alternatives to Leetcode?

The closest alternatives to Leetcode are Codeforces, Codewars, Httpstatus, Git Leaderboard and Devdocs Io.

Where this comes from

  • Description: written from the project's README, the project's website and its MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers