Add your description here
Project description
Smart Search MCP Server
一个集成远程智能搜索 API 的 MCP 服务器,实现关键词网页搜索功能。
特性
- 网页搜索:支持关键词检索、分页、语言和安全等级选项。
- 结构化返回:所有搜索结果以 JSON 格式返回。
- 平台兼容:为 ModelScope MCP 平台优化,支持从源码直接部署。
工具
smart_search
- 功能: 执行网页搜索,支持分页与安全选项。
- 输入参数:
query(string): 搜索关键词count(number, optional): 返回结果数量 (默认 10)offset(number, optional): 分页偏移 (默认 0)setLang(string, optional): 搜索语言 (默认 'en')safeSearch(string, optional): 安全搜索等级 (默认 'Strict')
配置与部署
1. 获取 API 密钥
- 注册一个支持智能搜索的 API 服务。
- 获取并复制你的 API 密钥(格式通常为
endpoint-apikey)。
2. ModelScope 服务配置
在 ModelScope 创建 MCP 服务时,请使用以下配置。这种方式会从你的 GitHub 仓库拉取代码,并直接运行。
{
"mcpServers": {
"mcp-smartsearch": {
"command": "uv",
"args": [
"run",
"src/mcp-smartsearch/server.py"
],
"env": {
"SERVER_KEY": "YOUR_API_KEY_HERE"
}
}
}
}
重要提示:
- 在 ModelScope 的“基础信息”页面,确保“来源地址”填写的是你正确的 GitHub 仓库地址。
- 在“环境变量配置”区域,将
SERVER_KEY的值设置为你自己的 API 密钥。
许可证
本项目基于 MIT License 发布。
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mcp_smartsearch-0.1.0.tar.gz
(3.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_smartsearch-0.1.0.tar.gz.
File metadata
- Download URL: mcp_smartsearch-0.1.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b09866778f676e6eb2340c70a5c71280f1369cccb842f89f6ac55f03d0a7a37e
|
|
| MD5 |
fe513fca9e51d5092059f097d159a425
|
|
| BLAKE2b-256 |
ac06952e8479bd23f268875754a7d0c5010e978a5e3bbdb97088cfff9b3e4811
|
File details
Details for the file mcp_smartsearch-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mcp_smartsearch-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ecbd46adab71b6b74726dcacdc6ed8a383a9376a2ff5411b9c1753fb6686cb58
|
|
| MD5 |
2e163caa0dd827c81ced4327931c547b
|
|
| BLAKE2b-256 |
25f86e13284248657ba94a027005f0ef7ab1f3b3aa2b2a2da5f3a8f0b60ef465
|