A weather forecast MCP Server for any AI agent.
Project description
是什么
Python语言,基于 mcp 库实现的一个 MCP-Server。
有什么能力
预测明天的天气。
怎么用
远程使用 (推荐)
- 如果未安装 uv工具,先执行一键安装脚本安装
# 在 macOS 上安装
# 推荐使用 Homebrew 安装:
brew install uv
# 或者使用官方安装脚本:
curl -LsSf https://astral.sh/uv/install.sh | sh
# 在 Linux 上安装
curl -LsSf https://astral.sh/uv/install.sh | sh
# 在 Windows 上安装
# 使用 Winget:
winget install uv
# 或者使用官方安装脚本(PowerShell):
irm https://astral.sh/uv/install.ps1 | iex
# 安装完成后,验证是否成功:
uv --version
- 添加如下 mcpServers 配置
{
"mcpServers": {
"weather": {
"autoApprove": [],
"disabled": false,
"timeout": 60,
"type": "stdio",
"command": "uvx",
"args": [
"darcycui-mcp"
]
}
}
}
本地使用
- clone项目到本地 path
- 添加如下配置
- 注意 path 替换为你的本地路径
- 注意 路径分隔符,Linux/Mac 使用/分隔符, Windows 使用\分隔符
{
"mcpServers": {
"weather": {
"autoApprove": [],
"disabled": true,
"timeout": 60,
"type": "stdio",
"command": "uv",
"args": [
"--directory",
"path\\src\\darcycui_mcp",
"run",
"weather.py"
]
}
}
}
运行结果
参考文章
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
darcycui_mcp-1.0.5.tar.gz
(8.9 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 darcycui_mcp-1.0.5.tar.gz.
File metadata
- Download URL: darcycui_mcp-1.0.5.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c49eb8cd907ab422adee17ce1be23513cecec7c06e9fcd21bf86b06b432c8bc
|
|
| MD5 |
31f7831212750cbc6cb64c40170c1db2
|
|
| BLAKE2b-256 |
1a94cce7225b50383c10ee2ca4aab9c141fe82fc77126db7631cd2168bd3f814
|
File details
Details for the file darcycui_mcp-1.0.5-py3-none-any.whl.
File metadata
- Download URL: darcycui_mcp-1.0.5-py3-none-any.whl
- Upload date:
- Size: 11.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7a1784c4cd47b422730ecd6007652b340f3366eef79d1f62e03fd48eff7b604
|
|
| MD5 |
45712ffa108df874ea3733e85d110a17
|
|
| BLAKE2b-256 |
b7bf3e9f2984ec590acd07de9492b3ac03f7346fb860154cf41bdb20203bba4a
|