DM

doggybee/mcp-server-leetcode

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

44 stars 16 forks 品質 63 トレンド 0MIT

doggybee/mcp-server-leetcode は [https://github.com/doggybee/mcp-server-leetcode.] からインポートされた MCP サーバーの候補です

概要

doggybee/mcp-server-leetcode は [https://github.com/doggybee/mcp-server-leetcode.] からインポートされた MCP サーバーの候補です

概要(AI 翻訳)

AIアシスタントがLeitCodeの問題、ユーザー情報、およびコンテストデータにアクセスできるようにするLeitCode用のモデルコンテキストプロトコル(MCP)サーバー。

##特徴

  • LeetCode APIへの高速アクセス
  • 一般的な検索の問題、毎日の課題を探し、ユーザープロファイルをチェック
  • コンテストデータとランキングを問い合わせる
  • MCPツールとリソースのフルサポート
  • CLIとプログラム可能なAPIの両方を提供

インストール

##Smitheryでインストールする

デスクトップ用のmcp-server-leetcodeをSmisery経由で自動的にインストールするには:

###グローバルインストール

インストールしたら、コマンドラインから直接実行できます。

ローカルインストール

使用法

デスクトップ用のClaudeとの統合

デスクトップ [claude_desktop_config.json] の Claude に次のファイルを追加します。

ローカル開発のため:

ライブラリとして使う

利用可能なツール

##問題関連ツール

| 工具名 | 説明 | パラメーター | お問い合わせ | [get-daily-challenge | 日々のチャレンジ | なし | | [get-problem | 特定の問題について | [titleSlug (文字列) |

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

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:

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

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 Name Description Parameters
get-daily-challenge Get the daily challenge None
get-problem Get details for a specific problem titleSlug (string)
search-problems Search for problems based on criteria tags (optional), difficulty (optional), limit (default 20), skip (default 0)
Tool Name Description Parameters
get-user-profile Get user information username (string)
get-user-submissions Get user submission history username (string), limit (optional, default 20)
GitHub で README 全文を見る

インストール

npx -y @smithery/cli install @doggybee/mcp-server-leetcode --client claude
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

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