Skip to main content
Glama

Japanese Weather MCP Server

Japanese Weather MCP Server

A Model Context Protocol (MCP) server that provides access to Japanese weather forecasts using the weather.tsukumijima.net API.

Features

  • 🌤️ Get weather forecasts for Japanese cities
  • 📍 Support for major Japanese cities (Tokyo, Osaka, Kyoto, etc.)
  • 📊 Detailed weather information including temperature, precipitation chance, and wind conditions
  • 🏢 Data sourced from Japan Meteorological Agency
  • 🔧 Easy-to-use MCP tools for weather queries

Installation

Installing via Smithery

To install japanese-weather-mcp for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @kongyo2/japanese-weather-mcp --client claude

Manual Installation

  1. Clone this repository:
git clone https://github.com/kongyo2/Japanese-Weather-MCP cd weather-mcp-server
  1. Install dependencies:
npm install
  1. Build the project:
npm run build

Usage

Development Mode

Run the server in development mode:

npm run dev

Production Mode

Build and run the server:

npm run build npm start

Available Tools

1. get_weather_forecast

Get weather forecast for any Japanese city using its city ID.

Parameters:

  • cityId (string): City ID for the Japanese city (e.g., '130010' for Tokyo)

Example:

{ "cityId": "130010" }

2. get_available_city_ids

Get a list of available city IDs for common Japanese cities.

Parameters: None

Returns: List of available city IDs with their corresponding names.

3. get_weather_by_city_name

Get weather forecast for common Japanese cities by name.

Parameters:

  • cityName (enum): Name of the Japanese city
    • Options: TOKYO, OSAKA, KYOTO, FUKUOKA, SAPPORO, NAGOYA, YOKOHAMA, KOBE, KAWASAKI, HIROSHIMA

Example:

{ "cityName": "TOKYO" }

Common City IDs

CityIDPrefecture
Tokyo130010Tokyo
Osaka270000Osaka
Kyoto260010Kyoto
Fukuoka400010Fukuoka
Sapporo016010Hokkaido
Nagoya230010Aichi
Yokohama140010Kanagawa
Kobe280010Hyogo
Kawasaki140020Kanagawa
Hiroshima340010Hiroshima

For more city IDs, visit: https://weather.tsukumijima.net/primary_area.xml

Weather Data Structure

The weather forecast includes:

  • Basic Information:
    • Publication time and office
    • Location details (prefecture, city, district)
  • Forecast Data (3 days):
    • Weather condition (telop)
    • Temperature (max/min in Celsius and Fahrenheit)
    • Precipitation chance (6-hour intervals)
    • Detailed weather information
    • Wind conditions
    • Wave height (for coastal areas)
  • Additional Information:
    • Weather icons (SVG format)
    • Links to official JMA weather pages

API Source

This MCP server uses the weather.tsukumijima.net API, which provides:

  • Livedoor Weather API compatible format
  • Data from Japan Meteorological Agency
  • No API key required
  • Free to use

Rate Limiting

Please be respectful of the API:

  • Use a custom User-Agent header
  • Avoid rapid successive requests
  • Maintain at least 0.5-second intervals between requests

Error Handling

The server includes comprehensive error handling:

  • Network connectivity issues
  • Invalid city IDs
  • API service unavailability
  • Data parsing errors

Development

Project Structure

weather-mcp-server/ ├── src/ │ ├── server.ts # Main MCP server implementation │ └── weather-api.ts # Weather API client ├── package.json ├── tsconfig.json └── README.md

Building

npm run build

Testing

npm test

Linting

npm run lint

Formatting

npm run format

License

MIT License - see LICENSE file for details.

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

Acknowledgments

Support

If you encounter any issues or have questions, please:

  1. Check the weather.tsukumijima.net documentation
  2. Review the available city IDs
  3. Ensure proper rate limiting
  4. Open an issue in this repository
Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

A Model Context Protocol (MCP) server that provides access to Japanese weather forecasts using the weather.tsukumijima.net API.

  1. Features
    1. Installation
      1. Installing via Smithery
      2. Manual Installation
    2. Usage
      1. Development Mode
      2. Production Mode
    3. Available Tools
      1. 1. get_weather_forecast
      2. 2. get_available_city_ids
      3. 3. get_weather_by_city_name
    4. Common City IDs
      1. Weather Data Structure
        1. API Source
          1. Rate Limiting
            1. Error Handling
              1. Development
                1. Project Structure
                2. Building
                3. Testing
                4. Linting
                5. Formatting
              2. License
                1. Contributing
                  1. Acknowledgments
                    1. Support

                      Related MCP Servers

                      • A
                        security
                        A
                        license
                        A
                        quality
                        Model Context Protocol (MCP) server that provides weather forecast, warnings, water level associated with flood, and earthquake reports from Malaysia Government's Open API.
                        Last updated -
                        4
                        1
                        Python
                        MIT License
                      • A
                        security
                        F
                        license
                        A
                        quality
                        MCP server that provides Korean weather information using grid coordinates and the Korea Meteorological Administration API, allowing users to query current weather conditions and forecasts for specific locations in Korea.
                        Last updated -
                        2
                        3
                        Python
                        • Apple
                        • Linux
                      • A
                        security
                        A
                        license
                        A
                        quality
                        A simple service using Model Context Protocol (MCP) to provide weather information for multiple cities including Fukuoka, Tokyo, Osaka, Moscow, and New York.
                        Last updated -
                        1
                        2
                        5
                        JavaScript
                        MIT License

                      View all related MCP servers

                      MCP directory API

                      We provide all the information about MCP servers via our MCP API.

                      curl -X GET 'https://glama.ai/api/mcp/v1/servers/kongyo2/Japanese-Weather-MCP'

                      If you have feedback or need assistance with the MCP directory API, please join our Discord server