Skip to main content
Glama

SearXNG MCP Server

by pwilkin

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 …" } ]
Install Server
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

        • A
          security
          A
          license
          A
          quality
          An MCP server for connecting agentic systems to search systems via searXNG.
          Last updated -
          1
          43
          Python
          MIT License
        • A
          security
          A
          license
          A
          quality
          An MCP server implementation that integrates the SearxNG API, providing web search capabilities.
          Last updated -
          2
          566
          107
          JavaScript
          MIT License
          • Linux
          • Apple
        • -
          security
          A
          license
          -
          quality
          A TypeScript-based MCP server for SearXNG that allows users to create and summarize text notes using simple URIs and metadata, facilitating natural language interaction with stored content.
          Last updated -
          1
          Python
          MIT License
          • Apple
        • -
          security
          A
          license
          -
          quality
          The Search MCP Server enables seamless integration of network and local search capabilities in tools like Claude Desktop and Cursor, utilizing the Brave Search API for high-concurrency and asynchronous requests.
          Last updated -
          1
          52
          Python
          MIT License
          • 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