技能潮 SkillTide 提交收录
官方说明13 个来源MCP 服务8 天前
jinzcdev/leetcode-mcp-server

jinzcdev/leetcode-mcp-server

📇 ☁️ - Access LeetCode problems, solutions, submissions and public data, with optional login for user…
在 GitHub 查看 ↗直链 · 无中转页
官方说明📇 ☁️ - MCP server enabling automated access to LeetCode's programming problems, solutions, submissions and public data with optional authentication for user-specific features (e.g., notes), supporting
配置模板(请按你的客户端调整)
claude mcp add leetcode-mcp-server -- npx -y leetcode-mcp-server
这是根据仓库名生成的可粘贴骨架,命令行参数与包名请以该项目 README 为准。
★ 数取值
154 ★ · jinzcdev/leetcode-mcp-server · 取自该仓库的 GitHub 页面 · (2026-10-16 20:00:20 核对)
来源明细
收录自 punkpeye/awesome-mcp-servers 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
收录与活跃
收录于 2026-10-09 · 最近见到 2026-10-16 · 共见到 32 次 · 被 13 个来源列出
评分构成
综合分 1,303 · 154 ★ · 13 个来源 · mcp
常见问题(答案都来自我们的记录)
怎么安装?
我们【没有】从该仓库取到安装命令(我们的 install 覆盖率只有约 4%)。请看它的 README 或 releases 页。
它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
仓库 jinzcdev/leetcode-mcp-server;我们收录于 2026-10-09;最近见到 2026-10-16。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。
第三方质量标记

LeetCode MCP Server

以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →

The LeetCode MCP Server is a Model Context Protocol (MCP) server that provides seamless integration with LeetCode APIs, enabling advanced automation and intelligent interaction with LeetCode's programming problems, contests, solutions, and user data.
Features
- 🌐 **Multi-site Support**: Support​ both leetcode.com (Global) and leetcode.cn (China) platforms
- 🔌 **Dual Transport Modes**: Run as a stdio process (default) or as a Streamable HTTP server for web-based integrations
- 📊 **Problem Data Retrieval**: Obtain detailed problem descriptions, constraints, examples, official editorials, and ​user-submitted solutions
- 👤 **User Data Access**: Retrieve user profiles, submission history, and contest performance
- 🔒 **​Private Data Access**: Create and query user notes, track problem-solving progress, and analyze submission details (AC/WA analysis)
- 🔍 **Advanced Search Capabilities**: Filter problems by tags, difficulty levels, categories, and keywords
- 📅 **Daily Challenge Access**: Easily access daily challenge problems
Prerequisites
1. Node.js (v20.x or above)
2. (Optional) LeetCode session cookie for authenticated API access
Installation
Alternatively, you can clone the repository and run it locally:
Usage
The server supports two transport modes:
| Transport | Description |
| ----------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| stdio (default) | Standard input/output transport for local MCP clients |
| http | Streamable HTTP transport for web-based integrations and remote access |
Command-Line Options
| Option | Alias | Default | Description |
| ------------- | ----- | ----------- | ---------------------------------------------------------------- |
| --site | -s | global | LeetCode API site: global (leetcode.com) or cn (leetcode.cn) |
| --session | -c | — | LeetCode session cookie for authenticated requests |
| --transport | -t | stdio | Transport mode: stdio or http |
| --port | — | 3000 | HTTP server port (Streamable HTTP only) |
| --host | — | 127.0.0.1 | HTTP server host (Streamable HTTP only) |
| --endpoint | — | /mcp | HTTP endpoint path (Streamable HTTP only) |
MCP Client Configuration (stdio)
Add the following server entry to your MCP client configuration file:
Option 1: Using Environment Variables
Option 2: Using Command Line Arguments
For LeetCode China site, modify the --site parameter to cn.
> [!NOTE]
>
> The exact configuration file location and JSON structure may vary by MCP client. Some clients use an mcp.servers wrapper or a type field — refer to your client's documentation and adapt the example accordingly.
MCP Client Configuration (Streamable HTTP)
First, start the server in HTTP mode:
Then connect your MCP client to the running server:
To use authenticated endpoints, pass the session cookie when starting the server:
> [!NOTE]
> Some MCP clients use "type": "http" or "type": "streamableHttp" alongside the url field. Refer to your client's documentation for the exact HTTP transport configuration format.
> [!TIP]
>
> The server supports the following optional environment variables:
>
> - LEETCODE_SITE: LeetCode API endpoint (global or cn, default: global)
> - LEETCODE_SESSION: LeetCode session cookie for authenticated API access (default: empty)
> - LEETCODE_TRANSPORT: Transport mode (stdio or http, default: stdio)
> - LEETCODE_HTTP_PORT: HTTP server port when using Streamable HTTP (default: 3000)
> - LEETCODE_HTTP_HOST: HTTP server host when using Streamable HTTP (default: 127.0.0.1)
> - LEETCODE_HTTP_ENDPOINT: HTTP endpoint path when using Streamable HTTP (default: /mcp)
>
> **Priority Note**:
> Command-line arguments take precedence over environment variables when both are specified. For example:
>
> - If LEETCODE_SITE=cn is set but you run leetcode-mcp-server --site global, the server will use global.
> - If LEETCODE_SESSION exists but you provide --session "new_cookie", the command-line session value will be used.
Available Tools
来源
awesome · https://github.com/jinzcdev/leetcode-mcp-server
按领域浏览
MCP 服务
Traction
154 ★
收录于
昨天

更多MCP 服务

查看MCP 服务全部 5,525 条 →

所属领域与标签

每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。

浏览全部领域 →

← 返回索引