DD

dmontgomery40/deepseek-mcp-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

359 stars 59 forks 质量 83 趋势 34MIT

Deepseek 高级语言模型的模型上下文协议服务器

概览

当前 DeepSeek V4 API 的模型上下文协议服务器。 截至2026年4月24日,DeepSeek 的公开 API 参考文档: - POST /chat/completions with deepseek-v4-flash 和 deepseek-v4-pro - POST /beta/completions for V4 Pro FIM 完成 - GET /models - 获取 /user/balance 该服务器仅暴露那些文档化的API表面。它不提供V4显示器、推测性图像/视频/上传工具,或自动模型替换。 - chat_completion:DeepSeek V4 聊天。默认为 deepseek-v4-flash。支持思考:{ “type”: “enabled” |“disabled” },reasoning_effort:“high” |“max”,JSON 输出,函数工具,logprobs,流式传输和对话内存。- 完成:DeepSeek V4 Pro FIM 完成。默认为 deepseeek-v4-pro。- list_models:读取实时的 DeepSeek 型号列表。- get_user_balance:读取账户余额和可用性。- reset_conversation:清除内存对话。- list_conversations:列出内存对话 ID。

概述(AI 翻译)

一个支持 DeepSeek V4.1 Flash 和 V4 Pro API 的 MCP 服务器:文本和可视化聊天, 响应API、FIM补全、文件API生命周期操作、模型发现, 平衡检查和有界内存对话。

1.4.0版本使用稳定的MCP TypeScript SDK v2,并支持以下两者 2026-07-28 协议和无状态遗留客户端。

什么是当前的

2026年10月19日对照官方API文档:

  • 典范快速模型为deepseek-flash,现由 DeepSeek-V4.1-Flash-1017。10月17日的型号更新并未更改其API。 调用方法或模型-令牌定价。
  • [deepseek-v4-flash 和 deepseek-v4-flash-vision-exp 是临时别名 对于deepseek-flash。
  • deepseek-v4-pro 继续为V4 Pro 0813服务。DeepSeek已将其 9月宣布重新路由计划;Pro 版仍保持不变计费。
  • V4.1 Flash 通过聊天完成和回复接受视觉输入。 V4 Pro 支持文本输入。使用 list_models 查看你账户的在线可用性。
  • 文件 API 支持上传、列出、检索和删除可重复使用的图片 输入。
  • DeepSeek 文档包含一个 100 万令牌上下文窗口和最多 384K 个输出令牌

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

DeepSeek MCP Server

An MCP server for DeepSeek V4.1 Flash and V4 Pro APIs: text and visual chat, the Responses API, FIM completion, Files API lifecycle operations, model discovery, balance checks, and bounded in-memory conversations.

Version 1.4.0 uses the stable MCP TypeScript SDK v2 and serves both the 2026-07-28 protocol and stateless legacy clients.

What’s current

Checked against the official API docs on October 19, 2026:

  • The canonical fast model is deepseek-flash, now served by DeepSeek-V4.1-Flash-1017. The October 17 model update did not change its API calling method or model-token pricing.
  • deepseek-v4-flash and deepseek-v4-flash-vision-exp are temporary aliases for deepseek-flash.
  • deepseek-v4-pro continues serving V4 Pro 0813. DeepSeek reversed its announced September rerouting plan; Pro remains available with unchanged billing.
  • V4.1 Flash accepts visual input through Chat Completions and Responses. V4 Pro accepts text input. Use list_models to check your account’s live availability.
  • The Files API supports upload, list, retrieve, and delete for reusable image inputs.
  • DeepSeek documents a 1M-token context window and up to 384K output tokens for deepseek-flash.

“Multimodal” here means image understanding. This server does not generate images, video, or audio.

Tools

The server exposes eleven tools:

  • chat_completion: text or visual Chat Completions, thinking controls, function tools, JSON output, streaming aggregation, and optional conversation_id memory.
  • create_response: stateless Responses API calls with text/images, reasoning
在 GitHub 查看完整 README

安装

npx -y deepseek-mcp-server@1
新手?先看 mcpskill.org 教程 →

配置

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