Skip to main content
Glama
web-search-mcp

web-search-mcp

by fuyouai

web-search-mcp

多 provider 联网搜索 MCP Server。当前支持豆包(火山引擎联网搜索 API)。

安装

从 npm 使用(推荐)

npx @fuyouai/web-search-mcp --provider doubao

本地开发

npm install
npm run build

Related MCP server: Doubao Image/Video Generation MCP Server

Cursor 配置

在项目或全局 .cursor/mcp.json 中添加:

{
  "mcpServers": {
    "web-search-doubao": {
      "command": "npx",
      "args": ["-y", "@fuyouai/web-search-mcp", "--provider", "doubao"],
      "env": {
        "DOUBAO_API_KEY": "${env:DOUBAO_API_KEY}"
      }
    }
  }
}

本地开发时也可指向编译产物:

{
  "mcpServers": {
    "web-search-doubao": {
      "command": "node",
      "args": ["/absolute/path/to/web_search_mcp/dist/index.js", "--provider", "doubao"],
      "env": {
        "DOUBAO_API_KEY": "${env:DOUBAO_API_KEY}"
      }
    }
  }
}

环境变量

变量

必填

说明

DOUBAO_API_KEY

是

火山引擎联网搜索 API Key

DOUBAO_BASE_URL

否

默认 https://open.feedcoopapi.com

WEB_SEARCH_PROVIDER

否

未传 --provider 时的 fallback

API Key 可在火山控制台创建。

MCP Tool

参数

类型

必填

说明

query

string

是

搜索词,1~100 字符

count

number

否

返回条数,web 最多 50,image 最多 5

searchType

string

否

web 或 image,默认 web

timeRange

string

否

OneDay / OneWeek / OneMonth / OneYear 或 YYYY-MM-DD..YYYY-MM-DD

authLevel

number

否

0 默认,1 非常权威

本地调试

export DOUBAO_API_KEY=your_key
node dist/index.js --provider doubao --log-level debug

启动参数

node dist/index.js --provider doubao [--default-limit 10] [--log-level info]

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI-powered image generation using Volcengine's Doubao model with customizable aspect ratios (1:1, 4:3, 16:9, 3:4, 9:16) and file management. Supports high-quality text-to-image generation with automatic retry, error handling, and flexible save path configuration.
      20
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables web search for large language models using Zhipu AI's Web Search API, supporting multiple search engines and advanced filtering options.
      -