天气 MCP Server
@HZreal
天气 MCP Server について
概要はまだありません
基本情報
設定
以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。
{
"mcpServers": {
"mcp-weather-server-hzreal": {
"command": "uv",
"args": [
"run",
"weather.py"
]
}
}
}ツール
ツールは検出されませんでした
ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。
概要
What is 天气 MCP Server?
天气 MCP Server 是一个基于 Model Context Protocol 的天气查询服务器,通过 MCP 协议与 AI 客户端(如 Claude for Desktop)集成,提供可调用的天气工具。
How to use 天气 MCP Server?
使用 uv run weather.py 启动服务。如需通过 Claude for Desktop 使用,则在其配置文件中添加对应的 MCP 服务器条目,指定 uv 命令路径和工作目录,然后重启 Claude。
Key features of 天气 MCP Server
- 通过 MCP 协议提供天气相关工具
- 支持 Claude for Desktop 作为客户端
- 使用 Python 编写,通过 uv 运行
- 提供两个可用 MCP 工具(由锤子图标指示)
Use cases of 天气 MCP Server
- 在 Claude for Desktop 中直接查询天气信息
- 作为 MCP 服务示例,学习 MCP 协议集成
- 结合 AI 助手实现天气相关对话与决策
FAQ from 天气 MCP Server
如何配置 Claude for Desktop 以使用本服务?
打开 ~/Library/Application Support/Claude/claude_desktop_config.json,在 mcpServers 中添加名为 weather 的条目,command 设置为 uv 的绝对路径,args 包含工作目录和 run weather.py。
日志文件在哪里?
日志文件夹位于 ~/Library/Logs/Claude,MCP 服务器相关日志文件为 mcp-server-weather.log,通用连接日志为 mcp.log。
运行本服务需要什么环境?
需要安装 Python 和 uv(Python 包管理器),并通过 uv run weather.py 启动。
如何验证服务是否成功运行?
重启 Claude for Desktop 后,如果界面出现锤子图标并显示两个 Available MCP Tools,则表示连接成功;否则查看日志排查错误。
「メディアとデザイン」の他のコンテンツ
yt-dlp-mcp
kevinwattA Model Context Protocol (MCP) server that bridges Video & Audio content with Large Language Models using yt-dlp.
RustChain MCP
ScottcjnMCP server for RustChain blockchain and BoTTube video platform — AI agent tools for earning RTC tokens. Built on createkr's RustChain SDK.
Photoshop MCP Server
loonghaoA Model Context Protocol (MCP) server that interfaces with Adobe Photoshop's Python API. Enables LLMs to execute image editing operations, automate workflows, and manage Photoshop tasks through structured commands and context-aware interactions.
Spotify MCP Server
marcelmaraisLightweight MCP server for Spotify
百度地图 MCP Server
baidu-mapsBaidu Map MCP Server
コメント