mcp-deepseek-search
This MCP server lets your existing LLM perform DeepSeek-powered web search and fetch web pages as ordinary tool output.
deepseek_search: Search the web with advanced query syntax (site:, exclusions, phrases,lang:,after:/before:), optional result count and localization, and optional full page content. Results include title, URL, snippet, summary,rerank_score,authority, site name, date, and optional content.deepseek_fetch: Fetch a single plainhttp(s)URL and return its title plus main content converted to Markdown, truncated at 30,000 characters.Both tools are read-only and open-world, suitable for research, source checking, and summarizing web pages.
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., "@mcp-deepseek-search search for the latest MCP news this week and summarize the most authoritative results"
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.
mcp-deepseek-search
An MCP server for using DeepSeek's Search, Fetch, OCR, ASR and TTS tools in Claude Code, Codex and ZCode.
Works with any LLM: the tools run on DeepSeek's APIs, 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 relevantauthority(0–4,-1unknown): source authority; ≥ 3 = highly authoritative
deepseek_fetch— fetch a single page and get its main content as Markdowndeepseek_ocr— extract text from PDF / Word / PPT / images (incl. scanned pages), per pagedeepseek_asr— transcribe 16-bit PCM WAV or Ogg Opus audio to textdeepseek_tts— synthesize speech (stellafemale /tidemale) to a local wav/pcm filePowerful query syntax:
site:,-site:,-term,"exact phrase",-"phrase",lang:zh,en,after:YYYY-MM-DD,before:YYYY-MM-DDIndependent throttling for Search and Fetch, with automatic retry on 408/429 and selected 5xx errors
Response-size friendly: summaries by default, full page text only on request
Related MCP server: DeepSeek Search MCP Server
Setup
Get an API key at platform.deepseek.com. Web tools cost ¥5 per 1,000 successful calls. Failed calls and empty results are free.
Claude Code and ZCode
For Claude Code, add this block to your project's .mcp.json and replace the placeholder with ${DEEPSEEK_API_KEY} to read the key from your environment. In ZCode, open Settings → MCP → Add server and replace the placeholder with your key.
{
"mcpServers": {
"deepseek-web": {
"command": "npx",
"args": ["-y", "mcp-deepseek-search"],
"env": {
"DEEPSEEK_API_KEY": "sk-your-key-here"
}
}
}
}Codex
Add this block to ~/.codex/config.toml and replace the placeholder with your key.
[mcp_servers.deepseek-web]
command = "npx"
args = ["-y", "mcp-deepseek-search"]
[mcp_servers.deepseek-web.env]
DEEPSEEK_API_KEY = "sk-your-key-here"From source
git clone https://github.com/Matthewyin/deepseek-mcp
cd deepseek-mcp && npm install && npm run build
node dist/index.js # stdio MCP serverTools
deepseek_search
Parameter | Type | Required | Description |
| string | yes | 1–128 Unicode characters, with at least one non-whitespace character |
| integer | no | 1–50 results, default 10 (does not affect billing) |
| string or null | no | The user's original question, 1–128 Unicode characters. Omit it or pass |
| string | no | User IP to localize results (pass only with consent) |
| boolean | no | Include full page text per result (each truncated at 8,000 chars). Default |
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
Parameter | Type | Required | Description |
| string | yes | Plain |
Returns title + Markdown content (truncated at 30,000 chars).
deepseek_ocr
Parameter | Type | Required | Description |
| string | yes | Local path to a PDF, Word, PowerPoint or image file |
| string | no |
|
Returns per-page text (each page truncated at 8,000 chars) with page_count and finish_reason per page. DeepSeek recognition errors are returned as tool errors, including errors sent in an HTTP 200 response.
deepseek_asr
Parameter | Type | Required | Description |
| string | yes | Local path to 16-bit PCM WAV or Ogg Opus audio |
Returns text and duration_ms.
deepseek_tts
Parameter | Type | Required | Description |
| string | yes | The text to speak |
| string | no |
|
| string | no |
|
| string | no | Path for a new audio file. Existing paths are rejected. Defaults to a file in a private temp directory |
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
DeepSeek limits Search to 100 QPS and Fetch to 25 QPS separately per account. Fetch also has a per-domain limit. Each MCP server process spaces Search and Fetch attempts, including retries, independently. Multiple processes using the same account share DeepSeek's limits. DeepSeek rate limits
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.
OCR / ASR / TTS have their own file-format and billing rules — see the API docs for details.
OCR and ASR accept regular files up to 100 MiB and 8 MiB, respectively. Each server process handles one file upload at a time. If an upload is already running, retry after it finishes.
The server allows 185 seconds per OCR HTTP attempt, including the upstream 180-second operation budget and connection time. ASR allows up to 11 minutes per HTTP attempt so the 10-minute upstream upload window leaves time for recognition. MCP clients may have shorter tool timeouts. The server only retries uploads after a retryable HTTP status. Local timeouts or interrupted connections have an unknown outcome, so the file is not automatically sent again. OCR limits · ASR limits
This is an unofficial community wrapper; not affiliated with DeepSeek.
Development
npm install
npm run build
npm run test:contract # Search, OCR and ASR API contract tests using simulated responses
npm run test:security # file tool regression tests with a local mock API
DEEPSEEK_API_KEY=sk-... npm test # end-to-end test against the real APIPushing a v* tag starts a GitHub Actions release. After publishing to npm, the workflow waits for the exact package version to appear in the public npm registry before publishing server.json to the official MCP Registry. The npm visibility check times out after 10 minutes.
License
Available Tools
2 toolsdeepseek_fetchDeepSeek Web FetchARead-only
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.
Inputs: url (required).
deepseek_searchDeepSeek Web SearchARead-only
Web search powered by DeepSeek's search engine. Returns ranked results with two quality signals: rerank_score (0-3; >=1.5 means highly relevant) and authority (0-4; >=3 means highly authoritative source, -1 unknown). Query syntax: site: (limit to site), -site: (exclude site), -term (exclude word), "exact phrase", -"phrase" (exclude phrase), lang:zh,en (limit languages), after:YYYY or after:YYYY-MM-DD, before:YYYY-MM-DD. By default returns summaries only; set need_content=true to include full page text (larger response).
Inputs: query (required), count, localization, need_content, +1 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
The two tools have clearly distinct roles: deepseek_search performs ranked web search, while deepseek_fetch retrieves and converts a single page to Markdown. The description even states fetch should be used after search, eliminating ambiguity.
Both tools follow a consistent deepseek_<verb> pattern (search, fetch). The naming is predictable and easy to reason about.
Two tools is slightly below the typical 3-15 range, but the server has a narrow search-and-fetch purpose where each tool earns its place. No unnecessary tools are included.
The surface covers the full search/read workflow: query with advanced syntax and optional content, then fetch full page content for a specific URL. There are no obvious dead ends for a web search server.
Maintenance
Related MCP Connectors
Web search, structured extraction, page monitor, link check & CVE scan for AI agents over MCP.
Web search API and MCP server for developers building AI agents.
Free web search for AI agents. No API key required. Hosted MCP in active development.
Live AI-native web search with citations. One tool for every MCP client. Flat per-request pricing.
Related MCP Servers
- 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
- AlicenseAqualityBmaintenanceEnables AI agents to perform real-time web search and fetch/parse webpages into clean Markdown through DeepSeek's Search and Fetch APIs. It provides configurable summaries, scoring, and robust retries for integration with MCP-compatible assistants.22MIT
- AlicenseAqualityBmaintenanceEnables MCP-capable AI clients to run web searches through DeepSeek's search engine and fetch individual webpages as Markdown. Search results include relevance scores, authority, and publication times, and support advanced query syntax such as site:, lang:, and date filters.252 npm1Apache 2.0
- AlicenseAqualityCmaintenanceEnables MCP clients to run web searches that return ranked results with titles, URLs, snippets, summaries, and optional extracted page content, and to fetch HTTP or HTTPS pages as Markdown. It runs over stdio as a zero-dependency Python server that uses DeepSeek's official APIs and any supported MCP client.23MIT