deepseek-web-search
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-web-search search the web for recent DeepSeek API search documentation updates after 2025-01"
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-web-search-mcp
把 DeepSeek 的 Web Search 和 Fetch 接口暴露给 AI 客户端的本地 stdio MCP server。原样返回 DeepSeek 的 JSON,不过滤、不重排、不截断。
安装
要求 Node.js >= 22.12。
npm install
npm run buildRelated MCP server: DeepSeek Search MCP
配置
server 只从环境变量读 Key,不读 .env。Key 已在 shell 中 export 时,一条命令完成注册:
claude mcp add-json --scope user deepseek-web-search \
'{"type":"stdio","command":"/home/redrocker/.nvm/versions/node/v22.23.2/bin/node","args":["/home/redrocker/File/deepseek-web-search-mcp/dist/index.js"],"env":{"DEEPSEEK_API_KEY":"${DEEPSEEK_API_KEY}"},"timeout":180000}'也可以把 ${DEEPSEEK_API_KEY} 换成实际 Key。
--scope:user全局可用,local仅当前项目(默认),project写入仓库.mcp.json并会提交 Key。timeout:单次工具调用上限,fetch 最坏 180 秒,保留该字段。command:node 绝对路径,避免取到 PATH 里系统自带的旧版本。
其他客户端用等价的 JSON 配置(timeout 字段可以删):
{
"mcpServers": {
"deepseek-web-search": {
"type": "stdio",
"command": "/home/redrocker/.nvm/versions/node/v22.23.2/bin/node",
"args": ["/home/redrocker/File/deepseek-web-search-mcp/dist/index.js"],
"env": { "DEEPSEEK_API_KEY": "sk-..." },
"timeout": 180000
}
}
}工具名:mcp__deepseek-web-search__search、mcp__deepseek-web-search__fetch。改了 src/ 要重新 npm run build 并重启会话。
工具
search
参数 | 类型 | 默认 | 说明 |
| string | 必填 | 1~128 字符,支持 |
| integer | 10 | 1~50 |
| boolean | false | 返回网页正文,可能非常大 |
| string | — | 用户原始问题 |
| string[] | — | 限定 / 排除站点,多站点用 |
| string[] | — | 如 |
| string | — |
|
| string | — | 精确匹配短语 |
| string[] | — | 排除包含这些词的网页 |
结构化参数追加到 query 后面,与 query 里手写的操作符叠加,不去重。
fetch
参数 | 类型 | 说明 |
| string | 绝对 HTTP/HTTPS URL,≤8192 字符,不能带凭据 |
返回与错误
HTTP 2xx:一个 text block,DeepSeek 响应体原文。
HTTP 非 2xx:两个 text block(
HTTP <status>+ 原文),isError: true。配置、参数、网络错误:一个 text block 说明原因,
isError: true。不截断:
need_content=true或抓取长页面时结果可能很大。
环境变量
变量 | 必填 | 说明 |
| 是 | 缺失时 server 仍能启动,调用工具返回配置错误 |
| 否 | 默认 |
超时与重试
单次超时:search 30 秒,fetch 60 秒;总上限 90 / 180 秒。
仅 408、429、5xx 重试,最多 2 次,指数退避 + 抖动,尊重
Retry-After(上限 30 秒)。其他 4xx、网络错误、超时不重试。
限速 search 100 QPS、fetch 25 QPS;5 元 / 1000 次成功请求。
开发
npm run typecheck
npm test
npm run dev
DEEPSEEK_INTEGRATION=1 DEEPSEEK_API_KEY=... npm run test:integration集成测试通过 stdio 启动 dist/index.js,实际发起 1 次 search + 1 次 fetch;未设置 DEEPSEEK_INTEGRATION=1 时跳过。
安全
Key 只从环境变量读取,不写入日志或工具输出;stdio 下 stdout 只承载 MCP 协议,日志走 stderr;除非设置 DEEPSEEK_BASE_URL,只连接 api.deepseek.com。
License
MIT
Available Tools
2 toolsfetchFetch URL as MarkdownARead-only
Fetch a URL through DeepSeek and return the raw JSON response exactly as received.
The response is a JSON object with title (string) and content (Markdown). The content is not truncated by this server.
The URL must be an absolute HTTP/HTTPS URL of at most 8192 characters and must not contain credentials.
Billing: 5 CNY per 1,000 successful fetches. Rate limit: 25 QPS.
Inputs: url (required).
searchDeepSeek Web SearchARead-only
Search the web with DeepSeek's search API and return the raw JSON response exactly as received.
The response is a JSON object with a results array; fields include rerank_score, title, url, snippet, summary, content, site_name, site_icon, date, and authority.
Set need_content=true to include full page content (can be very large). Prefer the fetch tool for a specific URL.
query supports DeepSeek search syntax: site:github.com, -site:example.com, -term, "exact phrase", lang:zh,en, after:2025-01-01, before:2026. Structured filters are appended to query. Results are not filtered or truncated by this server. Billing: 5 CNY per 1,000 successful requests that produce results. Rate limit: 100 QPS.
Inputs: query (required), lang, site, after, +7 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
search and fetch have clearly distinct purposes: discovery via query vs. retrieval of a specific known URL. The search description even explicitly redirects agents to fetch for a specific URL, eliminating any overlap.
Both tools use a single lowercase verb with no mixed conventions (no camelCase, no noun-only names). The pattern is fully predictable across the two-tool surface.
Two tools is on the thin side, but for a narrowly scoped search-and-retrieve proxy it is exactly the right surface — no tool feels extraneous and none is missing. Slightly below 5 only because the count leaves no room for filter/parameter discovery aids.
Search plus fetch covers the full web-retrieval lifecycle with no dead ends, and both tools return raw upstream JSON. Minor gap: structured filters are mentioned as being 'appended to query' without explicit parameters, so agents must guess the syntax.
Maintenance
Related MCP Connectors
Web search API and MCP server for developers building AI agents.
Docs: https://docs.keenable.ai/mcp-server Keenable is a free, remote MCP server that gives agents access to the web index. Search the web with ranked results and date/site filters, then fetch any indexed page as clean markdown. Works out of the box with no account or API key.
Free web search for AI agents. No API key required. Hosted MCP in active development.
Unified 15-tool SEO, SERP, clean Markdown & GEO (LLM citation Share-of-Voice) MCP server.
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server that provides web search powered by DeepSeek's native search API, returning AI-generated answers with source links. Integrates with MCP-compatible clients like Claude Code and Cursor.1MIT
- AlicenseAqualityCmaintenanceExposes DeepSeek's Search and Fetch REST APIs as two read-only MCP tools, letting any MCP-capable agent run ranked web searches and retrieve individual pages as truncated Markdown. Works with whichever model the host runs, over stdio or Streamable HTTP.2MIT
- AlicenseAqualityCmaintenanceExposes DeepSeek's web search and page-fetch tools to any MCP client, letting any LLM run searches with quality signals like rerank score and source authority, plus advanced query syntax. It also retrieves single pages as Markdown, with built-in throttling, retries, and size-conscious summaries.2101 npm2MIT
- AlicenseAqualityCmaintenanceEnables MCP clients such as Claude Code to run real-time web searches and fetch public web pages as Markdown through DeepSeek's official search and fetch APIs, with result pagination and response caching. Runs over stdio and only requires a DeepSeek API key, needing no browser, Docker, or database.2140 npm1MIT