my-weather-server-0706
by yangvue
README.md
# my-weather-server-0706
MCP server for querying current weather by city. It uses Open-Meteo geocoding and forecast APIs, and exposes one MCP tool: `get_weather`.
## Tools
### `get_weather`
Get current weather for a city.
Input:
```json
{
"city": "上海"
}
```
Output:
```text
通过 my-weather-server-0706 返回:上海 当前天气是:阴天
定位:上海,上海市,中国
温度:...
体感温度:...
湿度:...
降水:...
云量:...
风速:...
风向:...
更新时间:...
```
## Install
From GitHub:
```bash
npx -y github:yangvue/my-weather-server-0706
```
From npm, once published:
```bash
npx -y open-meteo-mcp-weather-server
```
From this repository:
```bash
npm install
npm start
```
## MCP Configuration
Use this config to run from GitHub:
```json
{
"mcpServers": {
"my-weather-server-0706": {
"command": "npx",
"args": ["-y", "github:yangvue/my-weather-server-0706"]
}
}
}
```
Use this config after the package is published to npm:
```json
{
"mcpServers": {
"my-weather-server-0706": {
"command": "npx",
"args": ["-y", "open-meteo-mcp-weather-server"]
}
}
}
```
Use this config when running from a local checkout:
```json
{
"mcpServers": {
"my-weather-server-0706": {
"command": "node",
"args": ["/absolute/path/to/my-mcp-server/index.js"]
}
}
}
```
## Data Source
- Geocoding: Open-Meteo Geocoding API
- Weather: Open-Meteo Forecast API
No API key is required.
## License
MIT
TDQS
A3.6/5.0
Scored across 1 tool
Disambiguation5/5
Only one tool exists, so there is no possibility of confusing it with another. The purpose is clearly scoped to fetching current weather.
Naming Consistency5/5
The single tool name follows a clear verb_noun pattern (get_weather), and there are no other tools to deviate from this convention.
Tool Count3/5
With just one tool, the server feels thin for a general 'weather' service, as it only covers a single operation. However, it is a borderline case, not extreme.
Completeness3/5
The tool provides current weather, but obvious gaps like forecasts or historical data are missing, making the surface incomplete for a full weather server. Still, the core get-weather operation is present.
Maintenance
ActivityStale
ResponsivenessNo issues