interactive-leetcode-mcp
Use when the user wants to practice LeetCode problems, submit solutions, or set up LeetCode integration. Covers MCP server installation, learning-guided practice flow, solution submission, and authentication.
Why use this skill?
Master LeetCode with the Interactive LeetCode MCP skill. Features progressive hints, automated submission, and guided algorithmic practice for technical interviews.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/sperekrestova/interactive-leetcodeWhat This Skill Does
The interactive-leetcode-mcp skill transforms your OpenClaw agent into a high-powered LeetCode tutor and coding companion. It leverages a dedicated MCP (Model Context Protocol) server to facilitate structured, learning-oriented programming practice. Rather than simply providing raw solutions, the skill uses a progressive hint system, ensuring you truly understand the algorithmic concepts behind each problem. It handles everything from authenticating with LeetCode to setting up local development environments and submitting your final code for validation.
Installation
Before you begin, check if the get_started tool is available in your agent's command palette. If not, you must install the MCP server. Ask your agent to execute the installation command for the @sperekrestova/interactive-leetcode-mcp package (version 3.1.1 is recommended for stability).
To add this manually to your MCP configuration:
- Update your configuration file with the following server block:
"leetcode": { "command": "npx", "args": ["-y", "@sperekrestova/[email protected]"] } - For Claude Code, simply run:
claude mcp add --transport stdio leetcode -- npx -y @sperekrestova/[email protected] - Restart your session to initialize the tools.
Use Cases
This skill is perfect for developers preparing for technical interviews, students learning data structures and algorithms, or professional engineers looking to sharpen their problem-solving skills. Use it when you need a guided, step-by-step walkthrough of complex coding problems, when you want to avoid 'spoiling' the answer too early, or when you need a streamlined way to sync your local IDE with LeetCode submission portals.
Example Prompts
- "I'm ready to start my daily coding practice. Can you initialize the LeetCode MCP session and help me find a medium-difficulty graph problem?"
- "I'm working on the 'Two Sum' problem but I'm stuck. Can we enter learning mode and look at the first hint?"
- "I have finished my implementation for the current problem. Please trigger the submission workflow so I can verify my code on LeetCode."
Tips & Limitations
- Strict Workflow: Always start your session by calling
get_started. This step is mandatory as it synchronizes the agent's knowledge of the server's current state and specific prompt requirements. - Learning Mode First: You must invoke
leetcode_learning_modebefore discussing any problem. Skipping this step breaks the progressive hint system and may cause the agent to provide solutions prematurely. - Version Control: Always pin to a specific version (like 3.1.1) rather than
@latestto ensure consistency and prevent unexpected breaking changes in your practice environment. - Restart Required: Any changes to the configuration require a full session restart for the tools to register successfully.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-sperekrestova-interactive-leetcode": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: code-execution, external-api