Skip to main content
Glama

SearXNG Model Context Protocol Server

by aeon-seraph

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

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

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

  1. 描述
    1. 安装
      1. 要求
        1. 用法
          1. 配置
            1. Docker
              1. 搜索参数
                1. 执照

                  Related MCP Servers

                  • 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 Model Context Protocol server that enables Large Language Models to seamlessly interact with ClickHouse databases, supporting resource listing, schema retrieval, and query execution.
                    Last updated -
                    1
                    Python
                    MIT License
                    • Linux
                    • Apple
                  • -
                    security
                    A
                    license
                    -
                    quality
                    A Model Context Protocol server that enables Large Language Models to search and access IETF RFC documents with pagination support.
                    Last updated -
                    Python
                    MIT License
                  • -
                    security
                    A
                    license
                    -
                    quality
                    "primitive" RAG-like web search model context protocol server that runs locally. ✨ no APIs ✨
                    Last updated -
                    43
                    Python
                    MIT License
                    • Linux
                    • Apple

                  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/aeon-seraph/searxng-mcp'

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