
doggybee/mcp-server-leetcode
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
doggybee/mcp-server-leetcode는 MCP 서버 후보가 https://github.com/doggybee/mcp-server-leetcode.에서 수입되었습니다
개요
doggybee/mcp-server-leetcode는 MCP 서버 후보가 https://github.com/doggybee/mcp-server-leetcode.에서 수입되었습니다
개요(AI 번역)
LeetCode에 대한 모델 Context Protocol (MCP) 서버는 LeetCode 문제, 사용자 정보 및 콘테스트 데이터에 액세스 할 수있는 AI 조수를 가능하게합니다.
특징
- LeetCode API에 빠른 액세스
- Array Search 문제, 일상적인 도전을 회복, 사용자 프로필 확인
- ö Query 콘테스트 데이터 및 순위
- MCP 도구 및 리소스에 대한 Full 전체 지원
- CLI 및 프로그래밍 가능한 API 모두 제공
설치
Smithery를 통해 설치
Smithery를 통해 Claude Desktop용 mcp-server-leetcode를 자동으로 설치하십시오.
글로벌 설치
설치되면 명령줄에서 직접 실행할 수 있습니다.
# 현지 설치
사용법
데스크톱 용 Claude와 통합
Desktop claude_desktop_config.json 파일에 대한 Claude에 다음을 추가하십시오:
현지 개발:
도서관 사용
사용 가능한 도구
문제 관련 도구
| 도구 이름 | 묘사 | 모수 |
|---|---|---|
get-daily-challenge |
일상의 도전 | 없음 |
get-problem |
특정문제에 대한 상세정보 | [T3] (string) |
이 페이지는 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
Problem-related 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) |
User-related Tools
| 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) |
설치
npx -y @smithery/cli install @doggybee/mcp-server-leetcode --client claude설정
{
"mcpServers": {
"leetcode": {
"command": "mcp-server-leetcode"
}
}
}