
jinzcdev/leetcode-mcp-server
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
jinzcdev/leetcode-mcp-server は、https://github.com/jinzcdev/leetcode-mcp-server. からインポートされたMCPサーバー候補です。
概要
jinzcdev/leetcode-mcp-server は、https://github.com/jinzcdev/leetcode-mcp-server. からインポートされたMCPサーバー候補です。
概要(AI 翻訳)
LeetCode MCP Serverはモデルコンテキストプロトコル(MCP)サーバーであり、LeetCode APIとのシームレスな統合を提供し、LeetCodeのプログラミング問題、コンテスト、解答、ユーザーデータとの高度な自動化とインテリジェントなインタラクションを可能にします。
特徴
- 🌐 マルチサイトサポート:leetcode.com(グローバル)および leetcode.cn(中国)プラットフォームの両方をサポートします
- 🔌 デュアルトランスポートモード:標準段階プロセスとして動作するか、ウェブベースの統合のためのストリーミング可能なHTTPサーバーとして動作
- 📊 問題データ検索:詳細な問題説明、制約、例、公式社説、ユーザー投稿の解決策を取得
- 👤 ユーザーデータアクセス:ユーザープロフィール、投稿履歴、コンテスト成績の取得
- 🔒 プライベートデータアクセス:ユーザーノートの作成・クエリ、問題リスト管理、問題解決進捗の追跡、提出詳細の分析(AC/WA分析)
- 🔍 高度な検索機能:タグ、難易度レベル、カテゴリ、キーワードで問題をフィルタリング
- 📅 デイリーチャレンジアクセス:デイリーチャレンジ問題に簡単にアクセスできる
前提条件
- Node.js(v20.x以上)
- 認証済みAPIアクセス用のLeetCodeセッションクッキー
設置
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
LeetCode MCP Server
The LeetCode MCP Server is a Model Context Protocol (MCP) server that provides seamless integration with LeetCode APIs, enabling advanced automation and intelligent interaction with LeetCode’s programming problems, contests, solutions, and user data.
Features
- 🌐 Multi-site Support: Support both leetcode.com (Global) and leetcode.cn (China) platforms
- 🔌 Dual Transport Modes: Run as a stdio process (default) or as a Streamable HTTP server for web-based integrations
- 📊 Problem Data Retrieval: Obtain detailed problem descriptions, constraints, examples, official editorials, and user-submitted solutions
- 👤 User Data Access: Retrieve user profiles, submission history, and contest performance
- 🔒 Private Data Access: Create and query user notes, manage problem lists, track problem-solving progress, and analyze submission details (AC/WA analysis)
- 🔍 Advanced Search Capabilities: Filter problems by tags, difficulty levels, categories, and keywords
- 📅 Daily Challenge Access: Easily access daily challenge problems
Prerequisites
- Node.js (v20.x or above)
- (Optional) LeetCode session cookie for authenticated API access
Installation
# Install from npm
npm install @jinzcdev/leetcode-mcp-server -g
# Run with Global site configuration (stdio transport, default)
npx -y @jinzcdev/leetcode-mcp-server --site global
# Run with authentication (for accessing private data)
npx -y @jinzcdev/leetcode-mcp-server --site global --session
# Run as a Streamable HTTP server
npx -y @jinzcdev/leetcode-mcp-server --transport http --port 3000 --site global
Alternatively, you can clone the repository and run it locally:
# Clone the repository
git clone https://github.com/jinzcdev/leetcode-mcp-server.git
# Navigate to the project directory
cd leetcode-mcp-server
# Build the project
npm install && npm run build
# Run the server (stdio transport)
node build/index.js --site global
# Or run as a Streamable HTTP server
node build/index.js --transport http --port 3000 --site global
インストール
npx -y @jinzcdev/leetcode-mcp-server設定
{
"mcpServers": {
"leetcode": {
"command": "npx",
"args": ["-y", "@jinzcdev/leetcode-mcp-server"],
"env": {
"LEETCODE_SITE": "global",
"LEETCODE_SESSION": "<YOUR_LEETCODE_SESSION_COOKIE>"
}
}
}
}