Allows manual installation of the MCP server by cloning the repository from GitHub, with instructions for building and running the server.
Supports installation and management of the MCP server dependencies through npm commands for building, testing, and running the server.
Provides weather icons in SVG format as part of the weather forecast data structure.
References the primary_area.xml resource from weather.tsukumijima.net for additional city IDs beyond those listed in the common city table.
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:
Manual Installation
- Clone this repository:
- Install dependencies:
- Build the project:
Usage
Development Mode
Run the server in development mode:
Production Mode
Build and run the server:
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:
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:
Common City IDs
City | ID | Prefecture |
---|---|---|
Tokyo | 130010 | Tokyo |
Osaka | 270000 | Osaka |
Kyoto | 260010 | Kyoto |
Fukuoka | 400010 | Fukuoka |
Sapporo | 016010 | Hokkaido |
Nagoya | 230010 | Aichi |
Yokohama | 140010 | Kanagawa |
Kobe | 280010 | Hyogo |
Kawasaki | 140020 | Kanagawa |
Hiroshima | 340010 | Hiroshima |
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
Building
Testing
Linting
Formatting
License
MIT License - see LICENSE file for details.
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
Acknowledgments
- weather.tsukumijima.net for providing the weather API
- Japan Meteorological Agency for the weather data
- FastMCP for the MCP framework
Support
If you encounter any issues or have questions, please:
- Check the weather.tsukumijima.net documentation
- Review the available city IDs
- Ensure proper rate limiting
- Open an issue in this repository
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.
- Features
- Installation
- Usage
- Available Tools
- Common City IDs
- Weather Data Structure
- API Source
- Rate Limiting
- Error Handling
- Development
- License
- Contributing
- Acknowledgments
- Support
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityModel 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 -41PythonMIT License
- AsecurityFlicenseAqualityMCP 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 -23Python
- AsecurityAlicenseAqualityA simple service using Model Context Protocol (MCP) to provide weather information for multiple cities including Fukuoka, Tokyo, Osaka, Moscow, and New York.Last updated -125JavaScriptMIT License
- TypeScriptMIT License