Air-Pollution

Ashwani00001/Air-Pollution

3.1

If you are the rightful owner of Air-Pollution and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The Air-Pollution project is a Model Context Protocol (MCP) Server designed to interact with the OpenWeather API for fetching air pollution data.

The Air-Pollution MCP Server is developed using Node.js and Express.js, providing a robust backend solution for accessing air pollution data. By leveraging the OpenWeather API, it allows users to retrieve air quality information based on geographical coordinates or city and country names. The server ensures secure management of API keys through the use of dotenv, enhancing security and reliability. It efficiently handles API requests, making it a valuable tool for applications that require real-time air quality data. This server is particularly useful for environmental monitoring applications, research projects, and any platform that needs to integrate air pollution data into its services.

Features

  • Secure API Key Management: Utilizes dotenv for secure handling of API keys.
  • Geographical Data Retrieval: Fetches air pollution data using latitude and longitude.
  • City and Country Data Retrieval: Allows data fetching based on city and country names.
  • Efficient API Request Handling: Optimized for handling multiple requests efficiently.
  • Integration with OpenWeather API: Seamlessly integrates with OpenWeather for reliable data.

Usages

usage with local integration stdio

python
mcp.run(transport='stdio')  # Tools defined via @mcp.tool() decorator

usage with local integration ide plugin

{
  "mcpServers": {
    "air-pollution": {
      "command": "node",
      "args": ["server.js"]
    }
  }
}

usage with remote integration sse

python
mcp.run(transport='sse', host="0.0.0.0", port=8000)  # Specify SSE endpoint

usage with remote integration streamable http

yaml
paths:
  /mcp:
    post:
      x-ms-agentic-protocol: mcp-streamable-1.0  # Copilot Studio integration

usage with platform integration github

{"command": "docker", "args": ["run", "-e", "GITHUB_PERSONAL_ACCESS_TOKEN", "ghcr.io/github/github-mcp-server"]}

usage with platform integration atlassian

{
  "mcpServers": {
    "jira-confluence": {
      "command": "node",
      "args": ["atlassian.js"]
    }
  }
}