加法计算天气查询
MCP 服务配置
复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用
{
"mcpServers": {
"liweather": {
"args": [
"liweather"
],
"command": "uvx"
}
}
}
可用工具 (2 个)
该服务在 MCP 协议中暴露的工具,AI 可按需调用
add 2 个参数 需填 2 项
Add two numbers
必填参数:a、b
get_city_weather 1 个参数
获取城市天气信息
该工具无需必填参数,直接调用即可
服务介绍
计算器,天气查询 MCP
基于 Model Context Protocol(MCP)的数值计算器,提供了简单的加运算,和简单的天气查询
工具列表
| name | description |
|---|---|
| add | 执行浮点数加法运算 |
| get_city_weather | 获取城市天气信息 |
inspector
npx @modelcontextprotocol/inspector uvx liweather
MCP 服务器配置
{
"mcpServers": {
"liweather": {
"command": "uvx",
"args": [
"liweather"
]
}
}
}