What is LeetCode Crawler?
LeetCode Crawler is an MCP server that crawls LeetCode interview discussion forums filtered by company tag, optionally enriches posts with Claude AI to extract structured fields, and exposes the data via four stdio-based tools for Claude Desktop and Claude Code.
How to use LeetCode Crawler?
Install by cloning the repository and running pip install -r requirements.txt. Use the CLI (e.g., python cli.py --company google --pages 10 --enrich) or run the MCP server directly (python mcp_server.py) and register it with Claude Desktop using mcp install mcp_server.py. Key configuration options include --company, --pages, --since, and --enrich (requires ANTHROPIC_API_KEY).
Key features of LeetCode Crawler
- Crawls LeetCode discussion forums by company tag (google, meta, amazon, etc.)
- Classifies posts into types: leetcode, discuss_link, discussion
- Deduplicates and groups discussions by title and company across pages
- Optionally enriches posts with AI-extracted fields (problem name, stage, difficulty, outcome)
- Saves results to CSV with per-company cache or monthly output
- Exposes four MCP tools: search_discussions, get_hot_problems, get_thread, refresh
Use cases of LeetCode Crawler
- Research LeetCode interview questions for a specific company (e.g., Google, Meta)
- Analyze discussion frequency to identify hot problems for interview preparation
- Enrich posts with extracted difficulty and interview stage for structured analysis
- Cache data locally for offline or repeated use without re-crawling
- Integrate with Claude Desktop or Claude Code for real-time question lookups
コメント