Skip to main content
Glama
sheep-programmer

dsh-web-search-free

dsh-web-search-free

中文 | English — DSH 插件(dsh-plugin)· 免费网页搜索 provider + 设置开关 + MCP server(兼容 Claude Code / Codex)

把「DeepSeek 官方按量计费搜索」一键切换成 OpenCode 同款免费搜索(匿名免 key), 并且同一个免费搜索后端直接作为 MCP 服务器供 Claude Code、Codex 等任何 MCP 客户端使用。

  • 🆓 免费后端:Parallel(默认) / Exa(备用)——都是 OpenCode 内置 websearch 工具的同款免费 MCP 端点,匿名可用、无需 API key、不扣任何余额。

  • 🔄 DSH 设置开关:官方 ↔ 免费一键切换,自动维护 profile 补丁。

  • 🔌 MCP server:零依赖,双传输(stdio + HTTP/SSE 双端口), claude mcp add / codex mcp add 即装即用。

背景:为什么默认走 DeepSeek 官方 key

DSH 的 web_search 工具走 ctx.web 能力缝(seam)。默认装配的 provider 是 @deepseek-ai/dsh-web-search-deepseek(id = deepseek-official,由 dsh-base 依赖自动带入):每次搜索调用 DeepSeek 官方 Anthropic 兼容 API (https://api.deepseek.com/anthropic/v1/messages)的原生 web_search_20250305 服务端工具,复用 DEEPSEEK_API_KEY按 token 计费

Related MCP server: Search MCP Server

功能

免费后端(DSH 内)

注册两个免费搜索 provider 到 ctx.web,模型侧 web_search 工具调用方式不变:

provider id

后端

端点

说明

parallel-free默认

Parallel Web Search

https://search.parallel.ai/mcp

匿名免 key

exa-free备用

Exa

https://mcp.exa.ai/mcp

匿名免 key;设 EXA_API_KEY 可提升限额

设置开关(DSH 设置 → 插件设置 → 可配置 → 免费网页搜索)

  • enabled 开关(默认关 = 官方搜索):开启 → 免费;关闭 → 官方。

  • 免费后端选择:Parallel(默认)/ Exa(备用),单选。

  • 变更自动维护 profile 用户层补丁 ~/.dsh/profiles/web/cordis.patch.ymlwebconfig.searchProvider(开 → 写入所选 provider id;关 → 删除覆盖块)。

    不能写 ~/.dsh/.env:dsh-app-boot 拒绝 .env 里的任何 DSH_* 变量。

  • 变更后重启 DSH 生效WebRuntime 启动时读取 web 行配置)。

MCP server(Claude Code / Codex / 任意 MCP 客户端)

独立的零依赖 MCP server(lib/mcp-server.js,不依赖 DSH),暴露 web_search 工具(参数:query 必填、provider 可选 parallel/exanumResults 可选)。 支持双传输stdio(默认)与 HTTP/SSE(监听端口,兼容 Streamable HTTP POST / 与老式 GET /sse + POST /messages)。

传输一:stdio(默认,无需端口)

# 本地路径方式(clone 后)
claude mcp add dsh-web-search -- node /绝对路径/dsh-web-search-free/lib/mcp-server.js
codex mcp add dsh-web-search -- node /绝对路径/dsh-web-search-free/lib/mcp-server.js

# 或 npm 全局安装后(npx,需先发布到 npm registry)
claude mcp add dsh-web-search -- npx -y @dsh-external/dsh-web-search-free
codex mcp add dsh-web-search -- npx -y @dsh-external/dsh-web-search-free

传输二:HTTP/SSE(监听端口,双端口模式)

# 启动 MCP server(默认 http://127.0.0.1:3100;可用 --host/--port 调整)
node /绝对路径/dsh-web-search-free/lib/mcp-server.js --http --port 3100
  • Claude Code(Streamable HTTP)

    claude mcp add --transport http dsh-web-search http://127.0.0.1:3100
  • Codex(OpenAI Codex CLI)

    codex mcp add --transport http dsh-web-search http://127.0.0.1:3100
  • 老式 SSE 客户端(URL 指向 SSE 通道):

    # 客户端配置 http://127.0.0.1:3100/sse(GET /sse 建立通道,POST /messages 发请求)
  • 验证:浏览器打开 http://127.0.0.1:3100/ 返回 {"name":"dsh-web-search-free","version":"0.3.0","transport":"http/sse","port":3100}

其他 MCP 客户端

任何支持 stdioHTTP/SSE 传输的 MCP 客户端都能接入(命令/URL 同上)。 可选环境变量:EXA_API_KEY(提升 Exa 匿名限额)。

