MCP 服务器
赋予您的 AI 助手更强大的功能,使其能够更有效地为您提供帮助。该服务器可让它们安全地访问网站并进行搜索,并提供清晰的实时反馈,并在出现问题时提供有用的错误消息。
🛠️ 该服务器提供哪些工具?
该服务器提供了两个强大的工具,帮助AI助手解决现实世界的问题:
🏎️我该如何运行它?
🐋 使用 Docker(推荐)
该服务器在 Docker 容器中运行,以确保安全且简单。以下是入门方法:
- 如果尚未安装 Docker
- 创建一个名为
docker-compose.yml
的文件,内容如下:重要提示:您必须提供
SEARXNG_QUERY_URL
环境变量,指向 SearXNG 实例的搜索 API 端点(通常以/
或/search
结尾)。设置
SSE_HOST
和SSE_PORT
可启用网络模式(服务器发送事件),推荐用于像 LibreChat 这样的多容器设置。如果省略,服务器将使用标准 I/O。 - 运行
docker compose up -d
来启动服务器容器(以及可选的 SearXNG)。
大多数人会将其与以下任一方式一起使用:
- Claude Desktop - 通过 stdio 直接连接(省略
docker-compose.yml
中的SSE_HOST
/SSE_PORT
)。 - LibreChat——通过 SSE 连接网络。
对于 LibreChat,将其添加到您的librechat.yaml
(假设SSE_PORT=8080
):
💻本地运行
- 安装
uv
(需要 Python 3.13+):**注意:**如果您已经安装了
uv
,请使用uv self update
进行更新。 - 创建并激活虚拟环境:
- 从锁文件安装依赖项:
- 设置所需的环境变量:
- 运行服务器:
可用参数:
--sse-host
:SSE 监听地址(例如0.0.0.0
)。启用 SSE 模式。--sse-port
:SSE 监听端口(例如3001
)。启用 SSE 模式。--user-agent
:自定义用户代理字符串(覆盖USER_AGENT
环境变量)。
注意:如果未提供
--sse-host
或--sse-port
SEARXNG_QUERY_URL
且未设置SSE_HOST
/SSE_PORT
环境变量),则服务器默认为stdio
模式。SEARXNG_QUERY_URL 环境变量始终为必需。
🔌 如何连接
您可以通过两种方式连接到服务器:
方法 | 这意味着什么 | 何时使用 |
---|---|---|
网络连接 (SSE) | 服务器在网络端口上监听连接。 | 最适合 LibreChat 或其他网络客户端。 |
直接连接(stdio) | 服务器通过标准输入/输出直接通信。 | 对于本地测试或 Claude Desktop 有用。 |
📚 了解有关 MCP 的更多信息
以下是一些可帮助您入门的资源:
📄 许可证
本项目遵循 GPLv3 许可。请参阅许可证文件以了解更多详情。
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
该服务器使 Claude 等 AI 助手能够安全地运行 Python 代码和访问网站,处理数据以便更好地理解 AI,同时提供有用的错误消息。
Related MCP Servers
- AsecurityAlicenseAqualityA server that enhances AI assistants with the ability to update your JSON Resume by analyzing your coding projects, automatically extracting skills and generating professional descriptions.Last updated -33239TypeScriptThe Unlicense
- -securityAlicense-qualityA modular server implementation for Claude AI assistants with integrated tools, enabling Claude to perform actions and access external resources like file systems, web searches, browser automation, financial data, and document generation.Last updated -66PythonMIT License
- -securityFlicense-qualityA Model Context Protocol server that enables AI assistants like Claude to perform Python development tasks through file operations, code analysis, project management, and safe code execution.Last updated -1Python
- -securityAlicense-qualityA server that enables AI assistants to understand and interact with Unity projects in real-time, providing access to scene hierarchy, project settings, and the ability to execute code directly in the Unity Editor.Last updated -40MIT License