Access LeetCode problems, solutions and public data, with optional login for user features; supports leetcode.com and leetcode.cn.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add leetcode -- npx -y @smithery/cli install @jinzcdev/leetcode-mcp-server --client claude~/.codex/config.toml
[mcp_servers.leetcode]
command = "npx"
args = ["-y", "@smithery/cli", "install", "@jinzcdev/leetcode-mcp-server", "--client", "claude"]
# codex mcp add leetcode -- npx -y @smithery/cli install @jinzcdev/leetcode-mcp-server --client claude~/.cursor/mcp.json
{
"mcpServers": {
"leetcode": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@jinzcdev/leetcode-mcp-server",
"--client",
"claude"
]
}
}
}.vscode/mcp.json
{
"servers": {
"leetcode": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@jinzcdev/leetcode-mcp-server",
"--client",
"claude"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"leetcode": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@jinzcdev/leetcode-mcp-server",
"--client",
"claude"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"leetcode": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@jinzcdev/leetcode-mcp-server",
"--client",
"claude"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"leetcode": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@jinzcdev/leetcode-mcp-server",
"--client",
"claude"
]
}
}
}