mcp-server-quickstart

mcp-server-quickstart

0

This project is an MCP server designed to retrieve weather information in the US using the NWS API. It allows users to get accurate forecasts by specifying geographic coordinates but supports only US regions.

mcp-server-quickstart

Zenn記事「MCPサーバー自作入門」の実装例です。

概要

National Weather Service (NWS) APIを使用して、米国の気象情報を取得するMCPサーバーです。

機能

  • 緯度経度を指定して天気予報を取得
  • 米国内の地域のみサポート

使用方法

  1. インストール
npm install
  1. ビルド
npm run build
  1. Cursorの設定

.cursor/mcp.jsonに以下の設定を追加:

{
    "mcpServers": {
      "weather-forecast": {
        "command": "node",
        "args": [
          "./build/index.js"
        ]
      }
    }
}

ライセンス

ISC