DeepSeek Web Search

io.github.Matthewyin由 GitHub 账号 Matthewyin 发布v1.0.1更新于 Oct 26, 2026

MCP server for DeepSeek web Search & Fetch: scored web search + page-to-Markdown fetch

概览

AI 生成的概览

本地 MCP 服务器,为助手提供基于 DeepSeek 的网页搜索(带相关度与权威度评分)以及网页正文转 Markdown 的抓取能力。

可以做什么
  • 用 DeepSeek 搜索引擎做网页搜索,支持 site、排除、精确短语、语言和日期等语法,返回带相关度与权威度评分的排序结果。
  • 抓取单个网页,把正文转换为 Markdown 返回。
  • 可选择在搜索结果中附带每条结果的页面正文,或只取摘要以控制返回体积。
适用场景
适合助手需要获取最新网络信息、并希望判断来源质量时使用,也适合在搜索后完整阅读某个具体页面。可与任意 MCP 客户端和任意底层模型配合,因为结果以普通工具输出返回。
运行要求
以 stdio 方式在本机运行,通常通过 npx 启动 npm 包 mcp-deepseek-search(需要 Node.js)。需要 DEEPSEEK_API_KEY 环境变量提供 DeepSeek API 密钥,并需要访问 DeepSeek 及被抓取网页的网络连接。
安装前请注意
DeepSeek API 密钥是可计费凭证:网页工具调用会计入 DeepSeek 账户费用(README 说明按每千次成功调用计费),HTTP 402 表示余额不足。搜索查询与被抓取的网址会发送给 DeepSeek 及目标网站。定位参数会传入用户 IP,应仅在获得同意时使用。这是非官方社区封装,与 DeepSeek 无隶属关系。

安装

在 SourceWeft 中

  1. 打开 控制台中的 DeepSeek Web Search,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

mcp-deepseek-search

[npm version] [License: MIT] [MCP Registry]

An Model Context Protocol server that exposes DeepSeek's web Search and Fetch tools to any MCP client — Claude Desktop, Claude Code, Cursor, Cline, ZCode, and more.

Works with any LLM: the search runs on DeepSeek's own search engine, but the results are returned to your existing model as ordinary tool output.

Features

  • deepseek_search — web search backed by DeepSeek's search engine, with two quality signals per result:
    • rerank_score (0–3): relevance; ≥ 1.5 = highly relevant
    • authority (0–4, -1 unknown): source authority; ≥ 3 = highly authoritative
  • deepseek_fetch — fetch a single page and get its main content as Markdown
  • Powerful query syntax: site:, -site:, -term, "exact phrase", -"phrase", lang:zh,en, after:YYYY-MM-DD, before:YYYY-MM-DD
  • Built-in throttling (stays under the 5 QPS account limit) and automatic retry on 408/429/5xx
  • Response-size friendly: summaries by default, full page text only on request

Setup

  1. Get an API key at platform.deepseek.com (web tools are billed at ¥5 per 1,000 successful calls, charged to your DeepSeek account — failed calls and empty results are not billed).
  2. Add the server to your MCP client config:

Claude Desktop / Cursor / Cline / most clients

json
{  "mcpServers": {    "deepseek-web": {      "command": "npx",      "args": ["-y", "mcp-deepseek-search"],      "env": {        "DEEPSEEK_API_KEY": "sk-your-key-here"      }    }  }}

ZCode

Add the same mcpServers block to your ZCode MCP settings (Settings → MCP → Add server).

From source

bash
git clone https://github.com/Matthewyin/deepseek-mcpcd deepseek-mcp && npm install && npm run buildnode dist/index.js   # stdio MCP server

Tools

deepseek_search

ParameterTypeRequiredDescription
querystringyes1–128 chars; supports the search syntax above
countintegerno1–50 results, default 10 (does not affect billing)
ori_questionstringnoThe user's original question — improves intent matching when the query was rewritten
localizationstringnoUser IP to localize results (pass only with consent)
need_contentbooleannoInclude full page text per result (each truncated at 8,000 chars). Default false

Each result includes title, url, snippet (short, for display), summary (long, for feeding to a model), rerank_score, authority, site_name, date, and optionally content.

deepseek_fetch

ParameterTypeRequiredDescription
urlstringyesPlain http(s) URL, max 8,192 chars, no embedded credentials

Returns title + Markdown content (truncated at 30,000 chars).

Example

Ask your agent: "用 deepseek_search 搜一下最近一周关于 MCP 的大新闻,挑权威来源,再用 deepseek_fetch 读全文总结" — or in English: "Search for recent DeepSeek news, keep only results with authority ≥ 3, fetch the top one and summarize."

Notes & limits

  • Rate limit is 5 QPS per DeepSeek account (shared across all your API keys); the server throttles automatically.
  • HTTP 402 means your DeepSeek balance ran out; 401 means the key is invalid.
  • Page content depends on the target site's availability and access policy.
  • This is an unofficial community wrapper; not affiliated with DeepSeek.

Development

bash
npm installnpm run buildDEEPSEEK_API_KEY=sk-... npm test   # end-to-end test against the real API

Releases are automated via GitHub Actions: pushing a v* tag publishes to npm and the official MCP Registry.

License

MIT

来源:README.md,提交 226c971

工具

2

deepseek_fetch

DeepSeek Web Fetch

Fetch a single web page and return its main content converted to Markdown (truncated at 30000 chars). Use after deepseek_search to read a specific result URL in full. Plain http/https URLs only; result availability depends on the target site's access policy.

输入参数url必填

版本历史

1
  1. v1.0.1最新Oct 25, 2026

评分

已满足适用检查项的 90%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分
  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分