Skip to main content

腾讯云联网搜索API的MCP服务器

Project description

腾讯云联网搜索MCP服务器

这是一个基于Model Context Protocol (MCP)的腾讯云联网搜索API服务器,可以让你在各种支持MCP的应用中使用腾讯云的搜索功能。

功能特性

  • 🚀 基于MCP协议,支持多种MCP客户端
  • 🔍 使用腾讯云联网搜索API进行网络搜索
  • 📝 格式化的搜索结果展示
  • 🛡️ 完善的错误处理和参数验证

安装

使用uv安装(推荐)

uv install tencent-cloud-search-mcp

使用pip安装

pip install tencent-cloud-search-mcp

配置

在使用前,需要设置腾讯云API凭据:

export TENCENTCLOUD_SECRET_ID="your_secret_id"
export TENCENTCLOUD_SECRET_KEY="your_secret_key"

使用方法

作为MCP服务器使用

  1. 在支持MCP的应用中配置此服务器
  2. 使用工具名称 tencent_search 进行搜索

命令行运行

tencent-search-mcp

作为Python模块运行

python -m tencent_cloud_search_mcp.server

API参考

可用工具

tencent_search

使用腾讯云联网搜索API进行搜索

参数:

  • query (string, 必需): 搜索查询关键词
  • limit (integer, 可选): 返回结果数量限制,默认10

返回格式化的搜索结果,包含标题、链接和描述。

故障排除

常见问题

  1. 认证失败

    • 检查 TENCENTCLOUD_SECRET_IDTENCENTCLOUD_SECRET_KEY 环境变量是否正确设置
    • 确认API密钥有足够的权限
  2. 网络连接问题

    • 检查网络连接
    • 确认腾讯云API服务可用
  3. 依赖安装失败

    • 确保使用Python 3.10或更高版本

许可证

MIT License - 详见 LICENSE 文件

更新日志

0.1.0

  • 初始版本发布
  • 支持腾讯云联网搜索API
  • 完整的MCP服务器实现

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

tencent_cloud_search_mcp-0.1.7.tar.gz (63.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tencent_cloud_search_mcp-0.1.7-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file tencent_cloud_search_mcp-0.1.7.tar.gz.

File metadata

  • Download URL: tencent_cloud_search_mcp-0.1.7.tar.gz
  • Upload date:
  • Size: 63.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for tencent_cloud_search_mcp-0.1.7.tar.gz
Algorithm Hash digest
SHA256 3645853c31b8c5ea76c3f041243e1cd23ee9a7018c8b823f98fd3d6df81032ac
MD5 2b70a6b2dee24b0bb2fcbd88dc7d8506
BLAKE2b-256 a38695964e23b2bb6e0f2da9cdb4c5b0870a3ca9d59c6fdd583564a97edf5f09

See more details on using hashes here.

File details

Details for the file tencent_cloud_search_mcp-0.1.7-py3-none-any.whl.

File metadata

File hashes

Hashes for tencent_cloud_search_mcp-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 43609d9c8801b5085c13cea11da2b3da7b9b372f5e36923b2b57c1ce4d6c867a
MD5 7aed7b20020a23b8392dd37442390292
BLAKE2b-256 b506ce29abc8ce66f35cca95e04a1a4d8fbcaeef7d1005f1c046405b8cb613c2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page