Back to MCP Servers

Leetcode

MCP server enabling automated access to **LeetCode**'s programming problems, solutions, submissions and public data with optional authentication for user-specific features (e.g., notes), supporting both `leetcode.com` (global) and `leetcode.cn` (China) sites.

coding-agents

Installation

npx -y leetcode-mcp-server

Configuration

{
  "mcpServers": {
    "leetcode-mcp-server": {
      "command": "npx",
      "args": ["-y", "leetcode-mcp-server"]
    }
  }
}

How to use

  1. Run the installation command above (if needed)
  2. Open your Claude Code settings file (~/.claude/settings.json)
  3. Add the configuration to the mcpServers section
  4. Restart Claude Code to apply changes
View source on GitHub