DeepSeek Search MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DEEPSEEK_API_KEY | Yes | DeepSeek API Key used for Bearer authentication. Required. | |
| DEEPSEEK_TIMEOUT | No | Timeout for a single request, in seconds. | 60 |
| DEEPSEEK_BASE_URL | No | API root address (can point to a mock service for testing). | https://api.deepseek.com |
| DEEPSEEK_MAX_RETRIES | No | Number of additional retries for retryable errors (total attempts = retries + 1). | 2 |
| DEEPSEEK_MAX_RETRY_DELAY | No | Upper limit in seconds for a single retry wait; also caps Retry-After. | 8 |
| DEEPSEEK_RETRY_BASE_DELAY | No | Base delay in seconds for exponential backoff. | 0.5 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
DeepSeek Web Search & Fetch provide real-time web access.
deepseek_search: search the web and get ranked, structured results (title, url, short snippet, long summary, optional full page content, publish date, authority).
deepseek_fetch: fetch one web page and get its main content as clean Markdown.
Workflow: search first; read the summary fields; only call deepseek_fetch for a
page whose full text you actually need. Cite sources by title and URL. Search
supports operators such as site:, -site:, -word, "exact phrase", lang:zh,en,
after:2025-01-01, before:2026-06-01. Each successful request is billed per call
(not per result), so request up to 50 results in one search rather than issuing
many small searches.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| deepseek_searchA | Search the web with DeepSeek's own search engine and return ranked, structured results. Each result has:
Search syntax (passed through to the engine, combinable): site:github.com restrict to a site (use OR to allow several) -site:example.com exclude a site -word / -"exact phrase" exclude pages containing a word/phrase "exact phrase" exact match lang:zh,en restrict language(s) after:2025 / after:2025-01-01 published after a date before:2026 / before:2026-06-01 published before a date Billing is per successful request regardless of count, so prefer one search with
count=10-50 over several tiny ones. Keep need_content=false and read |
| deepseek_fetchA | Fetch a single web page through DeepSeek and return its main content as clean Markdown. Use this after deepseek_search when summaries are not enough. The URL must be http:// or https://, contain a host, have no embedded credentials or whitespace, and be at most 8192 characters. URLs pointing at localhost, private, link-local, multicast or reserved addresses are rejected. Some pages cannot be fetched (site blocks, unsupported content, no extractable body); HTTP 404 usually means no usable content was available. Content longer than max_chars is truncated (set max_chars=0 for no limit). Each successful fetch is billed as one request; failures are not billed. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 2 tools
deepseek_search (query the engine, return ranked results) and deepseek_fetch (retrieve a single known URL as Markdown) are cleanly separated discovery vs. retrieval operations with no overlap. The fetch description even states explicitly when to use it after search, eliminating misselection risk.
Both tools follow the same predictable pattern: a shared `deepseek_` namespace prefix plus a short, unambiguous verb (search, fetch). No mixed casing or verb-style drift.
Two tools is thin in absolute terms but this is the canonical minimal surface for a search server — one discovery tool, one retrieval tool, each earning its place with no bloat. Slight under-coverage relative to a fuller web-research surface, but nothing is superfluous.
The domain (web search + page retrieval) is essentially covered end-to-end: rich query syntax, ranking/authority metadata, content extraction, truncation control, and SSRF-style URL validation. Minor gaps remain — no pagination/offset tool to page deeper into results and no batch fetch — but agents can work around both by re-querying or looping fetches.