Skip to main content

腾讯云联网搜索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_ID 和 TENCENTCLOUD_SECRET_KEY 环境变量是否正确设置
    • 确认API密钥有足够的权限
  2. 网络连接问题

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

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

许可证

MIT License - 详见 LICENSE 文件

更新日志

0.1.0

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

Metadata

Release files for tencent-cloud-search-mcp 0.1.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tencent-cloud-search-mcp 0.1.9
File Size Uploaded Provenance
tencent_cloud_search_mcp-0.1.9.tar.gz 63.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for tencent-cloud-search-mcp 0.1.9
File Interpreter ABI Platform
tencent_cloud_search_mcp-0.1.9-py3-none-any.whl Python 3 none any Details

Total release size: 71.5 kB

Release files / tencent_cloud_search_mcp-0.1.9.tar.gz

Download URL tencent_cloud_search_mcp-0.1.9.tar.gz
Size 63.5 kB
Tags Source
SHA-256 checksum
How to use checksums
968836fa168ade6f3dd34fa395b1ec91b38bfcc59e325f4fad3edb032e08a237
BLAKE2b-256 checksum
How to use checksums
51780b1a280089910f215c451e8f4c960b01ba8f8ef8163b1ea1b80a9a243185
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.9

Release files / tencent_cloud_search_mcp-0.1.9-py3-none-any.whl

Download URL tencent_cloud_search_mcp-0.1.9-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a00284b13035977e4062d9dc99d7a8fd014e76195d505391d4c76aed45094b7c
BLAKE2b-256 checksum
How to use checksums
03fb3ba6b3425ede18e61b92224d228a434f67d187ad8028f230523f6549c296
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.9

Security for tencent-cloud-search-mcp 0.1.9

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page