Skip to main content
Glama

Claude Web Search MCP Server

by Doriandarko

Claude Web 搜索 MCP 服务器

该 MCP(模型上下文协议)服务器使用 Claude API 提供网络搜索功能。它允许 LLM 通过标准化接口访问网络上的最新信息。

特征

  • 使用 Claude 的网络搜索 API 的网络搜索工具
  • 支持域过滤(允许和阻止域)
  • 可配置每次搜索的最大结果数
  • 从 Claude Desktop 配置文件自动配置

先决条件

  • Node.js 18 或更高版本
  • 启用了网络搜索的 Anthropic API 密钥
  • 用于测试的 Claude 桌面应用程序

安装和设置

  1. 克隆存储库:
    git clone https://github.com/Doriandarko/claude-search-mcp.git cd claude-search-mcp
  2. 安装依赖项:
    npm install
  3. 构建服务器:
    npm run build
    这将编译 TypeScript 代码并使服务器可执行。
  4. 链接服务器以实现全局访问:
    npm link
    这使得mcp-server-claude-search命令在整个系统范围内可用,从而允许 Claude Desktop 应用程序找到它。

使用 Claude 桌面应用程序运行服务器

一旦服务器安装并链接,如果配置正确,Claude Desktop 应用程序就可以自动管理它。

  1. **配置 Claude 桌面应用:**打开 Claude 桌面应用的 MCP 服务器配置文件(通常为claude_desktop_config.json )。添加或更新此服务器的条目:
    { "mcpServers": { // ... other servers ... "claude-search": { "command": "mcp-server-claude-search", "env": { "ANTHROPIC_API_KEY": "YOUR_ANTHROPIC_API_KEY_HERE" } } // ... other servers ... } }
    "YOUR_ANTHROPIC_API_KEY_HERE"替换为你实际的 Anthropic API 密钥。如果env变量未在此处设置,服务器也会尝试从~/code/claude-search-mcp/claude_desktop_config.json读取此密钥,但建议在主配置中为每个服务器分别定义此密钥。
  2. **启动 Claude 桌面应用程序:**启动(或重启)您的 Claude 桌面应用程序。现在它应该能够在需要时找到并启动mcp-server-claude-search
  3. **使用网络搜索:**您现在可以在与 Claude 的对话中使用网络搜索功能。

手动服务器执行(用于测试/开发)

如果您想手动运行服务器以进行测试或开发目的(在 Claude Desktop 应用程序管理之外):

  • 使用全局链接命令:
    mcp-server-claude-search
  • 直接使用 tsx(用于自动重启开发):
    npm run dev
  • 直接运行编译后的代码:
    npm start

Web 搜索工具参数

当 LLM 调用网络搜索工具时,它支持以下参数:

  • query (必需):搜索查询字符串。
  • maxResults (可选):返回的最大搜索结果数(默认值:5)。
  • allowedDomains (可选):要包含在搜索结果中的域数组(例如, ["example.com", "wikipedia.org"] )。
  • blockedDomains (可选):从搜索结果中排除的域数组。

执照

麻省理工学院

Install Server
A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

使用 Anthropic API 为 Claude AI 提供网络搜索功能,允许 LLM 通过可自定义的域过滤从网络访问最新信息。

  1. 特征
    1. 先决条件
      1. 安装和设置
        1. 使用 Claude 桌面应用程序运行服务器
          1. 手动服务器执行(用于测试/开发)
            1. Web 搜索工具参数
              1. 执照

                Related MCP Servers

                • A
                  security
                  A
                  license
                  A
                  quality
                  A server facilitating web search functionality by utilizing Perplexity AI's API, designed to integrate with the Claude desktop client for enhanced search queries.
                  Last updated -
                  1
                  215
                  Python
                  MIT License
                  • Apple
                • A
                  security
                  A
                  license
                  A
                  quality
                  Facilitates web search capabilities using Perplexity's API, allowing users to retrieve search results through Claude's interface.
                  Last updated -
                  1
                  4
                  JavaScript
                  MIT License
                • -
                  security
                  F
                  license
                  -
                  quality
                  Allows Claude or other MCP-compatible AI assistants to search the web and get up-to-date information using the Perplexity API, with features for filtering results by time period.
                  Last updated -
                  8
                  Python
                  • Apple
                • -
                  security
                  A
                  license
                  -
                  quality
                  Provides web search functionality via DuckDuckGo for Claude Code and MCP-compatible clients, featuring advanced content exploration, navigation across search results, and detailed webpage analysis.
                  Last updated -
                  4
                  Python
                  MIT License

                View all related MCP servers

                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/Doriandarko/claude-search-mcp'

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