SearXNG Model Context Protocol Server

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.

Integrations

  • Provides containerization support for easy deployment of the MCP server with configurable environment variables for connecting to SearXNG instances.

  • Enables language models to perform web searches through SearXNG, allowing search queries with customizable parameters like categories, page numbers, time ranges, and result formatting.

SearXNG 模型上下文协议服务器

用于将语言模型与 SearXNG 搜索引擎连接起来的模型上下文协议 (MCP) 服务器。

描述

该服务器使语言模型能够使用模型上下文协议标准通过 SearXNG 执行网页搜索。它为语言模型提供了一个简洁的接口,用于向 SearXNG 发送搜索查询并接收格式化的结果。

安装

# Clone the repository git clone https://github.com/aeon-seraph/searxng-mcp.git cd searxng-mcp # Install dependencies npm install # Build the project npm run build

要求

用法

# Run the server node build/index.js

该服务器将在 stdio 上运行,使其适合与 MCP 兼容语言模型集成。

配置

可以使用环境变量来配置服务器:

多变的描述默认
SEARXNG_协议使用的协议(http/https)http
SEARXNG_HOSTSearXNG 主机本地主机
SEARXNG_PORTSearXNG 端口8888
缓存生存时间缓存生存时间(以毫秒为单位)600000(10分钟)
最大缓存大小最大缓存查询数100

例子:

SEARXNG_HOST=mysearx.example.com SEARXNG_PORT=443 SEARXNG_PROTOCOL=https node build/index.js

Docker

该项目包含一个 Dockerfile,可轻松部署:

# Build the Docker image docker build -t searxng-mcp . # Run the container docker run -e SEARXNG_HOST=mysearx.example.com -e SEARXNG_PROTOCOL=https searxng-mcp

搜索参数

搜索功能支持以下参数:

  • query (必需):搜索查询字符串
  • categories :以逗号分隔的搜索类别列表
  • pageno :搜索页码(默认值:1)
  • time_range :结果的时间范围(“日”、“周”、“月”、“年”)
  • raw_json :返回原始 JSON 响应而不是格式化文本(默认值:false)

执照

麻省理工学院

-
security - not tested
A
license - permissive license
-
quality - not tested

一种服务器,使语言模型能够使用模型上下文协议标准通过 SearXNG 执行网络搜索。

  1. Description
    1. Installation
      1. Requirements
        1. Usage
          1. Configuration
            1. Docker
              1. Search Parameters
                1. License
                  ID: ddmcps77gn