What are the prerequisites for running LeetCode MCP Server?
Node.js v20.x or above is required. A LeetCode session cookie is optional and only needed for authenticated API access.
@jinzcdev
Basic information
An MCP server enabling automated access to LeetCode's problems, solutions, and public data with optional authentication for user-specific features, supporting leetcode.com & leetcode.cn sites.
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"leetcode-mcp-server": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@jinzcdev/leetcode-mcp-server",
"--client",
"claude"
]
}
}
}Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
Fetch the live tool list by running this server in a temporary sandbox using the button above.
The LeetCode MCP Server is a Model Context Protocol server that integrates with LeetCode APIs, providing automated access to problems, contests, solutions, and user data. It supports both LeetCode Global (leetcode.com) and LeetCode China (leetcode.cn) platforms.
Install the server globally via npm install @jinzcdev/leetcode-mcp-server -g or run directly with npx -y @jinzcdev/leetcode-mcp-server. Optionally provide a LeetCode session cookie (--session <COOKIE>) for authenticated features. Configure the server as an MCP client (e.g., VS Code) by setting the command, arguments, or environment variables LEETCODE_SITE and LEETCODE_SESSION.
Node.js v20.x or above is required. A LeetCode session cookie is optional and only needed for authenticated API access.
No, most tools work without authentication. However, tools for private data (e.g., notes, submission history, code running/submission) require a valid session cookie.
Both LeetCode Global (leetcode.com) and LeetCode China (leetcode.cn) are supported. Specify the site with the `--site` argument or `LEETCODE_SITE` environment variable.
Add a JSON configuration to your User Settings under `mcp.servers.leetcode`, setting the command to `npx`, args to `["-y", "@jinzcdev/leetcode-mcp-server"]`, and optionally specifying `LEETCODE_SITE` and `LEETCODE_SESSION` in the `env` or as additional args.
Command-line arguments take precedence over environment variables when both are provided for the same setting (site or session).
Open-source MCP to use Blender with any LLM

Connect your AI assistant to your own YOUB endurance training account. Read recorded activities with full analysis, planned sessions, race goals, wellness (HRV, sleep, resting HR) and your athletic profile. Create or mov
YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Hindsight: Agent Memory That Learns
🔥 MaxKB is an open-source platform for building enterprise-grade agents. 强大易用的开源企业级智能体平台。
Comments