安装(DSH 插件本体)

⚠️ 为什么别人装上设置里看不到卡片? 设置卡片要显示需要同时满足:

  1. 包被声明进 dsh.profile.bundles只把包放进 node_modules 是不够的);

  2. 安装后重启 DSH(host 装配与 client 图都在启动时解析);

  3. 打开设置前刷新浏览器页面

  4. profile 是 webtui/headless 无浏览器 UI);

  5. 用本地路径/link:/tgz 安装(npx @dsh-external/dsh-web-search-free 需要先发布到 npm registry,未发布前不可用)。 装好后可用 dev_plugin_status 确认 client ✓,或直接看设置 → 插件设置 → 可配置。

界面效果(设置 → 插件设置 → 可配置 → 免费网页搜索):

免费网页搜索设置卡片

方式一:本机热装配(dsh-super-injector,免重启)

dev_install_package   # dir = 插件包目录(含 package.json 与 lib/)

方式二:profile 声明(重启生效)

~/.dsh/profiles/web/package.json 中声明:

{
  "dsh": { "profile": { "bundles": [
    "@deepseek-ai/dsh-base",
    "@deepseek-ai/dsh-web-app",
    // ...其他 bundle...
    "@dsh-external/dsh-web-search-free"
  ]}},
  "dependencies": {
    "@dsh-external/dsh-web-search-free": "link:/绝对路径/dsh-web-search-free"
  }
}

方式三:npm 包(tgz)

npm run build && npm pack
# 把产物 tgz 加入 profile 依赖后重装(pnpm install),重启生效

验证

npm run verify   # 补丁联动 + Parallel/Exa 真实搜索 + 选择矩阵 + MCP 冒烟

回退官方

设置里关闭 enabled 开关(覆盖块随即删除),重启 DSH。 (或手动删除 ~/.dsh/profiles/web/cordis.patch.yml# >>> web-search-free# <<< web-search-free 之间的块。)

权限说明(安全透明)

  • DSH 插件:启用免费后,web_search 请求仅发往 search.parallel.ai / mcp.exa.ai;会修改 ~/.dsh/profiles/web/cordis.patch.yml(带边界标记的 web 行覆盖,格式见上),不触碰其他配置。无 key、无数据收集、无监听。

  • MCP server:只调用上述免费端点,不读你的任何文件/环境(除可选 EXA_API_KEY)。stdio 模式不监听任何端口;HTTP/SSE 模式仅在你指定的 --host:--port(默认 127.0.0.1:3100)上提供 MCP 端点,默认只绑本机回环地址。

开发

bash scripts/build.sh   # tsc 编译 host + core + mcp-server,复制 client 到 lib/
npm run verify          # 端到端验证

结构:

src/core.ts           # 零依赖搜索核心:Parallel + Exa(host 与 MCP 共用)
src/index.ts          # host:双 provider 注册 + settings 开关 + profile 补丁联动
src/mcp-server.ts     # MCP server:stdio + HTTP/SSE 双传输(bin:dsh-web-search-mcp)
src/client/client.js  # client:设置面板「免费网页搜索」开关卡片(含后端选择)
scripts/build.sh      # 构建(自动探测 DSH_CHECKOUT)
scripts/verify.mjs    # 端到端验证脚本
cordis.patch.yml      # bundle 装配层(含 web 行 searchProvider 解除固定)

License

MIT © sheep-programmer

A
license - permissive license
Not graded
quality - not tested
A
maintenance

Maintenance

Maintainers
Response time
0dRelease cycle
3Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    MCP server for internet search via direct Google and DuckDuckGo HTML scraping with AI-powered result normalization and optional summarization, requiring no API keys for search.
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Free web search MCP server using SearXNG, supporting web search, news search, and search summaries.
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Multi-level web search MCP server that wraps Claude, Gemini, Perplexity, and Tavily behind a unified interface, enabling multi-depth searches with session management and provider selection.
    MIT
  • F
    license
    A
    quality
    C
    maintenance
    An MCP server that brings Parallel web search and URL extraction to Codex and other Model Context Protocol clients.
    2
    22

View all related MCP servers

Related MCP Connectors

  • Fast, intelligent web search and web crawling. New mcp tool: Exa-code is a context tool for coding

  • MCP server for Google search results via SERP API

  • Serper MCP — wraps the Serper Google Search API (serper.dev)

View all MCP Connectors

Latest Blog Posts

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/sheep-programmer/dsh-web-search-free'

If you have feedback or need assistance with the MCP directory API, please join our Discord server