airvisual1

airvisual1

3.5

The `airvisual1` MCP server provides tools to access real-time air quality and weather data.

The airvisual1 MCP (Model Context Protocol) server offers a comprehensive suite of tools for accessing public data related to air quality, weather information, and health recommendations. It provides live data synchronized with the official site, ensuring users receive the most up-to-date information upon request. The server is designed to facilitate real-time data access, comprehensive coverage of available data, and dynamic querying capabilities, allowing users to request data on demand without the need for local caching or storage.

Features

  • Real-Time Data Access: Fetch real-time air pollution data, weather information, and health recommendations.
  • Comprehensive Coverage: Access almost everything that is publicly available on the official site.
  • Dynamic Querying: Request data on demand without the need for local caching or storage.

MCP Tools

  • v2/auto-complete: Find countries, cities, and places by name.
  • places/v2/list: List places with brief information.
  • places/v2/list-by-map: List places in a specified area by providing boundary coordinates.
  • stations/v2/get-information: Fetch detailed information from a specific station using its ID.
  • stations/v2/get-measurements: Retrieve measurement data from a specific station using its ID.

Usage with Different Platforms

python

python
import requests

url = 'https://api.airvisual1.com/v2/auto-complete'
params = {
    'query': 'Los Angeles',
    'language': 'en',
    'timezone': 'PST',
    'aqi': 'us',
    'units': 'metric'
}
response = requests.get(url, params=params)
data = response.json()
print(data)