DeepSeek MCP Server

v0.3.1
io.github.DMontgomery40/deepseek Checked 10 hours ago Published 9 months ago

Official DeepSeek MCP server for chat, completion, model listing, and balance endpoints.

Values you need

VariableWhat it is
DEEPSEEK_API_KEYrequired secret DeepSeek API key used for upstream DeepSeek requests

npm (npx) verified

Requires Node.js 18+

Run in a terminal
claude mcp add deepseek -e 'DEEPSEEK_API_KEY=<DEEPSEEK_API_KEY>' -- npx -y deepseek-mcp-server@0.3.1
Add to claude_desktop_config.json
{
  "mcpServers": {
    "deepseek": {
      "args": [
        "-y",
        "deepseek-mcp-server@0.3.1"
      ],
      "command": "npx",
      "env": {
        "DEEPSEEK_API_KEY": "<DEEPSEEK_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "deepseek": {
      "args": [
        "-y",
        "deepseek-mcp-server@0.3.1"
      ],
      "command": "npx",
      "env": {
        "DEEPSEEK_API_KEY": "<DEEPSEEK_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "DEEPSEEK_API_KEY",
      "id": "deepseek-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "deepseek": {
      "args": [
        "-y",
        "deepseek-mcp-server@0.3.1"
      ],
      "command": "npx",
      "env": {
        "DEEPSEEK_API_KEY": "${input:deepseek-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.deepseek]
command = "npx"
args = ["-y", "deepseek-mcp-server@0.3.1"]
env = { "DEEPSEEK_API_KEY" = "<DEEPSEEK_API_KEY>" }

For AI agents

  1. Ask the user for: DEEPSEEK_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: chat_completion, completion, list_models, get_user_balance, reset_conversation, list_conversations.
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json