doggybee_mcp-server-leetcode
1
The MCP Server LeetCode is a server that supports the Model Context Protocol to provide AI assistants with access to LeetCode data, including problems, user information, and contest details. It offers fast access via an API and can be used both as a command line tool and as a programmable library.
MCP Server LeetCode
A Model Context Protocol (MCP) server for LeetCode that enables AI assistants to access LeetCode problems, user information, and contest data.
Features
- Fast access to LeetCode API
- Search problems, retrieve daily challenges, and check user profiles
- Query contest data and rankings
- Full support for MCP tools and resources
- Provides both CLI and programmable API
Installation
Installing via Smithery
To install mcp-server-leetcode for Claude Desktop automatically via Smithery.
Global Installation
npm install -g @mcpfun/mcp-server-leetcode
Usage
Integration with Claude for Desktop
Add the server to the claude_desktop_config.json
file.
Available Tools
Problem-related Tools
Tool Name | Description | Parameters |
---|---|---|
get-daily-challenge | Get the daily challenge | None |
get-problem | Get details for a specific problem | titleSlug (string) |
User-related Tools
Tool Name | Description | Parameters |
---|---|---|
get-user-profile | Get user information | username (string) |
Contest-related Tools
Tool Name | Description | Parameters |
---|---|---|
get-contest-details | Get contest details | contestSlug (string) |
License
MIT