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
基本信息
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.
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"leetcode-mcp-server": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@jinzcdev/leetcode-mcp-server",
"--client",
"claude"
]
}
}
}工具列表暂未提供
当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。
点击上方按钮,在临时沙箱中运行此服务器并实时获取工具列表。
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).

Model Context Protocol Servers
🔥 MaxKB is an open-source platform for building enterprise-grade agents. 强大易用的开源企业级智能体平台。
This open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable,

Couples therapist Figs O'Sullivan (LMFT, 17 years, endorsed by Sue Johnson, creator of EFT) inside your AI. Ask relationship questions answered from his clinical writing, name the pattern in a fight, get a three-step rep

Yuppsy MCP: build and publish real estate websites from your AI assistant. Yuppsy lets your AI assistant create live websites for real estate agents and individual property listings. You don't need a designer or any code
评论