Track MCP LogoTrack MCP
Track MCP LogoTrack MCP

The world's largest repository of Model Context Protocol servers. Discover, explore, and submit MCP tools.

Product

  • Categories
  • Top MCP
  • New & Updated
  • Submit MCP

Company

  • About

Legal

  • Privacy Policy
  • Terms of Service
  • Cookie Policy

© 2026 TrackMCP. All rights reserved.

Built with ❤️ by Krishna Goyal

    Mcp Server Leetcode

    A Model Context Protocol (MCP) server for LeetCode that provides access to problems, user data, and contest information through GraphQL

    32 stars
    TypeScript
    Updated Apr 2, 2025

    Table of Contents

    • Features
    • Installation
    • Installing via Smithery
    • Global Installation
    • Local Installation
    • Usage
    • Integration with Claude for Desktop
    • Use as a Library
    • Available Tools
    • Problem-related Tools
    • User-related Tools
    • Contest-related Tools
    • Available Resources
    • Problem Resources
    • User Resources
    • Local Development
    • License
    • Related Projects
    • Acknowledgements

    Table of Contents

    • Features
    • Installation
    • Installing via Smithery
    • Global Installation
    • Local Installation
    • Usage
    • Integration with Claude for Desktop
    • Use as a Library
    • Available Tools
    • Problem-related Tools
    • User-related Tools
    • Contest-related Tools
    • Available Resources
    • Problem Resources
    • User Resources
    • Local Development
    • License
    • Related Projects
    • Acknowledgements

    Documentation

    MCP Server LeetCode

    npm version

    GitHub license

    Version

    smithery badge

    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:

    bash
    npx -y @smithery/cli install @doggybee/mcp-server-leetcode --client claude

    Global Installation

    bash
    npm install -g @mcpfun/mcp-server-leetcode

    Once installed, you can run it directly from the command line:

    bash
    mcp-server-leetcode

    Local Installation

    bash
    npm install @mcpfun/mcp-server-leetcode

    Usage

    Integration with Claude for Desktop

    Add the following to your Claude for Desktop claude_desktop_config.json file:

    json
    {
      "mcpServers": {
        "leetcode": {
          "command": "mcp-server-leetcode"
        }
      }
    }

    For local development:

    json
    {
      "mcpServers": {
        "leetcode": {
          "command": "node",
          "args": ["/path/to/dist/index.js"]
        }
      }
    }

    Use as a Library

    javascript
    import { LeetCodeService } from '@mcpfun/mcp-server-leetcode';
    
    // Initialize the service
    const leetcodeService = new LeetCodeService();
    
    // Get daily challenge
    const dailyChallenge = await leetcodeService.getDailyChallenge();
    
    // Search problems
    const problems = await leetcodeService.searchProblems({
      difficulty: 'MEDIUM',
      tags: 'array+dynamic-programming'
    });

    Available Tools

    Problem-related Tools

    Tool NameDescriptionParameters
    get-daily-challengeGet the daily challengeNone
    get-problemGet details for a specific problemtitleSlug (string)
    search-problemsSearch for problems based on criteriatags (optional), difficulty (optional), limit (default 20), skip (default 0)

    User-related Tools

    Tool NameDescriptionParameters
    get-user-profileGet user informationusername (string)
    get-user-submissionsGet user submission historyusername (string), limit (optional, default 20)
    get-user-contest-rankingGet user contest rankingsusername (string)

    Contest-related Tools

    Tool NameDescriptionParameters
    get-contest-detailsGet contest detailscontestSlug (string)

    Available Resources

    Problem Resources

    • leetcode://daily-challenge: Daily challenge
    • leetcode://problem/{titleSlug}: Problem details
    • leetcode://problems{?tags,difficulty,limit,skip}: Problem list

    User Resources

    • leetcode://user/{username}/profile: User profile
    • leetcode://user/{username}/submissions{?limit}: User submissions
    • leetcode://user/{username}/contest-ranking: User contest ranking

    Local Development

    Clone the repository and install dependencies:

    bash
    git clone https://github.com/doggybee/mcp-server-leetcode.git
    cd mcp-server-leetcode
    npm install

    Run in development mode:

    bash
    npm run dev

    Build the project:

    bash
    npm run build

    License

    MIT

    Related Projects

    • Model Context Protocol - MCP specifications and documentation
    • Claude for Desktop - AI assistant with MCP support

    Acknowledgements

    • This project was inspired by alfa-leetcode-api

    Similar MCP

    Based on tags & features

    • MC

      Mcp Open Library

      TypeScript·
      42
    • DI

      Discogs Mcp Server

      TypeScript·
      59
    • QU

      Quran Mcp Server

      TypeScript·
      50
    • AN

      Anilist Mcp

      TypeScript·
      57

    Trending MCP

    Most active this week

    • PL

      Playwright Mcp

      TypeScript·
      22.1k
    • SE

      Serena

      Python·
      14.5k
    • MC

      Mcp Playwright

      TypeScript·
      4.9k
    • MC

      Mcp Server Cloudflare

      TypeScript·
      3.0k
    View All MCP Servers

    Similar MCP

    Based on tags & features

    • MC

      Mcp Open Library

      TypeScript·
      42
    • DI

      Discogs Mcp Server

      TypeScript·
      59
    • QU

      Quran Mcp Server

      TypeScript·
      50
    • AN

      Anilist Mcp

      TypeScript·
      57

    Trending MCP

    Most active this week

    • PL

      Playwright Mcp

      TypeScript·
      22.1k
    • SE

      Serena

      Python·
      14.5k
    • MC

      Mcp Playwright

      TypeScript·
      4.9k
    • MC

      Mcp Server Cloudflare

      TypeScript·
      3.0k