feat: add mcp-servers/**

This commit is contained in:
Sun-ZhenXing
2025-10-23 09:21:44 +08:00
parent f603ed5db9
commit 5c3fc0f844
94 changed files with 2211 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
# MCP OpenWeather Server Configuration
# ===================================
# MCP Service
MCP_OPENWEATHER_VERSION=latest
MCP_OPENWEATHER_PORT_OVERRIDE=8000
# OpenWeather API Key (Required)
# Get your API key from: https://openweathermap.org/api
OPENWEATHER_API_KEY=
# Timezone
TZ=UTC

View File

@@ -0,0 +1,25 @@
# OpenWeather MCP Server
OpenWeather MCP Server provides weather data and meteorological information through the Model Context Protocol.
## Features
- 🌤️ **Current Weather** - Get current weather data
- 📋 **Weather Forecast** - Get weather forecasts
- 🌡️ **Temperature Data** - Access temperature information
- 🌍 **Location-based** - Query weather by location
## Environment Variables
| Variable | Default | Description |
| ------------------------------- | -------- | ------------------------------ |
| `MCP_OPENWEATHER_VERSION` | `latest` | MCP OpenWeather image version |
| `MCP_OPENWEATHER_PORT_OVERRIDE` | `8000` | MCP service port |
| `OPENWEATHER_API_KEY` | - | OpenWeather API key (required) |
| `TZ` | `UTC` | Timezone |
## Getting Started
1. Sign up at [OpenWeatherMap](https://openweathermap.org/api) to get your API key
2. Set the `OPENWEATHER_API_KEY` in your `.env` file
3. Run `docker compose up -d`

View File

@@ -0,0 +1,25 @@
# OpenWeather MCP 服务器
OpenWeather MCP 服务器通过 Model Context Protocol 提供气象数据和气象信息。
## 功能特性
- 🌤️ **当前天气** - 获取当前天气数据
- 📋 **天气预报** - 获取天气预报
- 🌡️ **温度数据** - 访问温度信息
- 🌍 **基于位置** - 按位置查询天气
## 环境变量
| 变量 | 默认值 | 说明 |
| ------------------------------- | -------- | ---------------------------- |
| `MCP_OPENWEATHER_VERSION` | `latest` | MCP OpenWeather 镜像版本 |
| `MCP_OPENWEATHER_PORT_OVERRIDE` | `8000` | MCP 服务端口 |
| `OPENWEATHER_API_KEY` | - | OpenWeather API 密钥(必需) |
| `TZ` | `UTC` | 时区 |
## 快速开始
1. 在 [OpenWeatherMap](https://openweathermap.org/api) 注册获取 API 密钥
2.`.env` 文件中设置 `OPENWEATHER_API_KEY`
3. 运行 `docker compose up -d`

View File

@@ -0,0 +1,32 @@
x-default: &default
restart: unless-stopped
logging:
driver: json-file
options:
max-size: 100m
max-file: "3"
services:
mcp-openweather:
<<: *default
image: mcp/openweather:${MCP_OPENWEATHER_VERSION:-latest}
environment:
- OPENWEATHER_API_KEY=${OPENWEATHER_API_KEY}
- MCP_HOST=0.0.0.0
- TZ=${TZ:-UTC}
ports:
- "${MCP_OPENWEATHER_PORT_OVERRIDE:-8000}:8000"
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
deploy:
resources:
limits:
cpus: '1.00'
memory: 512M
reservations:
cpus: '0.25'
memory: 128M