Queries public SearXNG instances by parsing HTML search results into JSON format, allowing searches with time range filtering (day, month, year), and providing URL and summary data for each result.
mcp-搜索-公共
查询公共 SearXNG 实例的 MCP 服务器,将 HTML 内容解析为 JSON 结果
基本原理
我见过的所有 SearXNG 的 MCP 服务器都使用“json”作为输出格式。虽然这无疑是编写 SearXNG MCP 服务器的一种更快捷的方式,但它几乎会导致所有公共服务器都无法运行,因为它们不支持 JSON 格式。
该服务器将从最多三个公共 SearXNG 服务器读取(使用一个作为主服务器,其他作为后备服务器),并将结果解析为 JSON。
安装
通过npm install mcp-serxng-public
。
如果安装了服务器,则运行配置为:
(您可以使用https://searx.space/中的任何服务器作为您选择的服务器)
用法
服务器公开一个端点: search
。该端点接受两个参数: query
- 搜索查询和一个可选的time_range
,后者根据https://docs.searxng.org/dev/search\_api.html规范接受一个时间范围参数( day
、 month
或year
)。
返回的是对象数组:
You must be authenticated.
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
MCP 服务器允许通过将 HTML 内容解析为 JSON 结果来搜索公共 SearXNG 实例,从而无需 JSON API 访问即可实现元搜索功能。
Related Resources
Related MCP Servers
- -securityAlicense-qualityAn MCP server implementation that integrates the Brave Search API, providing both web and local search capabilities.Last updated -215,87047,408JavaScriptMIT License
- AsecurityAlicenseAqualityAn MCP server implementation that integrates the SearxNG API, providing web search capabilities.Last updated -263363JavaScriptMIT License
- -securityAlicense-qualityA server based on the MCP protocol that uses the Brave API for web search functionality.Last updated -6PythonMIT License
- -securityAlicense-qualityMCP server for using various search tools like Tavily API. Planning to support various search tools (i.e. wiki search, searxng, etc)Last updated -1PythonMIT License