SearXNG 模型上下文协议服务器
用于将语言模型与 SearXNG 搜索引擎连接起来的模型上下文协议 (MCP) 服务器。
描述
该服务器使语言模型能够使用模型上下文协议标准通过 SearXNG 执行网页搜索。它为语言模型提供了一个简洁的接口,用于向 SearXNG 发送搜索查询并接收格式化的结果。
安装
要求
Node.js 16+
正在运行的 SearXNG 实例(默认位于http://localhost:8888 )
用法
该服务器将在 stdio 上运行,使其适合与 MCP 兼容语言模型集成。
配置
可以使用环境变量来配置服务器:
多变的 | 描述 | 默认 |
SEARXNG_协议 | 使用的协议(http/https) | http |
SEARXNG_HOST | SearXNG 主机 | 本地主机 |
SEARXNG_PORT | SearXNG 端口 | 8888 |
缓存生存时间 | 缓存生存时间(以毫秒为单位) | 600000(10分钟) |
最大缓存大小 | 最大缓存查询数 | 100 |
例子:
Docker
该项目包含一个 Dockerfile,可轻松部署:
搜索参数
搜索功能支持以下参数:
query
(必需):搜索查询字符串categories
:以逗号分隔的搜索类别列表pageno
:搜索页码(默认值:1)time_range
:结果的时间范围(“日”、“周”、“月”、“年”)raw_json
:返回原始 JSON 响应而不是格式化文本(默认值:false)
执照
麻省理工学院
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
一种服务器,使语言模型能够使用模型上下文协议标准通过 SearXNG 执行网络搜索。
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol server that enables web search, scraping, crawling, and content extraction through multiple engines including SearXNG, Firecrawl, and Tavily.Last updated -42857MIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that enables semantic search capabilities by providing tools to manage Qdrant vector database collections, process and embed documents using various embedding services, and perform semantic searches across vector embeddings.Last updated -417MIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that enables AI assistants to perform web searches using SearXNG, a privacy-respecting metasearch engine.Last updated -122MIT License
- AsecurityFlicenseAqualityA Model Context Protocol server that enables LLMs to perform Google searches via the Serper API, allowing models to retrieve current information from the web.Last updated -1315