Skip to main content
Glama
aeon-seraph

SearXNG Model Context Protocol Server

by aeon-seraph

SearXNG 模型上下文协议服务器

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

描述

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

Related MCP server: Better Qdrant MCP Server

安装

# 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_HOST

SearXNG 主机

本地主机

SEARXNG_PORT

SearXNG 端口

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

Resources

Looking for Admin?

Admins can modify the Dockerfile, update the server description, and track usage metrics. If you are the server author, to access the admin panel.

Latest Blog Posts

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