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.
leetcodecodingproblemsprogrammingautomationmcpai-assistanttoolstool
Installation & Configuration
{
"mcpServers": {
"leetcode": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@jinzcdev/leetcode-mcp-server"
],
"env": {
"LEETCODE_SITE": "global",
"LEETCODE_SESSION": "<YOUR_LEETCODE_SESSION_COOKIE>"
}
}
}
}Information
Transport
stdio
Language
TypeScript
Created
2025/4/12
Updated
2026/7/12