
chenchen0611/mcp-python-demo
Developer toolsThis page was translated automatically. Technical details may differ from the original. View the original
这是一个基于 MCP (Model Context Protocol) 的项目,集成了智谱 AI 和腾讯地图 API,提供了天气查询、地理编码和网络搜索等功能。
Overview
这是一个基于 MCP (Model Context Protocol) 的项目,集成了智谱 AI 和腾讯地图 API,提供了天气查询、地理编码和网络搜索等功能。项目包含命令行界面和 Web 界面两种交互方式。 - 🤖 智谱 AI 驱动的对话系统 - 🌤️ 腾讯地图天气查询 - 🗺️ 地理编码查询 - 🔍 智能网络搜索 - 💻 命令行和 Web 界面双重支持 - 🌐 支持外网访问 访问以下地址之一: - 本地访问:http://localhost:8501 - 局域网访问:http://[your-local-ip]:8501 - 外网访问:http://[your-public-ip]:8501 - 直接输入server.py,点击连接 - 新建一个terminal,运行下方命令然后在web页面输入http://127.0.0.1:8000 1. 在 server.py 中使用 @mcp.tool() 装饰器添加新工具: - 所有敏感信息和配置都应该放在 .env 文件中 - 不要将 .env 文件提交到版本控制系统 - 参考 .env.example 进行配置 1. - 检查服务器地址是否正确 - 确认所有环境变量都已正确配置 - 确保服务器正在运行且端口可访问 2. - 验证 API 密钥是否有效 - 检查网络连接 - 确认 API 调用频率是否超限
Install
This server does not publish a one-line install command.
Open the repository installation guide New to MCP? Start with the mcpskill.org guide →