MW

mnhlt/websearch-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

42 stars 13 forks 质量 61 趋势 0

mnhlt/websearch-mcp 是从 https://github.com/mnhlt/websearch-mcp. 导入的 MCP 服务器候选

概览

mnhlt/websearch-mcp 是从 https://github.com/mnhlt/websearch-mcp. 导入的 MCP 服务器候选

概述(AI 翻译)

一个模型上下文协议(MCP)服务器实现,提供基于标准传输的网页搜索功能。该服务器集成了WebSearch Crawler API以检索搜索结果。

目录

  • 关于
  • 安装
  • 配置
  • 设置与集成
  • 建立爬虫服务
  • 先决条件
  • 启动爬虫服务
  • 测试爬虫 API
  • 自定义配置
  • 与MCP客户端集成
  • 快速参考:MCP 配置
  • Claude桌面
  • 光标IDE
  • 克莱恩
  • 使用情况
  • 参数
  • 示例搜索响应
  • 本地测试
  • 作为图书馆
  • 故障排除
  • 履带服务问题
  • MCP 服务器问题
  • 发展
  • 项目结构
  • 向 npm 发布
  • 贡献
  • 许可证

关于

WebSearch-MCP 是一款模型上下文协议服务器,为支持 MCP 的 AI 助手提供网页搜索功能。它允许像 Claude 这样的 AI 模型实时搜索网络,获取任何主题的最新信息。

该服务器集成了一个负责实际网页搜索的爬虫API服务,并通过标准化的模型上下文协议与AI助手通信。

安装

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

WebSearch-MCP

A Model Context Protocol (MCP) server implementation that provides a web search capability over stdio transport. This server integrates with a WebSearch Crawler API to retrieve search results.

Table of Contents

About

WebSearch-MCP is a Model Context Protocol server that provides web search capabilities to AI assistants that support MCP. It allows AI models like Claude to search the web in real-time, retrieving up-to-date information about any topic.

The server integrates with a Crawler API service that handles the actual web searches, and communicates with AI assistants using the standardized Model Context Protocol.

Installation

Installing via Smithery

To install WebSearch for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @mnhlt/WebSearch-MCP --client claude

Manual Installation

npm install -g websearch-mcp

Or use without installing:

npx websearch-mcp

Configuration

The WebSearch MCP server can be configured using environment variables:

  • API_URL: The URL of the WebSearch Crawler API (default: http://localhost:3001)
  • MAX_SEARCH_RESULT: Maximum number of search results to return when not specified in the request (default: 5)

Examples:

# Configure API URL
API_URL=https://crawler.example.com npx websearch-mcp

# Configure maximum search results
MAX_SEARCH_RESULT=10 npx websearch-mcp

# Configure both
API_URL=https://crawler.example.com MAX_SEARCH_RESULT=10 npx websearch-mcp

Setup & Integration

在 GitHub 查看完整 README

安装

npx websearch-mcp
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "websearch": { "command": "npx", "args": [ "websearch-mcp" ], "environment": { "API_URL": "http://localhost:3001", "MAX_SEARCH_RESULT": "5" // reduce to save your tokens, increase for wider information gain } } } }