SearXNG Model Context Protocol Server
SearXNG 模型上下文协议服务器
用于将语言模型与 SearXNG 搜索引擎连接起来的模型上下文协议 (MCP) 服务器。
描述
该服务器使语言模型能够使用模型上下文协议标准通过 SearXNG 执行网页搜索。它为语言模型提供了一个简洁的接口,用于向 SearXNG 发送搜索查询并接收格式化的结果。
Related MCP server: OneSearch 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要求
Node.js 16+
正在运行的 SearXNG 实例(默认位于http://localhost:8888 )
用法
# 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.jsDocker
该项目包含一个 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)
执照
麻省理工学院
This server cannot be deployed
Maintenance
Related MCP Connectors
Free web search for AI agents. No API key required. Hosted MCP in active development.
MCP server for Firecrawl — web search, scraping, and biomedical/arXiv paper search.
MCP server for Google search results via SERP API
Related MCP Servers
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables LLMs to perform web searches using Google's Custom Search API through a standardized interface.147MIT
- AlicenseAqualityCmaintenanceA Model Context Protocol server that enables web search, scraping, crawling, and content extraction through multiple engines including SearXNG, Firecrawl, and Tavily.4325 npm144MIT
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables AI assistants to perform web searches using SearXNG, a privacy-respecting metasearch engine.143MIT
- FlicenseCqualityCmaintenanceA Model Context Protocol server that enables LLMs to perform Google searches via the Serper API, allowing models to retrieve current information from the web.1339-