web-search-mcp
This server provides real-time web search capabilities powered by DeepSeek's search-enhanced chat, accessible via the MCP protocol.
web_searchtool: Perform web searches with a natural languagequery(required), returning search-grounded, up-to-date responsesModel selection: Choose between
defaultorexpertDeepSeek models via the optionalmodelparameter orDEEPSEEK_MODEL_TYPEenvironment variableThinking/reasoning mode: Enable via
thinking: trueto include DeepSeek's full reasoning trace alongside the answer; configurable by default withDEEPSEEK_THINKING_ENABLEDAuthentication: Supports
DEEPSEEK_AUTH_TOKENorDEEPSEEK_COOKIE, provided via MCPenvconfig, system environment variables, or.envfilesUniversal MCP compatibility: Communicates via stdio transport with zero external dependencies, working with any MCP client (e.g., Claude Desktop, Claude Code)
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@web-search-mcpsearch for the latest breakthroughs in AI"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
web-search-mcp
基于 DeepSeek 网页版的在线搜索 MCP 服务器。通过 DeepSeek 的搜索增强对话功能,为 MCP 客户端提供实时网络搜索能力。
功能
提供
web_searchMCP 工具,支持实时网络搜索支持 DeepSeek 默认模型和专家模型
支持思考过程(thinking)输出
基于 MCP SDK,stdio 传输,兼容所有 MCP 客户端
stdio 传输,兼容所有 MCP 客户端
Related MCP server: Tavily Web Search MCP Server
快速开始
0. 安装依赖
cd web-search-mcp
npm install1. 在 Claude Desktop 中使用
编辑 Claude Desktop 配置文件(claude_desktop_config.json),通过 env 字段直接传入凭据,无需 .env 文件:
{
"mcpServers": {
"web-search": {
"command": "node",
"args": ["path/to/web-search-mcp/src/index.js"],
"env": {
"DEEPSEEK_AUTH_TOKEN": "your_token_here"
}
}
}
}2. 在 Claude Code 中使用
在项目的 .claude/settings.json 中添加:
{
"mcpServers": {
"web-search": {
"command": "node",
"args": ["path/to/web-search-mcp/src/index.js"],
"env": {
"DEEPSEEK_AUTH_TOKEN": "your_token_here"
}
}
}
}3. 使用 .env 文件(可选)
如果不方便在 MCP 配置中写 env,也可以用 .env 文件:
cp .env.example .env
# 编辑 .env 填入凭据环境变量优先级:系统环境变量 > MCP
env配置 >.env文件
MCP 工具
web_search
使用 DeepSeek 搜索增强对话进行网络搜索,返回基于搜索结果的回答。
参数:
参数 | 类型 | 必填 | 说明 |
| string | 是 | 搜索查询内容 |
| boolean | 否 | 是否开启 DeepSeek 思考/推理模式,开启后模型会先推理再回答,推理过程包含在响应中(默认 false) |
| string | 否 | 模型模式: |
环境变量
变量 | 必填 | 默认值 | 说明 |
| 二选一 | - | DeepSeek 登录 token |
| 二选一 | - | DeepSeek 浏览器 cookie |
| 否 |
| 模型类型: |
| 否 |
| 是否默认启用思考过程 |
| 否 |
| PoW 求解器 WASM 文件路径 |
| 否 |
| 日志级别: |
获取 DeepSeek 凭据
打开 chat.deepseek.com 并登录
打开浏览器开发者工具(F12)→ 切换到 Console(控制台) 面板
输入以下命令并回车,即可复制 token:
copy(JSON.parse(localStorage.getItem("userToken")).value)粘贴到
DEEPSEEK_AUTH_TOKEN环境变量中即可
注意:凭据会过期,过期后需要重新获取。Token 过期的典型表现是请求返回 Cloudflare 验证页面。
测试
# 运行所有测试
npm test
# 运行单个测试文件
node --test tests/mcp-protocol.test.js
node --test tests/config.test.js项目结构
src/
index.js # 入口,初始化所有组件并启动 MCP 服务器
mcp-server.js # MCP 服务器(基于 @modelcontextprotocol/sdk,注册 web_search 工具)
deepseek-client.js # DeepSeek 网页版 API 客户端(会话管理、PoW、SSE 流式解析)
pow-solver.js # SHA3 PoW WASM 求解器
env.js # .env 文件加载器
config.js # 环境变量配置解析Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/hbhszy/web-search-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server