LW

lyumeng/websearch-deepseek

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

33 stars 1 forks 质量 82 趋势 15MIT

一台MCP服务器,提供由DeepSeek API驱动的网页搜索功能,专为AI助手和代理设计。

概览

这是一个通用的,提供基于DeepSeek原生网页搜索API的网页搜索工具——无需第三方搜索API。 支持支持、、、、以及任何支持MCP协议的工具。 - 🔍 — 使用服务器端web_search_20250305工具,无需第三方搜索 API - 📝 — 返回从整页内容合成的详细答案,而不仅仅是 URL 列表 - 🔗 — 每个答案都附有原始源链接用于验证 - ⚙️ — 选择模型,切换思维模式,调整令牌限制 - 🌐 — 标准 JSON-RPC over stdio,兼容所有 MCP 客户端 —— 搜索、解密和答案生成都发生在服务器端。 请访问DeepSeek平台注册并获取您的API密钥。 在你的MCP配置文件中添加以下内容: 在你的项目中编辑 ~/.claude/claude_desktop_config.json 或 .mcp.json: 编辑 ~/.continue/config.json,添加到mcpServers:

概述(AI 翻译)

中文版

一个通用的MCP服务器,提供由DeepSeek原生网页搜索API驱动的网页搜索工具——无需第三方搜索API。

支持Claude代码、Cursor、Continue、OpenCode、pi以及任何支持MCP协议的工具。

特色

  • 🔍 DeepSeek 原生搜索 — 使用服务器端 web_search_20250305 工具,无需第三方搜索 API
  • 📝 AI生成答案 — 返回从整页内容综合而成的详细答案,而不仅仅是URL列表
  • 🔗 包含来源网址 — 每个答案都附带原始链接以供验证
  • ⚙️ 灵活配置 — 选择模型,切换思维模式,调整令牌限制
  • 🌐 MCP 协议 — 标准 JSON-RPC 基于 stdio,兼容所有 MCP 客户端

工作原理

一个MCP工具调用 = 一个DeepSeek API请求——搜索、解密和响应生成均在服务器端完成。

快速启动

1.获取DeepSeek API密钥

请访问DeepSeek平台注册并获取您的API密钥。

2.安装

3.配置您的AI编码助手

在你的MCP配置文件中添加以下内容:

克劳德·科德

编辑 '~/.claude/claude_desktop_config.

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

websearch-deepseek

中文版

A universal MCP Server that provides a web search tool powered by DeepSeek’s native web search API — no third-party search API required.

Works with Claude Code, Cursor, Continue, OpenCode, pi, and any tool that supports the MCP protocol.

Features

  • 🔍 DeepSeek Native Search — Uses the server-side web_search_20250305 tool, no third-party search API needed
  • 📝 AI-Generated Answers — Returns detailed answers synthesized from full page content, not just a list of URLs
  • 🔗 Source URLs Included — Every answer comes with original source links for verification
  • ⚙️ Flexible Configuration — Choose model, toggle thinking mode, adjust token limits
  • 🌐 MCP Protocol — Standard JSON-RPC over stdio, compatible with all MCP clients

How It Works

User Query → DeepSeek Model
                  ↓
        Server executes web_search (fetches pages)
                  ↓
        Encrypted page content → Server decrypts → Feeds to model
                  ↓
        Model generates detailed answer based on full content
                  ↓
Returns: AI-generated answer + source URL list

One MCP tool call = One DeepSeek API request — search, decryption, and answer generation all happen server-side.

Quick Start

1. Get a DeepSeek API Key

Visit DeepSeek Platform to sign up and get your API Key.

2. Install

npm install -g websearch-deepseek

3. Configure Your AI Coding Assistant

Add the following to your MCP configuration file:

Claude Code

Edit ~/.claude/claude_desktop_config.json or .mcp.json in your project:

{
  "mcpServers": {
    "websearch-deepseek": {
      "command": "npx",
      "args": ["websearch-deepseek"],
      "env": {
        "DEEPSEEK_API_KEY": "sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        "WEBSEARCH_MODEL": "deepseek-v4-flash",
        "WEBSEARCH_THINKING": "enabled"
      }
    }
  }
}

Cursor

Edit ~/.cursor/mcp.json:

{
  "mcpServers": {
    "websearch-deepseek": {
      "command": "npx",
      "args": ["websearch-deepseek"],
      "env": {
        "DEEPSEEK_API_KEY": "sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
      }
    }
  }
}

Continue (VS Code)

Edit ~/.continue/config.json, add to mcpServers:

{
  "mcpServers": [
    {
      "name": "websearch-deepseek",
      "command": "npx",
      "args": ["websearch-deepseek"],
      "env": {
        "DEEPSEEK_API_KEY": "sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
      }
    }
  ]
}

pi

Edit ~/.pi/agent/settings.json, add to mcp:

{
  "mcp": {
    "websearch-deepseek": {
      "command": "npx",
      "args": ["websearch-deepseek"],
      "env": {
        "DEEPSEEK_API_KEY": "sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
      }
    }
  }
}

4. Start Using It

在 GitHub 查看完整 README

安装

npx websearch-deepseek
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "websearch-deepseek": { "command": "npx", "args": ["websearch-deepseek"], "env": { "DEEPSEEK_API_KEY": "sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "WEBSEARCH_MODEL": "deepseek-v4-flash", "WEBSEARCH_THINKING": "enabled" } } } }