mcp-chenzhi
辰知MCP工具 (Chenzhi MCP Tool)
这是一个基于 MCP 框架的工具服务器,提供了查询天气和计算加法的功能。
功能
- 查询天气: 通过
query_weather工具,输入城市名称获取实时天气信息。 - 计算加法: 通过
add工具,计算两个整数的和。
安装
-
克隆本项目到本地:
git clone https://github.com/chris666-sys/mcp-chenzhi.git cd mcp-chenzhi
-
安装依赖: 建议在虚拟环境中使用 pip 安装项目依赖。
pip install .
或者
pip install -r requirements.txt
(如果项目提供了
requirements.txt文件)
使用
方式一:通过 uvx 运行(推荐)⭐
uvx 是最简单的使用方式,无需手动管理虚拟环境:
# 直接运行(uvx 会自动下载和管理依赖)
uvx mcp-chenzhi
安装 uv 工具:
# macOS/Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
# 或使用 pip
pip install uv
# 或使用 Homebrew (macOS)
brew install uv
方式二:传统安装运行
# 安装
pip install mcp-chenzhi
# 运行
mcp-chenzhi
MCP 客户端配置
Claude Desktop 配置
编辑配置文件 ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"mcp-chenzhi": {
"command": "uvx",
"args": ["mcp-chenzhi"]
}
}
}
Cline/Continue 配置
在项目的 .vscode/settings.json 或 MCP 配置文件中添加:
{
"mcpServers": {
"weather-server": {
"command": "uvx",
"args": ["mcp-chenzhi"],
"env": {}
}
}
}
配置完成后,重启客户端,MCP Agent 就可以连接到此服务器并使用注册的工具。
Metadata
Release files for mcp-chenzhi 0.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| mcp_chenzhi-0.0.9.tar.gz | 4.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mcp_chenzhi-0.0.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.9 kB
Release files / mcp_chenzhi-0.0.9.tar.gz
| Download URL | mcp_chenzhi-0.0.9.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f1b21061c211a34680cbc0746d9a20f3696f8c4cde530c8b1b3e93c17d6c0af3
|
|
BLAKE2b-256 checksum How to use checksums |
204a6a91386525fae265cb5fa0d454e6a6610392b8d8784ebef58c5beac7ba7f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / mcp_chenzhi-0.0.9-py3-none-any.whl
| Download URL | mcp_chenzhi-0.0.9-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
220ca39b852d405eee0aa65a14587963eb4ddab3d1a72d5099b26303a2d30f16
|
|
BLAKE2b-256 checksum How to use checksums |
65fc47c44914aa51c21d9954b436e56f2d8dd5b6e48542a845ccf9071f1816e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Security for mcp-chenzhi 0.0.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.