# deepseek-search-fetch-mcp [Health: Active]

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

## Description
MCP server for the DeepSeek Search and Fetch APIs: ranked web search and page-to-Markdown fetch for Claude Code and any MCP client.

## Tools
Capabilities this server exposes over MCP:

- **deepseek_search** — Search the live web with DeepSeek's search engine. Returns ranked results with title, URL, snippet, long summary, publish date, site name, authority (0-4; >=3 highly authoritative), and relevance score (0-3; >=1.5 high quality).

Query limits and operators:
- Query is limited to 128 Unicode characters; longer queries are truncated with a warning.
- site:example.com, -site:example.com, -word, "exact phrase", -"phrase", lang:zh,en, after:YYYY-MM-DD, before:YYYY-MM-DD.

Guidance:
- Best for Chinese-language and China-focused queries; pair it with another provider for English technical documentation.
- need_content=false by default; use deepseek_fetch on selected URLs when full page text is needed.
- Empty results are a normal successful search, not an error.
- **deepseek_fetch** — Fetch a single public HTTP/HTTPS page with DeepSeek and return its title and Markdown content. Use for a specific URL when search summaries are insufficient.

- Not a crawler: for whole-site crawl/map or JS-heavy pages, use a dedicated crawler.
- Localhost/private/internal addresses and URLs with credentials are rejected.
- Content is truncated at max_chars.

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

```json
"mcpServers": {
  "deepseek-search-fetch-mcp": {
    "command": "npx",
    "args": ["-y","deepseek-search-fetch-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-search-fetch-mcp does

deepseek-search-fetch-mcp exposes DeepSeek’s Search and Fetch APIs as MCP tools. Search returns structured results rather than a synthesized answer, including titles, URLs, summaries, publication dates, authority indicators, and relevance information. Fetch accepts a URL and returns the page title together with Markdown-formatted content.

The server is intended for MCP-compatible agents that need to discover web sources and then read selected pages. Search requests can ask for a result count from 1 to 50, apply freshness options, request content, and include the original question. Fetch supports a maximum-character setting.

## How it works

The package communicates with the MCP client over standard input and output using the standard MCP protocol. A client starts it with `npx -y deepseek-search-fetch-mcp`, while the server reads `DEEPSEEK_API_KEY` from its environment to authenticate requests to DeepSeek.

A typical workflow calls `deepseek_search` with a query, reviews the returned URLs and metadata, then passes a selected URL to `deepseek_fetch`. The server applies a local rate limit of four requests per second, backs off after HTTP 429 responses, and enforces separate deadlines for search and fetch operations. Fetch has a maximum runtime of 55 seconds.

## Setup and configuration

Install Node.js 20.3 or newer, then register the stdio command in the MCP client of your choice:

```bash
npx -y deepseek-search-fetch-mcp
```

Set the required credential in the client’s environment configuration:

```text
DEEPSEEK_API_KEY=your_key
```

Claude Code and Codex can register the command through their MCP CLI commands. Cursor and WorkBuddy use an `mcpServers` entry containing the command, arguments, and environment variable. On Windows clients that do not invoke commands through a shell, use `cmd /c npx -y deepseek-search-fetch-mcp` instead.

DeepSeek Harness requires its official `@deepseek-ai/dsh-mcp-client` package and a stdio entry in the Harness profile configuration. Its default tool timeout is 60 seconds, which is longer than this server’s 55-second fetch deadline.

## Tools and capabilities

- `deepseek_search`: searches the web with `query`, `count`, `freshness`, `need_content`, and `ori_question` parameters. The result includes titles, URLs, summaries, publication dates, authority, and relevance.
- `deepseek_fetch`: retrieves a page using `url` and an optional `max_chars` limit, returning a title and Markdown body.
- Structured search output: gives agents source records that can be inspected before fetching.
- Request controls: supports result-count, freshness, content-request, original-question, and output-length parameters.

## Limitations and notes

A DeepSeek API key is required. The service charges by successful request at the stated rate of 5 yuan per 1,000 requests; failed, empty-result, and timed-out requests are not charged according to the project description.

The server blocks internal-network addresses and reads the key only from the environment or a designated file. Search and fetch operations have time limits, and HTTP 429 responses trigger backoff rather than unlimited retries. DeepSeek Harness users should account for its client-specific installation and configuration requirements.

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

