Active
LeetCode MCP
LeetCode MCP server providing problem search, solution lookup, contest data, and progress tracking from LeetCode's platform.
Install this MCP
Pick your client, then copy the config.
{
"mcpServers": {
"leetcode": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-leetcode"
]
}
}
}{
"mcpServers": {
"leetcode": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-leetcode"
]
}
}
}{
"servers": {
"leetcode": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-leetcode"
]
}
}
}{
"mcpServers": {
"leetcode": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-leetcode"
]
}
}
}# Add to ~/.codex/config.toml (or .codex/config.toml in a trusted project) [mcp_servers.leetcode] command = "npx" args = ["-y", "@modelcontextprotocol/server-leetcode"]
Set up with your agent
Uses the same client as above (Cursor). Paste into that agent.
Install the "LeetCode MCP" MCP for Cursor in this workspace.
1. Read official install docs: https://github.com/leetcode-mcp-server
2. Merge this JSON into .cursor/mcp.json (project) or ~/.cursor/mcp.json (global):
{
"mcpServers": {
"leetcode": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-leetcode"
]
}
}
}
3. Restart Cursor if needed, then run a smoke test (list tools or one safe call). Confirm with the user before writing secrets.
Catalog: https://averlo.xyz/launches/leetcode.htmlInstall the "LeetCode MCP" MCP for Claude Desktop in this workspace.
1. Read official install docs: https://github.com/leetcode-mcp-server
2. Merge this JSON into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"leetcode": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-leetcode"
]
}
}
}
3. Restart Claude Desktop if needed, then run a smoke test (list tools or one safe call). Confirm with the user before writing secrets.
Catalog: https://averlo.xyz/launches/leetcode.htmlInstall the "LeetCode MCP" MCP for VS Code in this workspace.
1. Read official install docs: https://github.com/leetcode-mcp-server
2. Merge this JSON into .vscode/mcp.json:
{
"servers": {
"leetcode": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-leetcode"
]
}
}
}
3. Restart VS Code if needed, then run a smoke test (list tools or one safe call). Confirm with the user before writing secrets.
Catalog: https://averlo.xyz/launches/leetcode.htmlInstall the "LeetCode MCP" MCP for Windsurf in this workspace.
1. Read official install docs: https://github.com/leetcode-mcp-server
2. Merge this JSON into ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"leetcode": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-leetcode"
]
}
}
}
3. Restart Windsurf if needed, then run a smoke test (list tools or one safe call). Confirm with the user before writing secrets.
Catalog: https://averlo.xyz/launches/leetcode.htmlInstall the "LeetCode MCP" MCP for Codex in this workspace. 1. Read official install docs: https://github.com/leetcode-mcp-server 2. Merge this TOML under [mcp_servers.*] into ~/.codex/config.toml (or .codex/config.toml in a trusted project): # Add to ~/.codex/config.toml (or .codex/config.toml in a trusted project) [mcp_servers.leetcode] command = "npx" args = ["-y", "@modelcontextprotocol/server-leetcode"] 3. Restart Codex if needed, then run a smoke test (list tools or one safe call). Confirm with the user before writing secrets. Catalog: https://averlo.xyz/launches/leetcode.html
Try it
After install, paste one of these into your agent.
- Search LeetCode problems from AI
- Get problem descriptions
- Track practice progress

