mcp-server-leetcode
MCP 서버 LeetCode
LeetCode의 MCP(Model Context Protocol) 서버는 AI 어시스턴트가 LeetCode 문제, 사용자 정보 및 경연 대회 데이터에 액세스할 수 있도록 해줍니다.
특징
🚀 LeetCode API에 빠르게 액세스
🔍 문제 검색, 일일 챌린지 검색, 사용자 프로필 확인
🏆 콘테스트 데이터 및 순위 조회
🧩 MCP 도구 및 리소스에 대한 전체 지원
📦 CLI와 프로그래밍 가능한 API를 모두 제공합니다
Related MCP server: LeetCode MCP Server
설치
글로벌 설치
지엑스피1
설치가 완료되면 명령줄에서 직접 실행할 수 있습니다.
mcp-server-leetcode로컬 설치
npm install @mcpfun/mcp-server-leetcode용법
데스크톱용 Claude와 통합
Claude for Desktop claude_desktop_config.json 파일에 다음을 추가하세요.
{
"mcpServers": {
"leetcode": {
"command": "mcp-server-leetcode"
}
}
}지역 개발을 위해:
{
"mcpServers": {
"leetcode": {
"command": "node",
"args": ["/path/to/dist/index.js"]
}
}
}도서관으로 활용하기
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'
});사용 가능한 도구
문제 관련 도구
도구 이름 | 설명 | 매개변수 |
| 매일의 도전에 참여하세요 | 없음 |
| 특정 문제에 대한 세부 정보 얻기 |
|
| 기준에 따른 문제 검색 |
|
사용자 관련 도구
도구 이름 | 설명 | 매개변수 |
| 사용자 정보 가져오기 |
|
| 사용자 제출 내역 가져오기 |
|
| 사용자 콘테스트 순위를 받으세요 |
|
콘테스트 관련 도구
도구 이름 | 설명 | 매개변수 |
| 경연대회 세부 정보 받기 |
|
사용 가능한 리소스
문제 리소스
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: 사용자 콘테스트 순위
지역 개발
저장소를 복제하고 종속성을 설치합니다.
git clone https://github.com/doggybee/mcp-server-leetcode.git
cd mcp-server-leetcode
npm install개발 모드에서 실행:
npm run dev프로젝트를 빌드하세요:
npm run build특허
MIT
관련 프로젝트
모델 컨텍스트 프로토콜 - MCP 사양 및 문서
데스크톱용 Claude - MCP 지원 AI 어시스턴트
감사의 말
이 프로젝트는 alfa-leetcode-api 에서 영감을 받았습니다.
Available Tools
7 toolsget-contest-detailsD
Inputs: contestSlug (required).
get-daily-challengeD
Inputs: no named parameters.
get-problemD
Inputs: titleSlug (required).
get-user-contest-rankingD
Inputs: username (required).
get-user-profileD
Inputs: username (required).
get-user-submissionsD
Inputs: username (required), limit.
search-problemsD
Inputs: tags, difficulty, limit, skip.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool has a clearly distinct purpose targeting different LeetCode resources: contests, daily challenges, problems, user rankings, profiles, submissions, and problem search. There is no overlap in functionality, making tool selection straightforward for an agent.
All tool names follow a consistent verb_noun pattern using kebab-case (e.g., get-contest-details, search-problems). The naming is uniform throughout with no deviations in style or convention.
With 7 tools, the server is well-scoped for a LeetCode integration, covering key areas like problem access, user data, and contests. Each tool serves a specific, necessary function without bloat.
The tool set provides comprehensive read-only coverage for LeetCode data, including problems, user profiles, contests, and submissions. A minor gap exists in write operations (e.g., submitting solutions or managing account settings), but core retrieval needs are fully met.
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP server for LeadDelta — manage LinkedIn connections and CRM data via AI assistants.
A Model Context Protocol server for Wix AI tools
MCP server that lets your AI assistant build and deploy apps, hosting each one at a live URL.
Related MCP Servers
- AlicenseAqualityBmaintenanceA 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.9625 npm155MIT
- FlicenseAqualityDmaintenanceAn MCP server that provides tools to interact with the LeetCode API, enabling problem fetching, code template generation, and solution execution/submission.71-
- FlicenseNot gradedqualityDmaintenanceAn MCP server that provides structured, AI-powered guidance for LeetCode problems, including approach analysis, hints, complexity breakdowns, and optimization directions without spoiling solutions.13 npm1-
- FlicenseNot gradedqualityDmaintenanceA tutorial and working MCP server that connects to your LeetCode profile, enabling AI assistants to check solved problems and recommend new ones by topic and difficulty.1-