MCP.so
Sign In

DeepSeek MCP Server

@DMontgomery40

Basic information

Category

Other

Last updated

License

MIT

Transports

stdio

Author

DMontgomery40

About DeepSeek MCP Server

Model Context Protocol server for DeepSeek's advanced language models

#mcp#r1#deepseek-chat#deepseek-api#model-context-protocol#deepseek-v3#deepseek-r1

DeepSeek MCP Server config

Add this server to your MCP-compatible client using the configuration below.

{
  "mcpServers": {
    "deepseek-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "deepseek-mcp-server"
      ],
      "env": {
        "DEEPSEEK_API_KEY": "REPLACE_WITH_DEEPSEEK_KEY"
      }
    }
  }
}

DeepSeek MCP Server tools

11

Primary DeepSeek V4.1 chat tool for text, images, and multi-turn generation. Defaults to `deepseek-flash`. Provide either `message` (a text string or text/image/file content parts) or `messages` (full chat history); if both are provided, `messages` is used. Images may use an HTTP(S) URL, supported base64 data URL, or Files API `file_id`. Thinking is enabled by default; use `reasoning_effort` for current effort controls. Use `conversation_id` for explicit in-memory context. Set `include_raw_response=true` only for provider-payload debugging.

DeepSeek FIM completion tool for prompt/suffix fill-in-the-middle workflows. Defaults to `deepseek-flash` in non-thinking mode. Use this when you need raw completion text instead of chat message formatting. Set `include_raw_response=true` only when you need the full provider payload for debugging.

Create a stateless DeepSeek V4.1 response using the OpenAI-compatible Responses API. Defaults to `deepseek-flash` and accepts text, image URLs, base64 images, and Files API `file_id` inputs. Use `reasoning.effort` for thinking control, `tools` for function or server-side web-search tools, and `stream=true` for semantic SSE aggregation. Send full input history for multi-turn work. Set `include_raw_response=true` only for provider-payload debugging.

List available DeepSeek models for model selection and validation. This tool takes no parameters. Use it before passing an explicit model ID to generation tools.

Return the current DeepSeek account balance and availability status. This tool takes no parameters and is read-only. Use it for account health checks when diagnosing provider-side failures.

Upload a JPEG, PNG, GIF, or WebP image to DeepSeek and return a reusable `file_id`. Supply base64 image data directly; server-local file paths are intentionally not accepted. Optional expiry is 3,600 to 2,592,000 seconds.

List images uploaded to the DeepSeek Files API. Supports cursor pagination, creation-time order, and the `user_data` purpose filter.

Retrieve metadata for one DeepSeek Files API image by `file_id`.

Delete one uploaded DeepSeek image by `file_id`. This permanently removes that provider-side file reference.

Delete stored in-memory chat history for a `conversation_id`. Use this when you want to keep the same ID but start a fresh thread. This only affects server-side memory in the current MCP process.

List all conversation IDs currently stored in this MCP process memory. This tool takes no parameters and does not call the DeepSeek API. Useful for debugging conversation persistence behavior.

Overview

What is DeepSeek MCP Server?

A Model Context Protocol server that exposes DeepSeek’s V4 API (chat completions, FIM completions, model listing, account balance) as MCP tools. Designed for developers using MCP-compatible hosts like Claude Code, Cursor, or Codex CLI.

How to use DeepSeek MCP Server?

Run locally via npx deepseek-mcp-server or Docker, setting the DEEPSEEK_API_KEY environment variable. Alternatively, connect to the hosted remote at https://deepseek-mcp.ragweld.com/mcp using a bearer token. Transport is stdio by default; HTTP can be configured via environment variables.

Key features of DeepSeek MCP Server

  • Chat completions with deepseek-v4-flash and deepseek-v4-pro
  • FIM (fill-in‑the‑middle) completion with deepseek-v4-pro
  • List models and check account balance
  • In‑memory conversation history with reset and list tools
  • Supports streaming, thinking, reasoning effort, JSON output, and function tools
  • Official MCP Registry listing and OCI container image

Use cases of DeepSeek MCP Server

  • Integrate DeepSeek V4 chat into a Claude Code or Cursor workflow
  • Automate FIM completions for code generation within MCP agents
  • Monitor account usage and available models programmatically
  • Build custom AI tools that rely on DeepSeek’s latest API

Frequently asked questions

1

What tools does DeepSeek MCP Server expose?

It provides `chat_completion`, `completion`, `list_models`, `get_user_balance`, `reset_conversation`, and `list_conversations`. Only documented DeepSeek V4 API endpoints are supported.

2

How do I authenticate when using the hosted remote?

Set the environment variable `DEEPSEEK_MCP_AUTH_TOKEN` and pass it as a bearer token in the `Authorization` header. For local usage, set `DEEPSEEK_API_KEY`.

3

What runtime and environment variables are required?

Requires Node.js (to run via npx) and the `DEEPSEEK_API_KEY` environment variable. Optional variables include `DEEPSEEK_BASE_URL`, `DEEPSEEK_REQUEST_TIMEOUT_MS`, `MCP_TRANSPORT`, and `CONVERSATION_MAX_MESSAGES`.

4

Where is conversation data stored?

Conversation history is held in memory on the server. Use `reset_conversation` or `list_conversations` to manage it.

5

Does the server support image, video, or upload tools?

No. The server explicitly states it does not ship speculative image, video, or upload tools, nor automatic model substitution. Only documented chat, FIM, model listing, and balance endpoints are exposed.

Comments

More Other MCP servers