LocalFree

Leetcode MCP server

mrfentmen/leetcode-mcp

LeetCode problem database: list problems by difficulty, search by title.

Install Leetcode in Claude Code

Claude Code
claude mcp add mrfentmen-leetcode -- npx -y @mrfentmen/leetcode-mcp
mcp.json (Claude Desktop, Cursor, VS Code, Windsurf)
{
  "mcpServers": {
    "mrfentmen-leetcode": {
      "command": "npx",
      "args": [
        "-y",
        "@mrfentmen/leetcode-mcp"
      ]
    }
  }
}

Frequently asked questions

What does the Leetcode MCP server do?

LeetCode problem database: list problems by difficulty, search by title.

Is the Leetcode MCP server free?

Yes, most likely. Open source and no paid account or API key is mentioned in the listing. Check the provider for current pricing.

Does Leetcode run locally or remotely?

Local. Runs on your machine (stdio). You install it with npx, uvx, Docker or from source.

How do I add Leetcode to Claude Code?

Run: claude mcp add mrfentmen-leetcode -- npx -y @mrfentmen/leetcode-mcp

More databases MCP servers

View all