为光伏、风电、农业等场景获取分钟级短期预报到长期气候趋势的气象数据。
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add xmo-weather --env XMO_APIKEY='<XMO_APIKEY>' -- npx -y xmo-weather-mcp~/.codex/config.toml
[mcp_servers.xmo-weather]
command = "npx"
args = ["-y", "xmo-weather-mcp"]
env = { XMO_APIKEY = "<XMO_APIKEY>" }
# codex mcp add xmo-weather --env XMO_APIKEY='<XMO_APIKEY>' -- npx -y xmo-weather-mcp~/.cursor/mcp.json
{
"mcpServers": {
"xmo-weather": {
"command": "npx",
"args": [
"-y",
"xmo-weather-mcp"
],
"env": {
"XMO_APIKEY": "<XMO_APIKEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"xmo-weather": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"xmo-weather-mcp"
],
"env": {
"XMO_APIKEY": "<XMO_APIKEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"xmo-weather": {
"command": "npx",
"args": [
"-y",
"xmo-weather-mcp"
],
"env": {
"XMO_APIKEY": "<XMO_APIKEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"xmo-weather": {
"command": "npx",
"args": [
"-y",
"xmo-weather-mcp"
],
"env": {
"XMO_APIKEY": "<XMO_APIKEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"xmo-weather": {
"command": "npx",
"args": [
"-y",
"xmo-weather-mcp"
],
"env": {
"XMO_APIKEY": "<XMO_APIKEY>"
}
}
}
}需要的环境变量
XMO_APIKEY
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。