MCP server · Audited from source
LeetCode MCP server
by jinzcdev/leetcode-mcp-serverMIT licenceAudited 7 Oct 2026 · source 844afb8654ca
Is it safe? No — BLOCK, grade D (69/100). It exposes 19 tools: 15 read, 4 write and 0 destructive. The audit recorded 12 findings (0 critical, 4 high, 0 medium, 8 low). Maintainer's description: 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.
Cite
Cite this page
ModelsAtlas. “LeetCode MCP server (jinzcdev/leetcode-mcp-server)”. Retrieved 7 Oct 2026. https://modelsatlas.com/mcp/jinzcdev/leetcode-1
Why this is BLOCK. The audit found 0 critical and 4 high findings; the most severe is Prompt injection at README.md:14. Each finding is listed below with its file and line.
Why this page is still public. People search for this server by name. Hiding it would leave them with the README's word alone; here they see what the code does. We list it so you can decide, and we do not show connect commands for BLOCK servers.
2 MCP servers are called LeetCode. You are viewing jinzcdev/leetcode-mcp-server. Compare all 2 →
- doggybee/mcp-server-leetcode★ 43✓SAFE
- jinzcdev/leetcode-mcp-server★ 153✕BLOCK
Trust audit
Audit 0.4.1 · full source read 7 Oct 2026
12 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.
What the source does
- FilesystemDeclared5 observations
- NetworkDeclared3 observations
- ShellNone observedNothing seen in the source
- DependenciesNot pinnedSome ranges float
- SecretsNone foundNo keys in source
Findings (12)
Sorted by severity
HIGHPrompt injectionprompt.zero_width · README.md:14
- 🌐 **Multi-site Support**: Support both leetcode.com (Global) and leetcode.cn (China) platforms
- Why
- invisible characters in instruction text
- Fix
- strip non-printing characters
HIGHPrompt injectionprompt.zero_width · README.md:16
- 📊 **Problem Data Retrieval**: Obtain detailed problem descriptions, constraints, examples, official editorials, and user-submitted solutions
- Why
- invisible characters in instruction text
- Fix
- strip non-printing characters
HIGHPrompt injectionprompt.zero_width · README.md:18
- 🔒 **Private Data Access**: Create and query user notes, track problem-solving progress, and analyze submission details (AC/WA analysis)
- Why
- invisible characters in instruction text
- Fix
- strip non-printing characters
HIGHPrompt injectionprompt.zero_width · README_zh-CN.md:16
- 📊 **题目数据获取**:获取详细的题目描述、约束条件、示例、官方题解和用户提交的解答
- Why
- invisible characters in instruction text
- Fix
- strip non-printing characters
LOWFilesystem / pathfs.traversal · src/mcp/resources/problem-resources.ts:9
} from "../../common/constants.js";
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · src/mcp/resources/problem-resources.ts:10
import { LeetCodeBaseService } from "../../leetcode/leetcode-base-service.js";- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · src/mcp/resources/resource-registry.ts:2
import { RegistryBase } from "../../common/registry-base.js";- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · src/mcp/resources/resource-registry.ts:3
import { LeetCodeBaseService } from "../../leetcode/leetcode-base-service.js";- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · src/mcp/resources/solution-resources.ts:5
import { LeetCodeBaseService } from "../../leetcode/leetcode-base-service.js";- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · README.md:144
"url": "http://127.0.0.1:3000/mcp"
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · README_zh-CN.md:144
"url": "http://127.0.0.1:3000/mcp"
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWSupply chainsupply.unpinned · package.json
@modelcontextprotocol/sdk, leetcode-query, minimist, pino, ts-node, zod, @eslint/js, @types/minimist
- Why
- 24 dependency range(s) float
- Fix
- pin exact versions or ship a lockfile
Tools it exposes
19 declared in source · 0 destructive
| Tool | What it does | Risk |
|---|---|---|
create_note | Creates a new personal note for a problem (write operation, requires auth, CN only). Supports markdown content. Returns { success, note } as JSON. Use update_note to modify an existing note by noteId. | write |
run_code | No description in the source | write |
submit_solution | No description in the source | write |
update_note | Updates an existing personal note by noteId (write operation, requires auth, CN only). Use create_note for new notes; use get_note or search_notes first to find the noteId. | write |
get_all_submissions | Retrieves paginated submission history for the authenticated user on LeetCode Global (read-only, requires auth). Optionally filter by problem slug. Use get_recent_submissions/get_recent_ac_submissions to view any user | read |
get_daily_challenge | Retrieves today | read |
get_note | Retrieves personal notes for a specific problem by questionId (read-only, requires auth, CN only). Use search_notes to find notes across problems by keyword when you don | read |
get_problem | Retrieves a single LeetCode problem by titleSlug (read-only, no auth). Returns description, examples, constraints, and metadata as JSON. Use search_problems to find problems by keyword/tag/difficulty; use get_daily_challenge for today | read |
get_problem_progress | Retrieves the authenticated user | read |
get_problem_solution | Retrieves full content of a community solution article (read-only, no auth). Requires topicId from list_problem_solutions. Returns article text, author, and metadata as JSON. Use list_problem_solutions first to discover solutions and obtain topicId. | read |
get_problem_submission_report | No description in the source | read |
get_recent_ac_submissions | Retrieves a user | read |
get_recent_submissions | Retrieves a user | read |
get_user_contest_ranking | Retrieves a user | read |
get_user_profile | Retrieves any user | read |
get_user_status | Checks the authenticated user | read |
list_problem_solutions | Lists community solution articles for a problem (read-only, no auth). Returns metadata only (topicId)—not full content. Use get_problem_solution with the returned topicId to read the full article. Do not call this when you already have a topicId and need the solution text. | read |
search_notes | Searches the authenticated user | read |
search_problems | Searches LeetCode problems by category, tags, difficulty, and keywords (read-only, no auth). Supports pagination via limit/offset. Returns matching problem list as JSON. Use get_problem when you already know the titleSlug; use this to browse or discover problems. | read |
Safer alternatives
We could not match this server to a job, so we cannot suggest a like-for-like alternative. Read-only servers are the least-privilege place to start.
Audit history
- ✕BLOCK D 69 / 100
First audit ·
844afb8654ca
README badge
Badges show the current verdict, BLOCK included
A badge cannot be hidden by the maintainer while the verdict is BLOCK. Fix the findings, push, and the re-audit updates it.
Questions about LeetCode MCP server
What is the LeetCode MCP server?
What tools does LeetCode expose?
Is LeetCode safe to connect to an agent?
What credentials does LeetCode need?
How does LeetCode run?
How current is this page?
Which LeetCode MCP server is the right one?
I already installed LeetCode. What should I do?
Can the verdict change?
Sources
- jinzcdev/leetcode-mcp-server on GitHub — the source we read, its licence, stars and activityObserved · 7 Oct 2026
- ModelsAtlas trust audit — BLOCK verdict for commit 844afb8654caObserved · 7 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What is the LeetCode MCP server?
- What tools does LeetCode expose?
- Is LeetCode safe to connect to an agent?