Interactive LeetCode MCP server with authorization and solution submission capabilities
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Interactive Leetcode MCP.
csrftokenCallable MCP tool function
sessionCallable MCP tool function
titleSlugCallable MCP tool function
languageCallable MCP tool function
codeCallable MCP tool function
timeoutMsCallable MCP tool function
Current project is under active development and may not work perfectly
You can also run the package without installing it globally:
Use this to verify the published npm package from a clean directory without any LeetCode credentials:
Those commands confirm that Node can install the package and expose the CLI binary. For actual MCP server validation, use an integration test that connects over stdio and completes the MCP handshake.
You can execute this command in CLI
Or add to your MCP configuration file (~/.config/claude-code/mcp.json) or (~/Library/Application Support/Claude/claude_desktop_config.json):
get_started
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
start_problem
titleSlug, optional languagerequest_hint
titleSlugget_session_state
titleSlugreset_session
titleSlugrunner_doctor
run_local_tests
titleSlug, language, code, optional timeoutMslist_problem_solutions
questionSlug, optional limit, skip, orderBy, userInput,
tagSlugsget_problem_solution
topicId, titleSlugsubmit_solution
problemSlug, code, languageget_user_profile
get_recent_submissions
get_recent_ac_submissions
get_user_status
get_problem_submission_report
get_problem_progress
get_all_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:
get_started to load the server's usage guideget_daily_challenge, search_problems, or
get_problemstart_problemrequest_hint rather than jumping straight to solutionsTo test the MCP server as a black-box MCP client without live LeetCode traffic:
This builds the server, spawns build/index.js over stdio, connects with the
MCP SDK client, uses an isolated HOME, serves LeetCode responses from fixtures,
and drives a user-like flow through runner_doctor, start_problem,
request_hint, run_local_tests, and get_session_state.
See DOGFOOD_TESTING.md for the full workflow and a copy-paste prompt for local Claude/agent dogfood testing.
"Not authorized" or "Invalid credentials" error
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/interactive-leetcode-mcp)<a href="https://allmcps.com/mcp/interactive-leetcode-mcp"><img src="https://allmcps.com/api/badge/interactive-leetcode-mcp?style=directory" alt="Interactive Leetcode MCP on AllMCPs" /></a>