mcp-server-leetcode

by doggybee
Verified

Integrations

  • Provides access to LeetCode problems, daily challenges, user profiles, submission history, contest data, and rankings through the LeetCode API.

MCP 서버 LeetCode

LeetCode의 MCP(Model Context Protocol) 서버는 AI 어시스턴트가 LeetCode 문제, 사용자 정보 및 경연 대회 데이터에 액세스할 수 있도록 해줍니다.

특징

  • 🚀 LeetCode API에 빠르게 액세스
  • 🔍 문제 검색, 일일 챌린지 검색, 사용자 프로필 확인
  • 🏆 콘테스트 데이터 및 순위 조회
  • 🧩 MCP 도구 및 리소스에 대한 전체 지원
  • 📦 CLI와 프로그래밍 가능한 API를 모두 제공합니다

설치

글로벌 설치

지엑스피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' });

사용 가능한 도구

문제 관련 도구

도구 이름설명매개변수
get-daily-challenge매일의 도전에 참여하세요없음
get-problem특정 문제에 대한 세부 정보 얻기titleSlug (문자열)
search-problems기준에 따른 문제 검색tags (선택 사항), difficulty (선택 사항), limit (기본값 20), skip (기본값 0)

사용자 관련 도구

도구 이름설명매개변수
get-user-profile사용자 정보 가져오기username (문자열)
get-user-submissions사용자 제출 내역 가져오기username (문자열), limit (선택 사항, 기본값 20)
get-user-contest-ranking사용자 콘테스트 순위를 받으세요username (문자열)

콘테스트 관련 도구

도구 이름설명매개변수
get-contest-details경연대회 세부 정보 받기contestSlug (문자열)

사용 가능한 리소스

문제 리소스

  • 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

관련 프로젝트

감사의 말

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

LeetCode의 MCP(Model Context Protocol) 서버는 AI 어시스턴트가 LeetCode 문제, 사용자 정보 및 경연 대회 데이터에 액세스할 수 있도록 해줍니다.

  1. Features
    1. Installation
      1. Global Installation
      2. Local Installation
    2. Usage
      1. Integration with Claude for Desktop
      2. Use as a Library
    3. Available Tools
      1. Problem-related Tools
      2. User-related Tools
      3. Contest-related Tools
    4. Available Resources
      1. Problem Resources
      2. User Resources
    5. Local Development
      1. License
        1. Related Projects
          1. Acknowledgements
            ID: hj5pz4f2go