mcp_server_searXNG
基于MCP技术的网络搜索功能服务器,使用SearXNG搜索引擎实现隐私友好的网络搜索功能。
功能特点
此服务器提供以下主要功能:
- 通过多个搜索引擎进行网络搜索
- 支持多种搜索类别(一般、图片、新闻等)
- 自定义搜索引擎选择
- 语言筛选
- 时间范围过滤
- 搜索结果数量控制
可用工具
web_search- 使用SearXNG执行网络搜索- 必需参数:
query(string): 搜索查询内容
- 可选参数:
categories(array): 搜索类别,例如 ['general', 'images', 'news']engines(array): 搜索引擎,例如 ['google', 'bing', 'duckduckgo']language(string): 搜索语言代码,默认为 "zh"max_results(integer): 最大结果数量,默认为 10time_range(string): 时间范围过滤 ('day', 'week', 'month', 'year')
- 必需参数:
安装方法
使用 pip 安装
# 安装
pip install mcp_server_searxng
# 获取最新版本
pip install --upgrade mcp_server_searxng
使用示例
配置为 MCP 服务
在您的 MCP 配置中添加:
"mcpServers": {
"searxng": {
"command": "python",
"args": ["-m", "mcp_server_searxng", "--instance-url=https://your-searxng-instance.com"]
}
}
调用示例
{
"name": "web_search",
"arguments": {
"query": "气候变化研究",
"categories": ["general"],
"engines": ["google"],
"language": "zh",
"max_results": 15,
"time_range": "month"
}
}
调试
您可以使用 MCP inspector 来调试服务器:
npx @modelcontextprotocol/inspector python -m mcp_server_searxng
实际效果展示
|
基于我自己chat_mcp的测试 |
许可证
mcp_server_searXNG 使用 MIT 许可证。这意味着您可以自由使用、修改和分发此软件,但需遵守 MIT 许可证的条款和条件。详情请参阅项目仓库中的 LICENSE 文件。
Metadata
Release files for mcp-server-searxng 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| mcp_server_searxng-0.2.tar.gz | 7.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mcp_server_searxng-0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.7 kB
Release files / mcp_server_searxng-0.2.tar.gz
| Download URL | mcp_server_searxng-0.2.tar.gz |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0ffbc9cf0c6f17a437fe20df01a5539afe6c2fd5c326bfdaec16c51a0336a1aa
|
|
BLAKE2b-256 checksum How to use checksums |
f4e4e153043ad8c1fe1ec525de1cf3ed21e66f03bffab8a85e8af11283d7c3e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.8
|
Release files / mcp_server_searxng-0.2-py3-none-any.whl
| Download URL | mcp_server_searxng-0.2-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0a5e2076a18830222d12935ba178e0aacb766a8d50a28fb859db977bde7ebb4e
|
|
BLAKE2b-256 checksum How to use checksums |
f77696bae35189de5d0de9261e4352de83a848c411c774d538194e6d845861b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.8
|
Security for mcp-server-searxng 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.