
doggybee/mcp-server-leetcode
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
doggybee/mcp-server-leetcode - кандидат на сервер MCP, импортированный из https://github.com/doggybee/mcp-server-leetcode.
Обзор
doggybee/mcp-server-leetcode - кандидат на сервер MCP, импортированный из https://github.com/doggybee/mcp-server-leetcode.
Обзор (машинный перевод)
Сервер Model Context Protocol (MCP) для LeetCode, который позволяет помощникам AI получать доступ к проблемам LeetCode, информации о пользователях и данным о конкурсах.
Особенности
Быстрый доступ к API LeetCode Поиск проблем, поиск ежедневных задач и проверка профилей пользователей
- Данные и рейтинги конкурса запросов Полная поддержка инструментов и ресурсов MCP Обеспечивает CLI и программируемый API
##Установка
###Установка через Smithery
Установить mcp-серверный код для Claude Desktop автоматически через Smithery:
###Глобальная инсталляция
После установки вы можете запустить его непосредственно из командной строки:
###Местная установка
Использование
Интеграция с Claude for Desktop
Добавьте в файл Claude for Desktop claude_desktop_config.json следующее:
Для местного развития:
Используется как библиотека
Доступные инструменты
Инструменты, связанные с проблемами
Название инструмента | Описание | Параметры |
[скрыто] [скрыто] [скрыто] [скрыто] [скрыто]
get-daily-challenge | Получить ежедневный вызов | Нет
get-problem titleSlug get-problem titleSlug titleSlug titleSlug[[T]]][[T]][[T]][[T]]][[T]][[T]]][[T]][[T]][[T]]][[T]][[T]]][[T]][[T]]][[T]][[T]]][[T]][[T]]][[T]][[T]]][[T]][[T]]][[T]][[T]]][[T]][[T]]][[T]][T]][[T]]][[T]][[T]]][[T]][[T]]][[T]][[T]]][[T]][T]][[T]]][[T]][T]][[T]]][[T]]
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
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"
}
}
}