DeepSeek MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@DeepSeek MCP Server Explain quantum computing basics"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
DeepSeek MCP Server
基于 Model Context Protocol (MCP) 的 DeepSeek AI 服务器,通过 Playwright 浏览器自动化与 chat.deepseek.com 交互,提供 6 个 AI 工具,可集成到 Claude Desktop App 或其他 MCP 客户端中使用。
功能特性
6 个 AI 工具
工具名称 | 说明 |
| 通用对话 — 支持三种模式、深度思考、联网搜索 |
| 代码审查 — 分析 Bug、性能问题,给出改进建议 |
| 创意评估 — 评估技术方案的创新性、可行性、研究价值 |
| 概念解释 — 按初级/中级/专家级别解释文本或概念 |
| 文本摘要 — 提取文本要点,支持自定义长度 |
| 调试辅助 — 分析错误信息,提供解决方案 |
三种聊天模式
模式 | 说明 | DeepThink | 联网搜索 | 文件上传 |
| 快速模式(默认) | ✅ | ✅ | ✅ |
| 专家模式 | ✅ | ❌ | ❌ |
| 识图模式 | ✅ | ❌ | ✅ |
核心能力
会话持久化 — 首次手动登录后,登录状态自动保存,重启无需重新登录
DeepThink 深度思考 — 所有模式均支持深度思考推理
Smart Search 联网搜索 — 快速模式下可开启联网搜索获取实时信息
Edge 浏览器 — 使用系统已安装的 Edge,无需额外下载
完整的 TypeScript 类型定义
Related MCP server: DeepSeek MCP Server
安装
前置条件
Node.js >= 18.0.0
Microsoft Edge 浏览器(Windows 自带)
安装步骤
# 克隆仓库
git clone <repository-url>
cd deepseek-mcp
# 安装依赖
npm install
# 构建项目
npm run build配置
在 Claude Desktop App 的配置文件中添加 MCP 服务器:
Windows: %APPDATA%\Claude\claude_desktop_config.json
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
开发模式(使用源码):
{
"mcpServers": {
"deepseek": {
"command": "npx",
"args": ["tsx", "C:/path/to/deepseek-mcp/src/index.ts"]
}
}
}生产模式(使用构建后的代码):
{
"mcpServers": {
"deepseek": {
"command": "node",
"args": ["C:/path/to/deepseek-mcp/dist/index.js"]
}
}
}配置完成后,重启 Claude Desktop App 即可使用。
首次使用
首次调用工具时,会自动弹出 Edge 浏览器窗口
在浏览器中手动登录 DeepSeek(手机号 + 验证码)
登录成功后,会话自动保存到
~/.deepseek-mcp/browser-data/之后重启服务器会自动恢复登录状态,无需再手动登录(无头模式运行)
使用示例
1. 通用对话
{
"name": "deepseek_chat",
"arguments": {
"prompt": "请用 Python 实现一个快速排序算法"
}
}使用深度思考 + 联网搜索:
{
"name": "deepseek_chat",
"arguments": {
"prompt": "2024年诺贝尔物理学奖授予了谁?",
"mode": "quick",
"deepthink": true,
"smartSearch": true
}
}使用专家模式 + 深度思考:
{
"name": "deepseek_chat",
"arguments": {
"prompt": "请详细分析黎曼猜想的意义和当前进展",
"mode": "expert",
"deepthink": true
}
}2. 代码审查
{
"name": "deepseek_code_review",
"arguments": {
"code": "function fibonacci(n) {\n if (n <= 1) return n;\n return fibonacci(n-1) + fibonacci(n-2);\n}",
"language": "javascript",
"deepthink": true
}
}3. 创意评估
{
"name": "deepseek_evaluate_idea",
"arguments": {
"idea": "使用多模态大语言模型进行跨语言代码迁移",
"context": "目标是面向数据科学领域",
"deepthink": true
}
}4. 概念解释
{
"name": "deepseek_explain",
"arguments": {
"text": "Transformer 架构中的自注意力机制",
"level": "beginner"
}
}level 可选值:beginner(初级)、intermediate(中级,默认)、expert(专家)。
5. 文本摘要
{
"name": "deepseek_summarize",
"arguments": {
"text": "(此处填入需要摘要的长文本内容)...",
"max_length": 500
}
}6. 调试辅助
{
"name": "deepseek_debug",
"arguments": {
"error": "TypeError: Cannot read properties of undefined (reading 'map')",
"code": "const items = await fetchItems();\nreturn items.map(item => item.name);",
"context": "fetchItems() 在网络请求失败时返回 undefined",
"deepthink": true
}
}开发
可用脚本
命令 | 说明 |
| 编译 TypeScript 到 |
| 使用 ts-node 启动开发服务器 |
| 运行构建后的生产版本 |
| 运行所有测试 |
| 以 watch 模式运行测试 |
| 运行 TypeScript 类型检查 |
| 检查代码风格 |
项目结构
deepseek-mcp/
├── src/
│ ├── index.ts # MCP 服务器入口
│ ├── browser-manager.ts # Playwright 浏览器管理(会话持久化)
│ ├── types/
│ │ └── index.ts # TypeScript 类型定义
│ └── tools/
│ ├── deepseek-client.ts # 核心浏览器自动化客户端
│ ├── chat.ts # 通用对话工具
│ ├── code-review.ts # 代码审查工具
│ ├── evaluate-idea.ts # 创意评估工具
│ ├── explain.ts # 概念解释工具
│ ├── summarize.ts # 文本摘要工具
│ └── debug.ts # 调试辅助工具
├── dist/ # 编译输出
├── package.json
├── tsconfig.json
└── vitest.config.ts故障排除
问题:浏览器启动失败
解决: 确认系统已安装 Microsoft Edge 浏览器。Windows 10/11 自带 Edge。
问题:登录状态丢失
解决: 删除 ~/.deepseek-mcp/browser-data/ 目录,重新启动服务器并手动登录。
问题:工具调用超时
原因: DeepSeek 响应过慢或网络问题。
解决: 检查网络连接,确认 chat.deepseek.com 可以正常访问。
问题:选择器找不到元素
原因: DeepSeek 更新了前端 UI。
解决: 这是浏览器自动化的固有局限。请更新 deepseek-client.ts 中的选择器常量。
技术栈
技术 | 用途 |
Node.js >= 18 | 运行时环境 |
TypeScript 5.x | 类型安全的开发语言 |
MCP 服务器实现 | |
浏览器自动化 | |
单元测试框架 |
许可证
Available Tools
6 toolsdeepseek_chatA
Send a prompt to DeepSeek and return the AI response. Supports three modes: quick (default, with search+upload), expert (reasoning-focused), vision (image analysis). All modes support DeepThink reasoning.
Inputs: prompt (required), mode, deepthink, smartSearch, +1 more.
deepseek_code_reviewA
Send code to DeepSeek for review and receive analysis of potential bugs, performance issues, and improvement suggestions.
Inputs: code (required), language, deepthink.
deepseek_debugB
Analyse an error message and related code to suggest likely causes and fixes.
Inputs: error (required), code, context, deepthink.
deepseek_evaluate_ideaA
Evaluate a technical idea or research proposal for innovation, feasibility, and potential impact.
Inputs: idea (required), context, deepthink.
deepseek_explainA
Get a clear explanation of a concept, code snippet, or text at a specified difficulty level.
Inputs: text (required), level, deepthink.
deepseek_summarizeA
Summarize long text into key points, with an optional maximum length constraint.
Inputs: text (required), deepthink, max_length.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Most tools have clearly distinct purposes: chat, code review, idea evaluation, explanation, summarization, and debugging. However, deepseek_chat is a general-purpose tool that could theoretically handle explain/summarize/debug tasks, creating mild overlap with the specialized tools.
All tools share the consistent deepseek_ prefix and use lowercase snake_case, making the set feel cohesive. The pattern is mostly verb-based (chat, evaluate, explain, summarize, debug), though deepseek_code_review is a noun phrase rather than a verb-action name.
Six tools is a well-scoped number for an AI assistant server. Each tool covers a distinct high-level capability without unnecessary bloat or obvious redundancy.
The tool surface covers the primary expected capabilities of a DeepSeek assistant: general chat, code review, debugging, explanation, summarization, and idea evaluation. Minor gaps exist (e.g., no dedicated translation or code generation tool), but these are workarounds via deepseek_chat.
Maintenance
Related MCP Connectors
Playwright browser automation — navigate, click, fill forms, extract, screenshot — 17 agent tools.
Approved test intent, reviewed Playwright automation and run evidence, inside your editor.
Build, validate, test-run and publish AIOS workflows from Claude Code, Codex, Cursor or VS Code.
Provides cloud browser automation capabilities using Stagehand and Browserbase, enabling LLMs to i…
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides LLM Agents with AI-powered mentorship for code review, design critique, writing feedback, and brainstorming using the Deepseek API, enabling enhanced output in various development and strategic planning tasks.532Apache 2.0
- AlicenseNot gradedqualityDmaintenanceProvides code generation and completion capabilities using the DeepSeek API, with support for tool chaining and cost optimization.5ISC
- FlicenseNot gradedqualityDmaintenanceProvides browser automation, AI-powered analysis, visual processing, web scraping, automated test generation, and DevTools analysis capabilities. Supports multiple AI providers (OpenAI, Anthropic, Google, Ollama) for intelligent web interaction and data extraction.1-
- AlicenseCqualityDmaintenanceEnables LLMs to perform advanced GitHub code searches with intelligent filtering and content retrieval using Playwright automation, optimized for DeepSeek integration.44MIT