Model Context Protocol (MCP) server that exposes LeetCode problems, user data and contest information via GraphQL-powered tools and resources.
https://github.com/doggybee/mcp-server-leetcodeStop switching between Claude and LeetCode tabs. This MCP server gives your AI direct access to LeetCode's entire problem database, user profiles, and contest data—making your coding interview prep exponentially more intelligent.
You're probably doing this: manually searching for problems, copying descriptions into Claude, asking for hints, then going back to implement. It's inefficient and breaks your flow. You lose context switching between tools, and your AI can't see your actual progress or recommend what to tackle next.
Instead of feeding problems to your AI piecemeal, your assistant can now:
Morning Prep Session:
You: "What should I focus on today?"
Claude: *pulls your profile* "You've solved 12/50 dynamic programming problems with a 65% success rate. Today's daily challenge is a medium DP problem—perfect timing. Want me to walk through similar problems you haven't seen?"
Contest Strategy:
You: "How do I improve my contest ranking?"
Claude: *analyzes your contest history* "You consistently solve first two problems fast but struggle with graph problems under pressure. Here are 5 medium graph problems similar to recent contest questions..."
Targeted Practice:
You: "Find me array problems I haven't solved"
Claude: *searches problem database* "Here are 10 unsolved array problems ranked by difficulty and similar to ones you've successfully completed..."
Works seamlessly with Claude Desktop—add one JSON config block and you're done. No API keys, no authentication headaches. The server handles LeetCode's GraphQL API complexity so your AI can focus on helping you code better.
{
"mcpServers": {
"leetcode": {
"command": "mcp-server-leetcode"
}
}
}
You can also use it programmatically in your own tools:
const leetcode = new LeetCodeService();
const problems = await leetcode.searchProblems({
difficulty: 'MEDIUM',
tags: 'dynamic-programming+array'
});
Problem Tools:
User Analytics:
Contest Intelligence:
Resource Access:
leetcode://problem/two-sum)You could spend hours setting up LeetCode's GraphQL API yourself, handling authentication, implementing caching, and parsing responses. Or you could install this, configure Claude in 30 seconds, and immediately start having smarter coding conversations.
The server handles all the complexity: API rate limiting, response caching, error handling, and MCP protocol compliance. You get enterprise-grade LeetCode integration without the enterprise setup time.
Install globally and run:
npm install -g @mcpfun/mcp-server-leetcode
mcp-server-leetcode
Or use Smithery for automatic Claude Desktop setup:
npx -y @smithery/cli install @doggybee/mcp-server-leetcode --client claude
Your AI assistant just got a lot smarter about helping you land that next role.