PersonalLeetcodeMCP
Provides tools for accessing LeetCode submission history, weak area analysis, user stats, and daily challenge data.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@PersonalLeetcodeMCPAnalyze my weak areas on LeetCode — my username is @alice_w"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
LeetCode MCP Connector for Claude.ai
A remote MCP server that gives Claude access to your LeetCode submission history and weak area analysis.
Tools provided
Tool | Description |
| Recent submissions with status, language, and multi-attempt detection |
| Topic-by-topic breakdown of weakest vs strongest areas with recommendations |
| Overall accepted/submission counts, streaks, and ranking percentile |
| Today's daily challenge problem |
Related MCP server: LeetCode MCP Server
Setup
1. Install & run locally
npm install
npm start
# → Listening on http://localhost:30002. Deploy (required for Claude.ai)
Claude.ai requires a publicly accessible HTTPS URL. Choose one:
Option A — Railway (easiest, free tier)
Push this folder to a GitHub repo
Go to railway.app → New Project → Deploy from GitHub
Railway auto-detects Node.js and gives you a public URL like
https://leetcode-mcp-xxx.railway.app
Option B — Render
Push to GitHub
render.com → New Web Service → connect repo
Build:
npm install, Start:node server.jsGets a URL like
https://leetcode-mcp.onrender.com
Option C — Docker (any VPS/cloud)
docker build -t leetcode-mcp .
docker run -p 3000:3000 leetcode-mcp
# Then point a domain + SSL at port 3000Option D — Cloudflare Workers (advanced)
Cloudflare has built-in MCP support. See: https://developers.cloudflare.com/mcp/
3. Add to Claude.ai
Once deployed:
Go to Claude.ai → Settings → Connectors
Click "Add custom connector"
Enter your server URL:
https://your-deployment-url.com/mcpClick Add
That's it — Claude will now have access to the LeetCode tools.
Example prompts
After connecting, try asking Claude:
"Analyze my weak areas on LeetCode — my username is @john_doe"
"Show me my last 20 submissions and tell me which problems I struggled with"
"What are my LeetCode stats and what should I focus on next?"
"What's today's daily challenge?"
Notes on LeetCode's API
Public data:
get_submission_history,get_user_stats,analyze_weak_areas, andget_daily_challengeall work with public profile data — no login required, as long as the target profile is public.Private profiles: If a user has a private profile, LeetCode will return empty data. The user must set their profile to public in LeetCode Settings → Privacy.
LeetCode does not have an official public API. This server uses the same GraphQL endpoint that LeetCode's own frontend uses. It may break if LeetCode changes their API structure.
Extending this server
To add more tools, follow the pattern in server.js:
server.tool("tool_name", "description", { param: z.string() }, async ({ param }) => {
// call lcQuery() and return results
return { content: [{ type: "text", text: "..." }] };
});Useful queries to add:
Problem search by tag/difficulty (uses
problemsetQuestionListquery)Company-tagged problems (requires LeetCode Premium session cookie)
Contest history (query is already in the file as
CONTEST_HISTORY_QUERY)
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseCqualityFmaintenanceA Model Context Protocol (MCP) server for LeetCode that enables AI assistants to access LeetCode problems, user information, and contest data.71944MIT
- AlicenseAqualityAmaintenanceA Model Context Protocol server that provides integration with LeetCode APIs, enabling automated interaction with programming problems, contests, solutions, and user data across both leetcode.com and leetcode.cn platforms.9220139MIT
- Flicense-qualityCmaintenanceLets Claude read your Trello boards, lists, and cards via a remote MCP server.
- Flicense-qualityCmaintenanceA tutorial and working MCP server that connects to your LeetCode profile, enabling AI assistants to check solved problems and recommend new ones by topic and difficulty.1
Related MCP Connectors
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
Hosted Amazon Seller and Vendor MCP server for Claude, ChatGPT, Cursor, Codex, Gemini, Copilot.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/RishiSarraff/PersonalLeetcodeMCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server