{"$schema":"https://wellknown.network/schemas/agent-record-v1.json","schemaVersion":"1","id":"ag_ff39yuhrdsb8","handle":"xmcp-server-weather","url":"https://wellknown.network/agents/xmcp-server-weather","links":{"self":"https://wellknown.network/agents/xmcp-server-weather/record.json","html":"https://wellknown.network/agents/xmcp-server-weather","markdown":"https://wellknown.network/agents/xmcp-server-weather/record.md","api":"https://wellknown.network/api/v1/agents/xmcp-server-weather","status":"https://wellknown.network/api/v1/agents/xmcp-server-weather/status","claim":"https://wellknown.network/agents/xmcp-server-weather/claim","claimApi":"https://wellknown.network/api/v1/claims","claimDescriptor":"https://wellknown.network/agents/xmcp-server-weather/claim.json","badge":"https://wellknown.network/agents/xmcp-server-weather/badge.svg","openapi":"https://wellknown.network/openapi.json"},"ard":{"identifier":"urn:air::server:xmcp-server-weather","type":"application/mcp-server-card+json"},"kind":"mcp_server","declared":{"name":"xmcp-server-weather","summary":"天气查询MCP服务","description":"# 天气查询MCP服务\n\n这是一个基于 MCP (Model Context Protocol) 的天气查询服务，天气查询的结果是基于[中国气象局-天气预报网](http://weather.cma.cn)的天气信息，可以查询特定地区的当前的天气信息或者7天以内的天气预报信息。\n\n## 快速开始 - 使用UVX配置MCP服务（推荐）\n* 用uvx的方式配置MCP服务是推荐的方式。\n* 因为uvx可以在不同的平台上运行，包括Windows、macOS和Linux。\n```json\n# 给AI模型提供天气查询的MCP服务\n{\n  \"mcpServers\": {\n    \"weather\": {\n      \"command\": \"uvx\",\n      \"args\": [\n        \"xmcp-server-weather\"\n      ],\n      \"env\": {}\n    }\n  }\n}\n```\n### macOS系统的推荐配置\nmac系统如果用uvx启动服务会报错，则可以尝试先安装xmcp-server-weather，再用下面的配置使用MCP服务。\n```json\n# 先安装服务package\npip3 install xmcp-server-weather\n\n# MCP服务的配置\n{\n  \"mcpServers\": {\n    \"weather\": {\n      \"command\": \"xmcp-server-weather\"\n    }\n  }\n}\n```\n### 使用MCP服务\n* 接着，将MCP服务配置给你的AI智能体，让AI可以调用这个MCP来查询天气。\n例如，和智能体说：查询北京的天气。然后，该MCP会自动查询并返回对应的天气信息。\n\n## 本地测试运行MCP服务\n* 本步骤主要是为了 本地测试 天气查询MCP服务。\n### 1、Windows环境的配置：\n```bash\n# 先安装服务\npip install xmcp-server-weather\n\n# 指定日志级别和传输方式（sse方式）\nxmcp-server-weather --log-level=INFO --transport=sse --port=8001\n```\n* 然后，就可以配置本地服务来调试MCP\n```json\n{\n  \"mcpServers\": {\n    \"weather\": {\n      \"url\": \"http://localhost:8001/sse\"\n    }\n  }\n}\n```\n### 2、macOS系统的配置\n```bash\n# 先安装服务（如果已经安装则忽略）\npip3 install  xmcp-server-weather\n\n# （测试用）指定日志级别和传输方式（sse方式）。\n# 下面有显示启动服务说明环境已经安装完毕。\nxmcp-server-weather --log-level=INFO --transport=sse --port=8001\n```\n* 然后，就可以配置本地服务来调试MCP\n```json\n# 默认的stdio模式\n{\n  \"mcpServers\": {\n    \"weather\": {\n      \"command\": \"xmcp-server-weather\"\n    }\n  }\n}\n\n# 或者sse模式（前提是http服务要打开）\n{\n  \"mcpServers\": {\n    \"weather\": {\n      \"url\": \"http://localhost:8001/sse\"\n    }\n  }\n}\n```\n\n## 命令行参数\n\n### 日志级别 (`--log-level`)\n设置服务器的日志输出级别，可选值：\n- `DEBUG`：详细的调试信息，用于开发和问题排查\n- `INFO`：正常运行的信息，显示关键操作\n- `WARNING`：警告信息，可能影响功能但不影响运行\n- `ERROR`：错误信息，功能无法正常执行\n- `CRITICAL`：严重错误，可能导致程序崩溃\n\n**默认值**：`ERROR`\n\n**示例**：\n```bash\nxmcp-server-weather --log-level=DEBUG\n```\n\n### 传输方式 (`--transport`)\n设置服务器与客户端之间的通信协议，可选值：\n- `stdio`：使用标准输入输出进行通信，适用于进程间通信\n- `sse`：使用 Server-Sent Events 进行实时通信，适用于网络环境\n- `streamable-http`：使用可流式的HTTP协议进行通信\n\n**默认值**：`stdio`\n\n**注意**：\n- `stdio` 模式下日志不会输出到控制台，避免干扰通信\n-…","publisher":null,"homepage":null,"repository":null,"version":"0.1.7","license":null,"protocols":["mcp"],"tags":["mcp"],"pricing":null,"endpoints":[{"url":"pypi:xmcp-server-weather","type":"package_pypi","auth":null,"probeable":false}],"skills":null,"tools":null,"extra":null,"attribution":{"kind":"pypi","name":"pypi","summary":"pypi","version":"pypi","description":"pypi"}},"derived":{"capabilities":[{"slug":"data.weather","name":"Weather","confidence":1,"provenance":"derived"}],"categories":["data"],"language":"en"},"observed":{"status":"unknown","statusReason":"Distributed as a package to run locally; no network endpoint to check.","lastOkAt":null,"lastProbedAt":null,"statusComputedAt":null,"reliability30d":null,"latestObservations":[],"tools":null,"package":{"name":"xmcp-server-weather","registry":"pypi","observedAt":"2026-09-10T16:24:21.465Z","publishedAt":"2025-06-20T07:52:32.248785Z","latestVersion":"0.1.7"}},"verification":{"claimed":false,"claimedAt":null,"proofs":[]},"provenance":{"sources":[{"source":"pypi","key":"xmcp-server-weather","url":"https://pypi.org/project/xmcp-server-weather/","firstSeenAt":"2026-09-10T16:23:00.012Z","fetchedAt":"2026-09-10T16:23:00.012Z","normalizedAt":"2026-09-10T16:23:00.012Z"}]},"firstSeenAt":"2026-09-10T16:23:00.012Z","updatedAt":"2026-09-10T16:24:21.465Z"}