# websearch-deepseek [Health: Active]

**Category:** 🔎 Search & Data Extraction  
**Repository:** https://github.com/lyumeng/websearch-deepseek  
**GitHub Stars:** 33  
**npm Downloads (last month):** 193  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/websearch-deepseek

## Description
通用 MCP Server — 基于 DeepSeek 原生联网搜索 API 的 Web Search 工具。适用于 Claude Code、Cursor、Continue、OpenCode 等任何支持 MCP 协议的 AI 编程助手。

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

```json
"mcpServers": {
  "websearch-deepseek": {
    "command": "npx",
    "args": ["-y","websearch-deepseek"],
    "env": {
      "DEEPSEEK_API_KEY": "",
      "WEBSEARCH_API_KEY": "",
      "WEBSEARCH_MODEL": "",
      "WEBSEARCH_THINKING": "",
      "WEBSEARCH_MAX_TOKENS": ""
    }
  }
}
```

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

## Documentation

## What websearch-deepseek does

websearch-deepseek adds web search to MCP-compatible AI assistants through DeepSeek's native `web_search_20250305` capability. Instead of returning only search-result links, it asks DeepSeek to synthesize an answer from the content of the retrieved pages and includes the source URLs for verification.

The package is intended for questions that depend on current information, such as framework releases, language-version changes, product updates, and recent industry news. It can be used from MCP clients or invoked directly with the `npx websearch-deepseek search` command.

## How it works

An MCP tool call becomes one DeepSeek API request. DeepSeek performs the web search and page retrieval, while the server handles the returned encrypted page content before passing it back to the model for answer generation. The response contains the generated explanation and a list of source links.

The service communicates with MCP clients using JSON-RPC over standard input and output. This makes it suitable for clients that can launch an MCP process and provide environment variables to it.

## Setup and configuration

Obtain an API key from the DeepSeek Platform, then install the package globally with:

```bash
npm install -g websearch-deepseek
```

MCP configurations launch it with `npx websearch-deepseek` and set `DEEPSEEK_API_KEY` in the process environment. `WEBSEARCH_API_KEY` is also accepted as an alternative key variable name.

Optional settings include:

- `WEBSEARCH_MODEL`: chooses `deepseek-v4-flash` for faster, lower-cost searches or `deepseek-v4-pro` for more detailed research.
- `WEBSEARCH_THINKING`: enables or disables the model's thinking step; it defaults to enabled.
- `WEBSEARCH_MAX_TOKENS`: sets the response token ceiling and defaults to 8192.

The same package supports direct terminal searches. Use `--json` for JSON output, `--model` to select a model, and `--no-thinking` to disable thinking for an individual request.

## Tools and capabilities

The MCP interface exposes a `web_search` tool. Typical requests include looking up current release information, researching recent technology news, or asking for a factual answer that requires browsing. Results are synthesized from full page content when available and retain source URLs so an agent or developer can inspect the references.

Supported configuration examples cover Claude Code, Cursor, and Continue. The project also identifies compatibility with OpenCode, pi, and other MCP-capable tools.

## Limitations and notes

Each search uses the DeepSeek API and incurs token usage. The project estimates roughly 8,000–15,000 tokens per search, combining search, optional thinking, and answer generation; consult DeepSeek's current pricing before deploying it at scale.

Disabling thinking can reduce latency and token consumption for simpler questions, while the deeper model option is intended for more detailed research. The server requires a DeepSeek API key and network access to use the upstream API and web search service.

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

