
my mcp weather
使用mcp-framework构建的天气查询服务,通过OpenWeather API获取实时天气信息。
Repository Info
About This Server
使用mcp-framework构建的天气查询服务,通过OpenWeather API获取实时天气信息。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
🌦️ my-mcp-weather
mcp-framework를 사용해 만든 날씨 확인용 MCP 서버입니다.
OpenWeather API를 통해 도시의 현재 날씨를 가져옵니다.
📁 프로젝트 구조
my-mcp-weather/
├── src/
│ ├── tools/ # MCP 툴 정의
│ │ └── WeatherTool.ts
│ └── index.ts # 서버 진입점
├── .env # 환경 변수(API 키 등)
├── package.json
└── tsconfig.json
✍️ MCP 툴 예시
import { MCPTool } from "mcp-framework";
import { z } from "zod";
interface WeatherInput {
city: string;
}
class WeatherTool extends MCPTool<WeatherInput> {
name = "weather";
description = "도시 이름을 통해 현재 날씨를 확인합니다.";
schema = {
city: {
type: z.string(),
description: "도시 이름 (예: '서울')",
},
};
async execute(input: WeatherInput) {
// 날씨 API 호출 및 처리 로직
return `지금 ${input.city}의 온도는 20도입니다.`;
}
}
export default WeatherTool;
📚 참고 자료
MCP Framework GitHub
MCP Framework 공식 문서
Quick Start
Clone the repository
git clone https://github.com/moogieon/my-mcp-weatherInstall dependencies
cd my-mcp-weather
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.