# deepseek-websearch-mcp [Health: Active]

**Category:** 🔎 Search & Data Extraction  
**Repository:** https://github.com/zengzoxiong/deepseek-search-mcp  
**GitHub Stars:** 4  
**npm Downloads (last month):** 1021  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/deepseek-websearch-mcp

## Description
DeepSeek 官方 Search/Fetch API 的 MCP server（官方 SDK 构建，webSearch/webFetch 双工具，支持时效过滤与结构化输出）

## Tools
Capabilities this server exposes over MCP:

- **webSearch** — 联网搜索（DeepSeek 自研搜索引擎，多语言，过滤 SEO 作弊与低质内容）。返回 Title/Meta(发布日期、权威度、相关性)/Content/URL 列表，同时提供 structuredContent 原始数据。计费 5 元/千次成功请求。
- **webFetch** — 抓取单个网页，返回 Markdown 格式的标题与正文（DeepSeek Fetch API）。适合搜索命中后读取全文。计费 5 元/千次成功请求。

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "deepseek-websearch-mcp": {
    "command": "npx",
    "args": ["-y","deepseek-websearch-mcp"],
    "env": {
      "DEEPSEEK_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `DEEPSEEK_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What deepseek-websearch-mcp does

deepseek-websearch-mcp connects MCP clients to DeepSeek's official Search and Fetch API, which uses DeepSeek's own search engine. It provides two tools:

- `webSearch` searches the web and returns result titles, metadata, content, and URLs.
- `webFetch` retrieves one HTTP or HTTPS page and formats its title and body as Markdown.

Search results can include publication dates, an authority value from 0 to 4, and a reranking score from 0 to 3. The server also passes through the API's structured response data through MCP `structuredContent`.

The project is a community implementation rather than an official DeepSeek product. API behavior, pricing, and availability are controlled by DeepSeek's API.

## How it works

The server uses the official MCP TypeScript SDK and communicates with clients through the normal MCP server configuration. On Linux and macOS, clients can launch it with `npx -y deepseek-websearch-mcp`. Windows setups can install the npm package globally and start it through `cmd /c deepseek-websearch-mcp`.

`webSearch` requires a query of up to 128 characters. It accepts a result count from 1 to 50, with 10 as the default, and can filter by a relative period such as the previous day, week, month, or year. It also accepts an explicit date range. Search syntax supports operators including `site:`, `-site:`, `lang:`, `after:`, `before:`, quoted phrases, and excluded terms. When a freshness filter would make the generated query too long, the server falls back and reports that condition in the result.

`webFetch` accepts a single HTTP or HTTPS URL. Returned content is truncated automatically when it exceeds 60,000 characters.

## Setup and configuration

Create a DeepSeek API key through the DeepSeek platform, then expose it to the process as `DEEPSEEK_API_KEY`. A typical Unix-style MCP entry is:

```json
{
  "mcpServers": {
    "DeepSeek_Search": {
      "command": "npx",
      "args": ["-y", "deepseek-websearch-mcp"],
      "env": {
        "DEEPSEEK_API_KEY": "your-api-key"
      }
    }
  }
}
```

Windows users can install the package globally with `npm install -g deepseek-websearch-mcp`, then configure the client to run `cmd` with `/c deepseek-websearch-mcp`. Node.js 18 or newer is required. Keep the API key in the environment rather than committing it to a repository.

## Tools and capabilities

`webSearch(query, count?, freshness?, ori_question?, localization?, need_content?)` supports the following options:

- `count` controls the number of results.
- `freshness` applies relative or explicit date filtering.
- `ori_question` supplies the original user question to help with intent interpretation.
- `localization` supplies an IP address for localized result preference.
- `need_content` requests full page content instead of summaries; it defaults to `false`.

Search output includes readable result details and the API's structured representation. `webFetch(url)` retrieves page content as Markdown, including the page title and body.

The server translates common API failures into Chinese explanations for invalid keys, insufficient balance, security-policy rejection, missing content, and rate limiting. This gives an agent information it can use when deciding whether a request should be retried.

## Limitations and notes

DeepSeek applies separate limits of 5 queries per second for Search and Fetch per account. Fetch requests also have per-domain limits, and excess traffic can produce HTTP 429 responses. Search and Fetch billing follows DeepSeek's official pricing; failed requests, empty results, and timeouts are not charged according to the project description, while successful use is paid by the API consumer. The number of returned search results does not change the stated unit price.

Search queries are limited to 128 characters, and fetched URLs are limited to 8,192 characters. Large fetched responses are capped at 60,000 characters. Results and page content depend on the upstream DeepSeek service and its API policies.

_Full upstream README: https://allmcps.com/mcp/deepseek-websearch-mcp/readme_

