open-env-sensors
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
@shadojus/open-env-sensors
Zero-dependency environmental telemetry normalizer, node:sqlite spatial engine, OpenAPI 3.1 REST server, CLI, MCP (2024-11-05 stdio) server, and Python stdlib package normalizing:
Air Quality (
air) —PM2.5,PM10,NO2,O3(µg/m³) + composite US EPA 2024 AQI (0–500), category, and dominant pollutant.River & Flood Water Levels (
river) — water levellevelCm(cm) and dischargedischargeM3s(m³/s, converted from USGSft/ft³/sand WSV PegelonlineW/Q).Ambient Gamma Radiation (
radiation) — 1-hour ambient gamma dose ratedoseUsvH(µSv/h) from BfS ODL-Info.
Data Sources & Attribution
Source ID | Domain | Upstream Endpoint | License |
|
|
| ODbL / Open Data |
|
|
| DL-DE/CC BY |
|
|
| DL-DE->Zero-2.0 |
|
|
| Public Domain |
|
|
| DL-DE->BY-2.0 |
Related MCP server: mcp-opensensemap
Quickstart
Node.js ESM (>=22.5.0, zero dependencies)
import { createEnvSensors, sensorsNear, getSensor, computeAqi } from '@shadojus/open-env-sensors';
const aqi = computeAqi(12.4, 28.0, 19.0, 44.0);
// -> { aqi: 57, category: 'Moderate', dominant: 'pm25', subIndices: { pm25: 57, pm10: 26, no2: 10, o3: 20 } }
const nearBerlin = await sensorsNear(52.52, 13.405, { radiusKm: 50, limit: 10 });
const store = createEnvSensors({ dbPath: ':memory:' });
const rhine = store.getSensor('pegelonline-wsv:koeln');CLI
npx @shadojus/open-env-sensors near 52.52 13.405 --domain air
npx @shadojus/open-env-sensors aqi --pm25 15.2 --pm10 34.0
npx @shadojus/open-env-sensors serve --port 8787
npx @shadojus/open-env-sensors --mcpREST API (src/server.mjs)
GET /healthGET /openapi.json(OpenAPI 3.1.0)GET /v1/sourcesGET /v1/sensors?domain=air&country=DE&limit=50GET /v1/sensors/near?lat=52.52&lng=13.405&radiusKm=50GET /v1/air/near?lat=52.52&lng=13.405&radiusKm=50GET /v1/rivers/near?lat=50.937&lng=6.963&radiusKm=50GET /v1/radiation/near?lat=52.52&lng=13.405&radiusKm=50GET /v1/sensors/:id
Includes CORS, SHA-256 ETag (304 Not Modified), and IPv6 /64-aware rate limiting (429 Too Many Requests).
MCP Server (2024-11-05 JSON-RPC 2.0 over stdio)
Tools exposed by open-env-sensors --mcp:
find_env_sensors_nearquery_air_qualityquery_river_levelsquery_ambient_radiationlist_env_sources
Python Package (shadojus-env-sensors, Python >=3.9 stdlib)
from shadojus_env_sensors import compute_aqi, sensors_near, EnvSensorsClient
print(compute_aqi(pm25=14.0, pm10=30.0))
print(sensors_near(52.52, 13.405, domain="air", radius_km=50))License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Public hazard, water, weather and EPA data with source, age and licence on every reading.
Weather, air quality and nearest live sensors anywhere, each with a signed receipt. Free, no key.
Read-only AI environmental data, meters, search, methodology, sources. No authentication required.
Access and analyze real-time geographic sensor data across various global locations. Identify specific data sources and monitor environmental or behavioral attributes through structured queries. Gain instant visibility into distributed physical assets and their performance metrics.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceProvides natural language access to environmental data including air quality measurements, greenhouse gas emissions, and facility records. It enables users to perform geographic searches, trend analysis, and proximity-based queries using data from sources like OpenAQ and Climate TRACE.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to query environmental sensor data from the openSenseMap citizen-science network, allowing access to air quality, weather, and other sensor measurements through natural language.74 npmMIT
- AlicenseAqualityCmaintenanceEnables querying USGS water data including real-time and historical streamflow, gage height, and water temperature from USGS gauges across the United States.3MIT
- AlicenseNot gradedqualityCmaintenanceEnables querying global air-quality data from the OpenAQ API, including nearest-station readings, station discovery, latest pollutant values, and historical time series for sensors.74 npmMIT