This LeetCode MCP server provides AI assistants with structured access to LeetCode's problem database, user profiles, and contest information through GraphQL queries. Built with TypeScript and the Model Context Protocol SDK, it offers tools for retrieving daily challenges, searching problems by difficulty and tags, accessing user submissions, and fetching contest rankings. The implementation features comprehensive error handling and a modular architecture with clearly defined resources using custom URI schemes. It's particularly useful for developers and coding interview candidates who want to explore LeetCode problems, track their progress, or analyze contest performance through natural language interactions.
Get the daily challenge. Parameters: None
Get details for a specific problem. Parameters: titleSlug (string)
Search for problems based on criteria. Parameters: tags (optional), difficulty (optional), limit (default 20), skip (default 0)
Get user information. Parameters: username (string)
Get user submission history. Parameters: username (string), limit (optional, default 20)
Get user contest rankings. Parameters: username (string)
Get contest details. Parameters: contestSlug (string)
No reviews yet. Be the first to review!
Sign in to join the conversation
Our bundler currently only supports TypeScript-based servers. Check back soon!