Leetcode MCP Server

Model Context Protocol server for LeetCode using GraphQL

Local serverstdio

What is the Leetcode MCP Server?

Model Context Protocol server for LeetCode using GraphQL

What it actually does

A Model Context Protocol (MCP) server for LeetCode that enables AI assistants to access LeetCode problems, user information, and contest data.

  • 🚀 Fast access to LeetCode API
  • 🔍 Search problems, retrieve daily challenges, and check user profiles
  • 🏆 Query contest data and rankings
  • 🧩 Full support for MCP tools and resources
  • 📦 Provides both CLI and programmable API

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
get-daily-challengeGet the daily challenge
get-problemGet details for a specific problem
search-problemsSearch for problems based on criteria
get-user-profileGet user information
get-user-submissionsGet user submission history
get-user-contest-rankingGet user contest rankings
get-contest-detailsGet contest details

How to install the Leetcode MCP Server

{
  "mcpServers": {
    "leetcode": {
      "command": "mcp-server-leetcode"
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Example prompts to try

  • “Use Leetcode to get-daily-challenge.”
  • “Use Leetcode to get-problem.”
  • “Use Leetcode to search-problems.”

Frequently asked questions

Model Context Protocol server for LeetCode using GraphQL Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.