SearXNG MCP Server

by pwilkin
Integrations
  • 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

如果安装了服务器,则运行配置为:

{ "name": "SearXNGScraper", "type": "stdio", "command": "npx", "args": ["mcp-searxng-public"], "capabilities": { "tool-calls": true }, "env": { "SEARXNG_BASE_URL": "https://searx.be;https://searx.tiekoetter.com;https://opnxng.com;https://searxng.world;https://searx.oloke.xyz;https://seek.fyi", } }

(您可以使用https://searx.space/中的任何服务器作为您选择的服务器)

用法

服务器公开一个端点: search 。该端点接受两个参数: query - 搜索查询和一个可选的time_range ,后者根据https://docs.searxng.org/dev/search\_api.html规范接受一个时间范围参数( daymonthyear )。

返回的是对象数组:

[ { "url": "https://github.com/searxng/searxng", "summary": "You can start SearXNG using make run in the terminal or by pressing Ctrl+Shift+B" }, { "url": "https://searx.bndkt.io/", "summary": "Powered by searxng - 2025.3.22+5986629c6 — a privacy-respecting, open metasearch engine Source code | Issue tracker | Engine stats | Public instances | Contact instance maintainer" }, { "url": "https://docs.searxng.org/" "summary": "SearXNG is a free internet metasearch engine which aggregates results from up to 243 search services. Users are neither tracked nor profiled. Additionally, SearXNG can be used over Tor …" } { "url": "https://en.wikipedia.org/wiki/SearXNG", "summary": "SearXNG is federated, and as such is hosted by several instances, public and private. Private instances are hosted on a local network, or run on the user's desktop computer itself, and are …" } ]

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

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 访问即可实现元搜索功能。

  1. 基本原理
    1. 安装
      1. 用法

        Related MCP Servers

        • -
          security
          A
          license
          -
          quality
          An MCP server implementation that integrates the Brave Search API, providing both web and local search capabilities.
          Last updated -
          2
          15,870
          47,408
          JavaScript
          MIT License
          • Linux
          • Apple
        • A
          security
          A
          license
          A
          quality
          An MCP server implementation that integrates the SearxNG API, providing web search capabilities.
          Last updated -
          2
          633
          63
          JavaScript
          MIT License
          • Linux
          • Apple
        • -
          security
          A
          license
          -
          quality
          A server based on the MCP protocol that uses the Brave API for web search functionality.
          Last updated -
          6
          Python
          MIT License
          • Apple
          • Linux
        • -
          security
          A
          license
          -
          quality
          MCP server for using various search tools like Tavily API. Planning to support various search tools (i.e. wiki search, searxng, etc)
          Last updated -
          1
          Python
          MIT License
          • Apple
          • Linux

        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/pwilkin/mcp-searxng-public'

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