/ Каталог / Песочница / deepseek-mcp-server
● Сообщество DMontgomery40 ⚡ Сразу

deepseek-mcp-server

автор DMontgomery40 · DMontgomery40/deepseek-mcp-server

Delegate specific tasks to DeepSeek models from inside Claude — cheaper reasoning via R1, or code execution via DeepSeek's code-exec mode.

deepseek-mcp-server exposes DeepSeek's chat/completions/models/balance endpoints as MCP tools. Supports a novel code-execution mode where DeepSeek writes a short program that calls tools directly in a runtime, reducing back-and-forth latency and context pressure.

Зачем использовать

Ключевые функции

Живое демо

Как выглядит на практике

deepseek.replay ▶ готово
0/0

Установка

Выберите клиент

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "deepseek": {
      "command": "npx",
      "args": [
        "-y",
        "deepseek-mcp-server"
      ],
      "_inferred": true
    }
  }
}

Откройте Claude Desktop → Settings → Developer → Edit Config. Перезапустите после сохранения.

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "deepseek": {
      "command": "npx",
      "args": [
        "-y",
        "deepseek-mcp-server"
      ],
      "_inferred": true
    }
  }
}

Cursor использует ту же схему mcpServers, что и Claude Desktop. Конфиг проекта приоритетнее глобального.

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "deepseek": {
      "command": "npx",
      "args": [
        "-y",
        "deepseek-mcp-server"
      ],
      "_inferred": true
    }
  }
}

Щёлкните значок MCP Servers на боковой панели Cline, затем "Edit Configuration".

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "deepseek": {
      "command": "npx",
      "args": [
        "-y",
        "deepseek-mcp-server"
      ],
      "_inferred": true
    }
  }
}

Тот же формат, что и Claude Desktop. Перезапустите Windsurf для применения.

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "deepseek",
      "command": "npx",
      "args": [
        "-y",
        "deepseek-mcp-server"
      ]
    }
  ]
}

Continue использует массив объектов серверов, а не map.

~/.config/zed/settings.json
{
  "context_servers": {
    "deepseek": {
      "command": {
        "path": "npx",
        "args": [
          "-y",
          "deepseek-mcp-server"
        ]
      }
    }
  }
}

Добавьте в context_servers. Zed перезагружается автоматически.

claude mcp add deepseek -- npx -y deepseek-mcp-server

Однострочная команда. Проверить: claude mcp list. Удалить: claude mcp remove.

Сценарии использования

Реальные сценарии: deepseek-mcp-server

Delegate cheap-but-long reasoning to DeepSeek from inside Claude

👤 Cost-conscious devs building agent flows ⏱ ~10 min intermediate

Когда использовать: You have a step that needs chain-of-thought but not Claude-level quality — save 90% on tokens.

Предварительные требования
  • DeepSeek API key — platform.deepseek.com — cheap
Поток
  1. Route specific subtask
    Use deepseek chat (model deepseek-reasoner) to classify these 100 support tickets into 5 buckets. Return only the classifications.✓ Скопировано
    → Classifications completed cheaply

Итог: Same quality for classification/extraction at a fraction of the cost.

Подводные камни
  • Quality gap on nuanced writing tasks — Profile first — DeepSeek shines on structured tasks, trails on creative/long-form

Let DeepSeek write a short script to call multiple tools in one go

👤 Agent builders tired of 10-round tool call loops ⏱ ~20 min advanced

Когда использовать: A task needs 8 tool calls in sequence; going round-trip each time is slow and burns tokens.

Поток
  1. Enable code-exec mode
    Using deepseek code-exec mode: fetch 5 URLs with fetch MCP, summarize each, then combine into a table. One shot.✓ Скопировано
    → Script runs inside exec runtime; returns table

Итог: Fewer tokens, fewer round-trips for pipeline-style tasks.

Подводные камни
  • Script has bugs in the execution runtime — Fall back to per-tool calls when debugging
  • Security — exec runtime runs LLM-authored code — Keep tool access narrow; don't grant filesystem/shell unless essential
Сочетать с: fetch · firecrawl

Monitor DeepSeek API spend from your agent

👤 Ops people running DeepSeek-backed agents ⏱ ~5 min beginner

Когда использовать: You want an agent to halt when spend is low or to alert weekly.

Поток
  1. Pull balance
    What's my DeepSeek balance?✓ Скопировано
    → Current balance
  2. Alert if low
    If balance < $5, post a Slack message #ops-alerts with the number.✓ Скопировано
    → Conditional alert

Итог: Never run out of credits mid-pipeline.

Комбинации

Сочетайте с другими MCP — эффект x10

deepseek + fetch

Scrape then classify with DeepSeek cheaply

Fetch 20 news URLs, then deepseek-classify each by topic (5 buckets).✓ Скопировано

Инструменты

Что предоставляет этот MCP

ИнструментВходные данныеКогда вызыватьСтоимость
chat messages: Msg[], model?: str, stream?: bool Delegate a reasoning or classification task DeepSeek tokens
completions prompt, model?, max_tokens? Non-chat completion calls DeepSeek tokens
models List available DeepSeek models free
balance Check spend / alert on low credit free

Стоимость и лимиты

Во что обходится

Квота API
Per DeepSeek account
Токенов на вызов
DeepSeek is 10-50x cheaper than frontier models for many tasks
Деньги
DeepSeek V3 ~$0.27/M input, R1 ~$0.55/M input (as of 2026)
Совет
Use the balance tool to hard-stop agents when credits drop below your threshold.

Безопасность

Права, секреты, радиус поражения

Хранение учётных данных: DEEPSEEK_API_KEY for local; DEEPSEEK_MCP_AUTH_TOKEN for remote endpoint
Исходящий трафик: Your prompts go to api.deepseek.com (China-based)
Никогда не давайте: Wide tool surface to the code-exec mode without reviewing which tools are exposed

Устранение неполадок

Частые ошибки и исправления

401 from DeepSeek

Check API key. Also verify account hasn't been suspended.

Проверить: curl -H 'Authorization: Bearer $KEY' https://api.deepseek.com/v1/models
Rate limit

DeepSeek has tight per-minute limits on new accounts. Add retry + backoff.

Code-exec mode returns 'tool not available'

Code-exec sees only the tool set you exposed. Add the needed tool to its allowlist.

Альтернативы

deepseek-mcp-server в сравнении

АльтернативаКогда использоватьКомпромисс
OpenAI / Anthropic via direct APIYou want frontier quality and are not cost-bound5-50x the cost
Groq MCPYou want ultra-low latency on open modelsDifferent model lineup; no code-exec mode

Ещё

Ресурсы

📖 Читать официальный README на GitHub

🐙 Открытые задачи

🔍 Все 400+ MCP-серверов и Skills