LeetCode Discussion Crawler MCP Server

LeetCode Discussion Crawler MCP Server

mcp-leetcode-crawler•bylouisfghbvc

A LeetCode discussion crawler that exposes crawled interview discussion data to Claude Desktop and Claude Code through a stdio MCP server with four tools.

License: MIT•Runtime: Awaiting documentation review•Category: search web

WHAT IT DOES

  • •Crawls LeetCode discussion forums filtered by company tags such as google, meta and amazon, and classifies posts by type.
  • •Groups and deduplicates discussions by post title and company across pages.
  • •Optionally enriches posts with AI-extracted fields such as problem name, LeetCode URL, interview stage, difficulty and reported outcome.
  • •Exposes four MCP tools: search_discussions, get_hot_problems, get_thread and refresh.

BEST FOR

  • •Filtering cached LeetCode interview discussions by company and time window from within Claude.
  • •Finding which LeetCode problems are most frequently discussed for a given company.
  • •Fetching a single LeetCode discussion thread in real time without using the cache.

ABOUT MCP-LEETCODE-CRAWLER

LeetCode Discussion Crawler MCP Server is cataloged as an MCP server attributed to louisfghbvc. A LeetCode discussion crawler that exposes crawled interview discussion data to Claude Desktop and Claude Code through a stdio MCP server with four tools. It is categorized under search web. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for LeetCode Discussion Crawler MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

How many tools does the MCP server expose?

The server exposes four tools over stdio MCP transport.

What happens if I use search_discussions or get_hot_problems before refreshing the cache?

The cache must be populated first by running refresh before those tools can be used.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 39c1c6a506fc · 采集于 2026-11-13 10:36:56 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

LeetCode Discussion Crawler + MCP Server

Crawl LeetCode interview discussion forums, extract structured intelligence with Claude AI, and expose the data as an MCP (Model Context Protocol) server for Claude Desktop and Claude Code.

What it does

  • Crawls LeetCode discussion forums filtered by company tag (google, meta, amazon, etc.)
  • Classifies posts by type (leetcode, discuss_link, discussion)
  • Groups and deduplicates discussions by post title + company across pages
  • Optionally enriches posts with AI-extracted fields: problem_name, leetcode_url, interview_stage, difficulty, reported_outcome
  • Saves to CSV (per-company cache or monthly output)
  • Exposes 4 tools over stdio MCP transport for use with Claude Desktop / Claude Code

Installation

git clone https://github.com/louisfghbvc/mcp-leetcode-crawler.git
cd mcp-leetcode-crawler
pip install -r requirements.txt

Usage

CLI

# Crawl 10 pages of Google interview discussions
python cli.py --company google --pages 10

# Filter to posts from the last 30 days
python cli.py --company google --pages 10 --since 30d

# Crawl and enrich with AI extraction (requires ANTHROPIC_API_KEY)
python cli.py --company google --pages 10 --enrich

# Other companies
python cli.py --company meta --pages 5 --since 7d

Available CLI options:

  • --company: Company tag (default: google)
  • --pages: Pages to crawl, 15 posts/page (default: 10)
  • --output: Output CSV path (default: leetcode_interview_questions.csv)
  • --output-dir: Directory for monthly CSVs (default: output)
  • --since: Time window filter — Nd (days) or Nw (weeks), e.g. --since 14d
  • --enrich: AI-extract structured fields from each post (requires ANTHROPIC_API_KEY)
  • --verbose: Debug logging
  • --category: Discussion category (default: interview-question)

MCP Server

Register with Claude Desktop or Claude Code:

# Run directly
python mcp_server.py

# Or register with Claude Desktop
mcp install mcp_server.py

The server exposes 4 tools:

ToolDescription
search_discussions(company, days)Filter cached posts by company and time window
get_hot_problems(company, limit)Top LeetCode problems ranked by discussion frequency
get_thread(post_id)Real-time single-thread fetch (no cache)
refresh(company, num_pages, days, enrich)Crawl and rebuild on-disk cache

Cache lives in ./cache/{company}_questions.csv. Run refresh once to populate before using search_discussions or get_hot_problems.

AI Enrichment

When --enrich (CLI) or enrich=True (MCP refresh) is used, each post gets 5 new fields:

FieldValues
problem_nameLeetCode problem name, or null
leetcode_urlFull problem URL, or null
interview_stagephone screen / online assessment / onsite / final round / null
difficultyeasy / medium / hard / null
reported_outcomepassed / failed / no mention / null (null = extraction failed, will retry)

Cost: ~$0.001/post with claude-haiku-4-5-20251001. Already-enriched posts are skipped on re-run.

Project Structure

mcp-leetcode-crawler/
├── crawler.py          # Core crawler: fetch, deduplicate, filter, classify posts
├── extractor.py        # AI extraction layer: Claude Haiku → structured fields
├── mcp_server.py       # MCP server: 4 tools over stdio transport
├── cli.py              # Command-line interface
├── requirements.txt    # Python dependencies
├── test_crawler.py     # Crawler unit tests
├── test_mcp_server.py  # MCP server unit tests (22 tests)
├── test_extractor.py   # Extractor unit tests (12 tests)
├── test_cli.py         # CLI integration tests (2 tests)
└── cache/              # Per-company CSV cache (git-ignored)

Requirements

  • Python 3.12+
  • ANTHROPIC_API_KEY env var (only for --enrich)

License

MIT

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for LeetCode Discussion Crawler MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-leetcode-crawler)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related search web MCP Servers

Alternative and complementary servers in the same category

View all in search web →

An MCP server that merges Google Search Console history with a live first-party crawl of your site to produce a prioritised, evidence-backed technical SEO audit inside Claude, complete with paste-ready fixes.

Repository stats unavailable
Search & Web Research

An MCP server that offers intelligent web search using OpenAI reasoning models, with support for fast iterations and deep research.

94
Search & Web Research