Air Pollution
This project is an MCP server based on Node.js and Express.js, used to interact with the OpenWeather API to obtain air pollution data based on latitude and longitude or city and country, and implement secure API key management.
rating : 2 points
downloads : 13
What is the Air-Pollution MCP Server?
This is a server application specifically designed to query global air pollution data. As an intermediate service, it securely connects your application to the OpenWeather API and provides two query methods: obtaining real-time air quality data through latitude and longitude coordinates or city + country names.How to use the Air-Pollution MCP Server?
Simply send an HTTP request containing location information to the server to get a structured air quality data response. It supports RESTful API calls and returns data in JSON format.Use cases
Suitable for various applications that need to integrate air quality data, such as environmental monitoring platforms, health apps, smart city systems, travel planning tools, and other scenarios that require real-time air pollution data.Main features
Latitude and longitude queryObtain the air quality index (AQI) and pollutant concentration data for a specified location through geographical coordinates
City queryQuery air quality using the city name and country code, which is automatically parsed into geographical coordinates
Secure API key managementUse dotenv to protect your OpenWeather API key and avoid direct exposure on the front end
Comprehensive error handlingProvide friendly error prompts, including cases of invalid locations, API restrictions, etc.
Advantages and limitations
Advantages
Simplifies the integration process of the OpenWeather API
Provides two location query methods for more flexible use
Protects sensitive API keys and improves security
Lightweight intermediate layer with fast response speed
Limitations
Depends on the data update frequency of the OpenWeather API
The free version has API call limits
Requires self-deployment of the server environment
How to use
Get an API key
First, you need to register an OpenWeather account and obtain an API key
Configure environment variables
Create a.env file on the server and add your API key: OPENWEATHER_API_KEY=your_api_key_here
Start the server
Install dependencies and then run the server
Initiate a query request
Obtain air quality data through an HTTP GET request
Usage examples
Query air quality in TokyoObtain real-time air quality data for Tokyo, Japan
Query by coordinatesQuery air quality at a specific location using latitude and longitude
Frequently Asked Questions
Why do we need this intermediate service instead of directly calling the OpenWeather API?
What is the data update frequency?
Does it support historical data query?
What should I do if I encounter the 'Invalid API key' error?
Related resources
OpenWeather Air Pollution API documentation
Official API documentation containing complete parameter and response format descriptions
GitHub repository
Project source code and latest updates
Node.js official website
Download and documentation for the Node.js runtime environment
Featured MCP Services

Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
827
4.3 points

Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
1.7K
5 points

Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
85
4.3 points

Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
139
4.5 points

Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
6.7K
4.5 points

Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
562
5 points

Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
281
4.5 points

Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
751
4.8 points