MCP サーバー LeetCode
AI アシスタントが LeetCode の問題、ユーザー情報、コンテスト データにアクセスできるようにする、LeetCode 用のモデル コンテキスト プロトコル (MCP) サーバー。
特徴
🚀 LeetCode APIへの高速アクセス
🔍 問題を検索し、毎日の課題を取得し、ユーザープロフィールを確認します
🏆 クエリコンテストデータとランキング
🧩 MCPツールとリソースの完全サポート
📦 CLIとプログラム可能なAPIの両方を提供
インストール
グローバルインストール
インストールしたら、コマンドラインから直接実行できます。
ローカルインストール
使用法
Claude for Desktopとの統合
Claude for Desktop のclaude_desktop_config.json
ファイルに以下を追加します。
地域開発の場合:
図書館として利用
利用可能なツール
問題関連ツール
ツール名 | 説明 | パラメータ |
| 毎日のチャレンジに挑戦 | なし |
| 特定の問題の詳細を取得する |
(文字列) |
| 基準に基づいて問題を検索する |
(オプション)、
(オプション)、
(デフォルト20)、
(デフォルト0) |
ユーザー関連ツール
ツール名 | 説明 | パラメータ |
| ユーザー情報を取得する |
(文字列) |
| ユーザーの投稿履歴を取得する |
(文字列)、
(オプション、デフォルトは20) |
| ユーザーコンテストランキングを取得する |
(文字列) |
コンテスト関連ツール
ツール名 | 説明 | パラメータ |
| コンテストの詳細を見る |
(文字列) |
利用可能なリソース
問題リソース
leetcode://daily-challenge
: デイリーチャレンジleetcode://problem/{titleSlug}
: 問題の詳細leetcode://problems{?tags,difficulty,limit,skip}
: 問題リスト
ユーザーリソース
leetcode://user/{username}/profile
: ユーザープロフィールleetcode://user/{username}/submissions{?limit}
: ユーザーの投稿leetcode://user/{username}/contest-ranking
: ユーザーコンテストランキング
地域開発
リポジトリをクローンし、依存関係をインストールします。
開発モードで実行:
プロジェクトをビルドします。
ライセンス
マサチューセッツ工科大学
関連プロジェクト
モデルコンテキストプロトコル- MCP 仕様とドキュメント
Claude for Desktop - MCPサポート付きAIアシスタント
謝辞
このプロジェクトはalfa-leetcode-apiに触発されました
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
AI アシスタントが LeetCode の問題、ユーザー情報、コンテスト データにアクセスできるようにする、LeetCode 用のモデル コンテキスト プロトコル (MCP) サーバー。
Related Resources
Related MCP Servers
- -securityAlicense-qualityA Model Context Protocol (MCP) server that allows AI assistants like Claude to interact with Go's Language Server Protocol (LSP) and benefit from advanced Go code analysis features.Last updated -43Apache 2.0
- AsecurityAlicenseAqualityA Model Context Protocol server that provides integration with LeetCode APIs, enabling automated interaction with programming problems, contests, solutions, and user data across both leetcode.com and leetcode.cn platforms.Last updated -919652MIT License
- -securityAlicense-qualityModel Context Protocol (MCP) server that provides AI assistants with advanced web research capabilities, including Google search integration, intelligent content extraction, and multi-source synthesis.Last updated -114MIT License
- AsecurityFlicenseAqualityA Model Context Protocol (MCP) server for advanced code analysis and editing with semantic search capabilities, enabling AI assistants to perform complex code operations through a standardized interface.Last updated -151