/ Annuaire / Playground / deepseek-mcp-server
● Communauté DMontgomery40 ⚡ Instantané

deepseek-mcp-server

par 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.

Pourquoi l'utiliser

Fonctionnalités clés

Démo en direct

Aperçu en pratique

deepseek.replay ▶ prêt
0/0

Installer

Choisissez votre client

~/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
    }
  }
}

Ouvrez Claude Desktop → Settings → Developer → Edit Config. Redémarrez après avoir enregistré.

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

Cursor utilise le même schéma mcpServers que Claude Desktop. La config projet l'emporte sur la globale.

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

Cliquez sur l'icône MCP Servers dans la barre latérale Cline, puis "Edit Configuration".

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

Même format que Claude Desktop. Redémarrez Windsurf pour appliquer.

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

Continue utilise un tableau d'objets serveur plutôt qu'une map.

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

Ajoutez dans context_servers. Zed recharge à chaud à la sauvegarde.

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

Une seule ligne. Vérifiez avec claude mcp list. Supprimez avec claude mcp remove.

Cas d'usage

Usages concrets : deepseek-mcp-server

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

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

Quand l'utiliser : You have a step that needs chain-of-thought but not Claude-level quality — save 90% on tokens.

Prérequis
  • DeepSeek API key — platform.deepseek.com — cheap
Déroulement
  1. Route specific subtask
    Use deepseek chat (model deepseek-reasoner) to classify these 100 support tickets into 5 buckets. Return only the classifications.✓ Copié
    → Classifications completed cheaply

Résultat : Same quality for classification/extraction at a fraction of the cost.

Pièges
  • 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

Quand l'utiliser : A task needs 8 tool calls in sequence; going round-trip each time is slow and burns tokens.

Déroulement
  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.✓ Copié
    → Script runs inside exec runtime; returns table

Résultat : Fewer tokens, fewer round-trips for pipeline-style tasks.

Pièges
  • 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
Combiner avec : fetch · firecrawl

Monitor DeepSeek API spend from your agent

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

Quand l'utiliser : You want an agent to halt when spend is low or to alert weekly.

Déroulement
  1. Pull balance
    What's my DeepSeek balance?✓ Copié
    → Current balance
  2. Alert if low
    If balance < $5, post a Slack message #ops-alerts with the number.✓ Copié
    → Conditional alert

Résultat : Never run out of credits mid-pipeline.

Combinaisons

Associez-le à d'autres MCPs pour un effet X10

deepseek + fetch

Scrape then classify with DeepSeek cheaply

Fetch 20 news URLs, then deepseek-classify each by topic (5 buckets).✓ Copié

Outils

Ce que ce MCP expose

OutilEntréesQuand appelerCoût
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

Coût et limites

Coût d'exécution

Quota d'API
Per DeepSeek account
Tokens par appel
DeepSeek is 10-50x cheaper than frontier models for many tasks
Monétaire
DeepSeek V3 ~$0.27/M input, R1 ~$0.55/M input (as of 2026)
Astuce
Use the balance tool to hard-stop agents when credits drop below your threshold.

Sécurité

Permissions, secrets, portée

Stockage des identifiants : DEEPSEEK_API_KEY for local; DEEPSEEK_MCP_AUTH_TOKEN for remote endpoint
Sortie de données : Your prompts go to api.deepseek.com (China-based)
Ne jamais accorder : Wide tool surface to the code-exec mode without reviewing which tools are exposed

Dépannage

Erreurs courantes et correctifs

401 from DeepSeek

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

Vérifier : 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.

Alternatives

deepseek-mcp-server vs autres

AlternativeQuand l'utiliserCompromis
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

Plus

Ressources

📖 Lire le README officiel sur GitHub

🐙 Voir les issues ouvertes

🔍 Parcourir les 400+ serveurs MCP et Skills