Air-Pollution
This project is a Model Context Protocol (MCP) Server built using Node.js + Express.js that interacts with the OpenWeather API. It allows users to fetch air pollution data based on latitude & longitude or city & country. The backend ensures secure API key management using dotenv and handles API requests efficiently.
Overview
Air-Pollution is a Model Context Protocol (MCP) Server built using Node.js and Express.js that interacts with the OpenWeather API to provide users with air pollution data based on geographical coordinates or city information.
To use Air-Pollution, send a request to the server with either latitude and longitude or city and country parameters to fetch the relevant air pollution data.
- Fetch air pollution data using geographical coordinates or city names. - Secure API key management using dotenv. - Efficient handling of API requests.
- Monitoring air quality in specific locations.
- Researching the impact of pollution on health.
- Integrating air quality data into environmental applications.
Add to your AI client
Use these steps to connect Air-Pollution in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"air-pollution-ashwani00001": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-air-pollution-ashwani00001"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"air-pollution-ashwani00001": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-air-pollution-ashwani00001"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"air-pollution-ashwani00001": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-air-pollution-ashwani00001"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"air-pollution-ashwani00001": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-air-pollution-ashwani00001"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"air-pollution-ashwani00001": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-air-pollution-ashwani00001"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"air-pollution-ashwani00001": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-air-pollution-ashwani00001"
]
}
}
}FAQ
What data can I retrieve using Air-Pollution?
You can retrieve air pollution data based on latitude & longitude or city & country.
Is the API key management secure?
Yes, the project uses dotenv for secure API key management.
How can I contribute to the project?
You can contribute by submitting issues or pull requests on the GitHub repository.