Leetcode

Leetcode

By doggybee GitHub

-

mathgpt math-solver
Overview

what is MCP Server LeetCode?

MCP Server LeetCode is a Model Context Protocol (MCP) server that allows AI assistants to access LeetCode problems, user information, and contest data.

how to use MCP Server LeetCode?

To use MCP Server LeetCode, install it globally or locally via npm, and run the command mcp-server-leetcode. You can also integrate it with AI assistants like Claude for Desktop by configuring the claude_desktop_config.json file.

key features of MCP Server LeetCode?

  • 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

use cases of MCP Server LeetCode?

  1. Accessing daily coding challenges for practice.
  2. Searching for specific coding problems based on difficulty and tags.
  3. Retrieving user profiles and submission history for analysis.
  4. Checking contest rankings and details for competitive programming.

FAQ from MCP Server LeetCode?

  • Is MCP Server LeetCode free to use?

Yes! It is free to use for everyone.

  • What programming languages does it support?

It is designed to work with JavaScript and Node.js environments.

  • Can I use it for local development?

Yes! You can clone the repository and run it in development mode.

Content

MCP Server LeetCode

npm version GitHub license Version

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

Global Installation

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

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

mcp-server-leetcode

Local Installation

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:

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

For local development:

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

Use as a Library

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

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)
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)
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:

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

Run in development mode:

npm run dev

Build the project:

npm run build

License

MIT

Acknowledgements

No tools information available.

-

mathgpt math-solver
View Details
StatSource
StatSource by jamie7893

Statsource is a standalone MCP server designed to simplify data analysis. Whether you're pulling data from a PostgreSQL database or a CSV file, Statsource delivers actionable insights with ease

mathgpt math-solver
View Details

Mirror of

mathgpt math-solver
View Details

created from MCP server demo

mathgpt math-solver
View Details

-

mathgpt math-solver
View Details

created from MCP server demo

mathgpt math-solver
View Details