
Company News
Jerod Santo Joins Socket as Head of Media
Allow myself to introduce... myself.
@sperekrestova/interactive-leetcode-mcp
Advanced tools
Interactive LeetCode MCP server with authorization and submission capabilities for seamless problem-solving with Claude
Current project is under active development and may not work perfectly
npm install -g @sperekrestova/interactive-leetcode-mcp
git clone https://github.com/SPerekrestova/interactive-leetcode-mcp.git
cd interactive-leetcode-mcp
npm install && npm run build
npm link
You can execute this command in CLI
claude mcp add --transport stdio leetcode -- npx -y @sperekrestova/interactive-leetcode-mcp@latest
Or add to your MCP configuration file (~/.config/claude-code/mcp.json) or (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"leetcode": {
"command": "npx",
"args": ["-y", "interactive-leetcode-mcp"]
}
}
}
{
"mcpServers": {
"leetcode": {
"command": "node",
"args": ["/path/to/this/project/interactive-leetcode-mcp/build/index.js"]
}
}
}
You: "Authorize with LeetCode"
Claude: [Opens LeetCode in your browser and guides you through the process]
Claude: "Please log in to your account. Once logged in, I'll walk you through
getting two cookie values we need. First, press F12 to open DevTools..."
You: [Follows Claude's step-by-step guidance]
You: "Here are my cookies: csrftoken is abc123... and LEETCODE_SESSION is xyz789..."
Claude: "✓ Perfect! Your credentials are validated and saved. Welcome back, johndoe!"
You: "I want to practice two-sum"
Claude: [Fetches problem and creates working file]
You: "Give me a hint"
Claude: [Provides contextual guidance based on your code]
You: "Submit my solution"
Claude: "🎉 Accepted! Runtime: 2ms (beats 95.3%)"
start_leetcode_auth
save_leetcode_credentials
csrftoken, session (cookie values you provide)check_auth_status
get_daily_challenge
get_problem
titleSlug (e.g., "two-sum")search_problems
submit_solution
problemSlug, code, languageget_user_profile
get_user_submissions
get_user_contest_ranking
The Interactive LeetCode MCP includes AI agent guidance through MCP Prompts to create a better learning experience.
Workspace Setup: When learning mode is active, Claude will:
{problem-slug}.{extension}Learning-Guided Mode: When active, Claude follows these guidelines:
Problem Workflow: Guides you through the complete cycle:
To activate learning mode, tell Claude you want to practice with guidance — for example, "Let's practice in learning mode" or "I want to learn two-sum with hints." Once active:
"Not authorized" or "Invalid credentials" error
"Credentials have expired"
Can't find DevTools or cookies
Copied wrong values
Browser doesn't open during authorization
"Unsupported language" error
Submission timeout
This repo also ships an agent skill that teaches Claude (and other AI agents) how to use the MCP server correctly — including session flow, prompt invocations, learning mode, and authentication.
Install the skill directly as a Claude Code plugin:
/plugin marketplace add SPerekrestova/interactive-leetcode-mcp
/plugin install interactive-leetcode-mcp@interactive-leetcode-mcp
Then start a practice session with:
/interactive-leetcode-mcp:interactive-leetcode-mcp
The skill is also published on ClawHub for use with OpenClaw-compatible agents.
Forked from Leetcode mcp)
MIT © SPerekrestova
FAQs
Interactive LeetCode MCP server with authorization and submission capabilities for seamless problem-solving with Claude
The npm package @sperekrestova/interactive-leetcode-mcp receives a total of 50 weekly downloads. As such, @sperekrestova/interactive-leetcode-mcp popularity was classified as not popular.
We found that @sperekrestova/interactive-leetcode-mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Company News
Allow myself to introduce... myself.

Research
/Security News
A Twitch browser extension on Chrome and Firefox forwards users’ live OAuth session tokens through proxies controlled by a Russian bot service.

Security News
Anthropic found biased reasoning and recklessness drove Claude Mythos 5 to publish malware on PyPI and compromise a security vendor.