mcp-服务器-本地网络搜索
用于执行本地网页搜索的 MCP 服务器。该服务器提供通过模型上下文协议 (MCP) 搜索和提取网页内容的工具。
特征
使用可自定义的结果限制执行网络搜索
从网页中提取并处理内容
返回包含标题、URL 和描述的结构化结果
支持内容截断和域过滤
使用 Readability 清理内容提取
无头浏览器操作以提高性能
安装
要安装依赖项:
设置
运行安装脚本来配置 MCP 服务器:
这会将服务器添加到您的 Claude MCP 配置中。
可用工具
local_web_search
执行网络搜索并返回带有标题、URL 和描述的结果
参数:
query
:搜索查询以查找相关内容(必需)excludeDomains
:从搜索结果中排除的域列表(默认值:[])limit
:返回的最大结果数(默认值:5)truncate
:每个结果返回内容的最大长度(默认值:4000)show
:显示浏览器窗口进行调试(默认值:false)proxy
:用于请求的代理服务器(可选)
要求
Bun运行时
Node.js TypeScript 支持
发展
该项目使用:
Bun作为 JavaScript 运行时
TypeScript类型安全
用于服务器实现的模型上下文协议SDK
@egoist/local-web-search用于网络搜索(使用 playwright-core)
内容提取的可读性
贡献者
egoist - 本地网络搜索原创者
FradSer - 原作者
TheSethRose - Playwright 集成和性能改进
执照
MIT 许可证
该项目是使用 bun v1.2.2 中的bun init
创建的。Bun 是一个快速的一体化 JavaScript 运行时。
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
使用模型上下文协议可以执行本地网络搜索并从网页中提取结构化内容,具有可自定义的结果限制和域过滤功能。
Related Resources
Related MCP Servers
- AsecurityFlicenseAqualityA Model Context Protocol server that provides web search capabilities using Google Custom Search API and webpage content extraction functionality.Last updated -271
- -securityAlicense-qualityA Model Context Protocol server that enables web search with category support, website content scraping with citation metadata, and timezone-aware date/time tools.Last updated -18MIT License
- AsecurityFlicenseAqualityA Model Context Protocol server that intelligently fetches and processes web content, transforming websites and documentation into clean, structured markdown with nested URL crawling capabilities.Last updated -2334
- -securityAlicense-qualityA Model Context Protocol server that provides web search capabilities using Google Custom Search API and webpage content extraction functionality.Last updated -MIT License