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
An online search MCP server based on the DeepSeek web version. It provides real-time web search capabilities to MCP clients through DeepSeek's search-enhanced dialogue feature.
Features
Provides the
web_searchMCP tool, supporting real-time web searchSupports DeepSeek default and expert models
Supports thinking process output
Zero dependencies, pure Node.js implementation
stdio transport, compatible with all MCP clients
Related MCP server: google-search-mcp
Quick Start
1. Use in Claude Desktop
Edit the Claude Desktop configuration file (claude_desktop_config.json) and pass credentials directly via the env field, no .env file required:
{
"mcpServers": {
"web-search": {
"command": "node",
"args": ["D:/ai-projects/web-search-mcp/src/index.js"],
"env": {
"DEEPSEEK_AUTH_TOKEN": "your_token_here"
}
}
}
}2. Use in Claude Code
Add the following to your project's .claude/settings.json:
{
"mcpServers": {
"web-search": {
"command": "node",
"args": ["D:/ai-projects/web-search-mcp/src/index.js"],
"env": {
"DEEPSEEK_AUTH_TOKEN": "your_token_here"
}
}
}
}3. Use a .env file (Optional)
If it is inconvenient to write env in the MCP configuration, you can also use a .env file:
cp .env.example .env
# 编辑 .env 填入凭据Environment variable priority: System environment variables > MCP
envconfiguration >.envfile
MCP Tools
web_search
Uses DeepSeek's search-enhanced dialogue to perform a web search and returns an answer based on the search results.
Parameters:
Parameter | Type | Required | Description |
| string | Yes | Search query content |
| boolean | No | Whether to enable DeepSeek thinking/reasoning mode. If enabled, the model will reason before answering, and the reasoning process is included in the response (default: false) |
| string | No | Model mode: |
Environment Variables
Variable | Required | Default | Description |
| One of two | - | DeepSeek login token |
| One of two | - | DeepSeek browser cookie |
| No |
| Model type: |
| No |
| Whether to enable the thinking process by default |
| No |
| Path to the PoW solver WASM file |
| No |
| Log level: |
Obtaining DeepSeek Credentials
Open chat.deepseek.com and log in
Open browser developer tools (F12) → switch to the Console panel
Enter the following command and press Enter to copy the token:
copy(JSON.parse(localStorage.getItem("userToken")).value)Paste it into the
DEEPSEEK_AUTH_TOKENenvironment variable
Note: Credentials will expire and need to be re-obtained. A typical sign of token expiration is the request returning a Cloudflare verification page.
Testing
# 运行所有测试
npm test
# 运行单个测试文件
node --test tests/mcp-protocol.test.js
node --test tests/config.test.jsProject Structure
src/
index.js # 入口,初始化所有组件并启动 MCP 服务器
mcp-server.js # MCP 协议处理(stdio 传输、JSON-RPC 分发)
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
Related MCP Servers
- AlicenseBqualityCmaintenanceEnables web search and site-specific search capabilities through the Deepsearch model. Provides unified access to broad web retrieval and targeted site search functionality within the MCP ecosystem.2115Apache 2.0
- AlicenseNot gradedqualityDmaintenanceEnables LLMs to perform real-time Google searches and retrieve web results via the MCP protocol.The Unlicense
- AlicenseAqualityCmaintenanceA general MCP server providing web search capabilities using DeepSeek's native online search API.114027MIT
- AlicenseAqualityBmaintenanceEnables real-time web search via DeepSeek's server-side tool without requiring additional search API keys.134MIT
Related MCP Connectors
The best web search for your AI Agent
Jina AI Reader/Search MCP — turn any URL into clean LLM-ready markdown, plus web search.
LLM-ready web search + instant answers + URL-to-clean-text fetch for agents and RAG.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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