Live survey315 models · 14 providers · 23,592 auditsAudited implement · SAFE →What changedHow we verifyllms.txt

MCP server · Audited from source

LeetCode MCP server

by jinzcdev/leetcode-mcp-serverMIT licenceAudited 7 Oct 2026 · source 844afb8654ca

npm @jinzcdev/leetcode-mcp-server 1.4.0stdiostreamable-http★ 153
✕BLOCKGrade D · 69/100 · 7 Oct 2026 · 844afb8

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.

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
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 →

Trust audit

Audit 0.4.1 · full source read 7 Oct 2026

Trust score69/100✕BLOCK D
0 critical4 high0 medium8 low0 info

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
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
- 🌐 **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
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
- 📊 **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
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
- 🔒 **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
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
- 📊 **题目数据获取**:获取详细的题目描述、约束条件、示例、官方题解和用户提交的解答
Why
invisible characters in instruction text
Fix
strip non-printing characters
LOWFilesystem / pathfs.traversal · src/mcp/resources/problem-resources.ts:9
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
} from "../../common/constants.js";
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · src/mcp/resources/problem-resources.ts:10
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
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
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
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
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
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
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
import { LeetCodeBaseService } from "../../leetcode/leetcode-base-service.js";
Why
No further detail recorded for this rule.
Fix
—
LOWNetwork egressnet.raw_ip · README.md:144
F-04 Network egressCWE-200 · CWE-319Layer L1
"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
F-04 Network egressCWE-200 · CWE-319Layer L1
"url": "http://127.0.0.1:3000/mcp"
Why
No further detail recorded for this rule.
Fix
—
LOWSupply chainsupply.unpinned · package.json
F-08 Supply chainCWE-829 · CWE-1357Layer L1
@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

15 read4 write0 destructive
ToolWhat it doesRisk
create_noteCreates 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_codeNo description in the sourcewrite
submit_solutionNo description in the sourcewrite
update_noteUpdates 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_submissionsRetrieves 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 userread
get_daily_challengeRetrieves todayread
get_noteRetrieves 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 donread
get_problemRetrieves 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 todayread
get_problem_progressRetrieves the authenticated userread
get_problem_solutionRetrieves 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_reportNo description in the sourceread
get_recent_ac_submissionsRetrieves a userread
get_recent_submissionsRetrieves a userread
get_user_contest_rankingRetrieves a userread
get_user_profileRetrieves any userread
get_user_statusChecks the authenticated userread
list_problem_solutionsLists 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_notesSearches the authenticated userread
search_problemsSearches 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

  1. ✕BLOCK D 69 / 100

    First audit · 844afb8654ca

README badge

Badges show the current verdict, BLOCK included

ModelsAtlas: BLOCK DMODELSATLASBLOCK · D

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?
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.
What tools does LeetCode expose?
19 in total: 15 read-only, 4 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is LeetCode safe to connect to an agent?
No — not without reading the findings first. The audit graded it D (69/100) and found 4 critical or high issues in the source. Each one is listed on this page with the file and line it is on.
What credentials does LeetCode need?
No credential environment variables were found in its source, so it appears to need none.
How does LeetCode run?
It speaks stdio and streamable-http, so it runs as a local process your client starts. It is published on npm as @jinzcdev/leetcode-mcp-server at 1.4.0.
How current is this page?
The grade is for one exact copy of the source (844afb8654ca), read on 2026-10-07. The repository is watched and re-audited when it changes.
Which LeetCode MCP server is the right one?
doggybee/mcp-server-leetcode. 2 servers share the name; see the side-by-side comparison.
I already installed LeetCode. What should I do?
Remove it from your client's MCP configuration, then rotate any API keys and tokens that were in your environment while it ran.
Can the verdict change?
Yes. The repository is watched and re-audited when its source changes. If the findings are removed the verdict updates, and the history on this page shows it.

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.