Vinkius
PurpleAir logo
Vinkius
Vinkius runs on Claude Code

How to Use the PurpleAir MCP in Claude Code

Query PurpleAir particulate data directly from Claude Code and pipe real-time pollution metrics into your terminal workflows.

See Vinkius in Action

Works with every AI agent you already use

…and any MCP-compatible client

PurpleAir MCP on Cursor AI Code Editor MCP Client PurpleAir MCP on Claude Desktop App MCP Integration PurpleAir MCP on OpenAI Agents SDK MCP Compatible PurpleAir MCP on Visual Studio Code MCP Extension Client PurpleAir MCP on GitHub Copilot AI Agent MCP Integration PurpleAir MCP on Google Gemini AI MCP Integration PurpleAir MCP on Lovable AI Development MCP Client PurpleAir MCP on Mistral AI Agents MCP Compatible PurpleAir MCP on Amazon AWS Bedrock MCP Support
MCP Servers — Included with Plan
Vinkius runs on Claude Code

Connect PurpleAir MCP to Claude Code

Create your Vinkius account to connect PurpleAir to Claude Code — we handle the hosting, security, and runtime updates so you don't have to. No server setup required.

GDPR Included with Plan

Key Capabilities

Pipe real-time PM2.5 metrics into terminal scripts

Claude Code lets you query global PurpleAir air quality without leaving your shell. Use `get_pm25_sensors` to pull active particulate measurements, then pipe the JSON output directly into standard terminal utilities or Claude Code scripts. Your agent can run queries like `get_sensor_data` to check a specific PurpleAir monitor's current PM2.5 and VOC levels. It outputs clean, parseable text to Claude Code that is ready for automated cron jobs or server monitoring alerts.

Export historical pollution data via Claude Code

Download massive environmental datasets directly to your local machine using Claude Code's terminal interface. Claude Code calls `get_sensor_history_csv` to retrieve time-series logs for specific PurpleAir sensors, saving the output as flat files for quick shell processing. For programmatic analysis, your agent uses `get_sensor_history` to pull structured PurpleAir JSON data. You can specify precise Unix timestamps in Claude Code to isolate wildfire smoke events or seasonal pollution trends.

Query geographic sensor grids using this MCP Server

Find localized PurpleAir monitors using coordinate bounding boxes inside your shell. Claude Code calls `get_sensors_by_bounding_box` to scan specific latitudes and longitudes, returning a list of active PurpleAir hardware and their current PM2.5 readings. This MCP Server lets you target specific hardware using `get_indoor_sensors` or `get_outdoor_sensors` directly inside Claude Code. If you need the closest active monitor, the agent triggers `get_sensors_near_me` using your local coordinates to find active PurpleAir sensors.

Setup guide

Set up PurpleAir MCP in Claude Code

Prerequisites

  • Claude Code CLI installed (npm install -g @anthropic-ai/claude-code)
  • Active Vinkius subscription with a valid endpoint token
  1. 1

    Run the add command

    Open your terminal and run the command shown on the right. Replace [YOUR_TOKEN_HERE] with your endpoint token from cloud.vinkius.com. Use --scope user to make it available across all projects.

  2. 2

    Verify the connection

    Start a Claude Code session and type /mcp to list connected servers. You should see purpleair-mcp with a green status indicator.

  3. 3

    Start using tools

    Ask Claude Code something like "Check my latest PurpleAir transactions." It will automatically discover and invoke the available PurpleAir tools.

Terminal
claude mcp add --transport http purpleair-mcp https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp

Why Choose Vinkius

Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.

Real-time monitoring

Live

visibility into every interaction

Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.

Built-in savings

60%

lower AI costs

Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.

Single dashboard

One

place for every integration

Every tool your AI connects to, managed from a single screen. One account, complete control.

Common questions about PurpleAir MCP in Claude Code

Run `claude mcp add --transport http purpleair -- ` in your shell to register the PurpleAir server.
Yes, you can instruct Claude Code to run `get_sensor_history` with specific start and end timestamps, then pipe that PurpleAir data into local files or database scripts.
Ask Claude Code to query the sensor's index, and it will call `get_sensors_by_index` to fetch real-time PM2.5, temperature, and humidity metrics directly to your terminal.
Yes, the agent uses `list_sensors` with the location filter parameter inside Claude Code to separate indoor air quality monitors from ambient outdoor hardware.
Yes, as the server only transmits public PurpleAir readings and coordinate data, protecting your Claude Code environment variables inside the Vinkius MCP sandbox.

Start using the PurpleAir MCP today

We host it, we monitor it, we maintain it. You just paste one token.

Built & Managed by Vinkius 30s setup 10 tools

We've already built the connector for PurpleAir. Just plug in your AI agents and start using Vinkius.

No hosting. No infrastructure. No complex setup.
All 10 tools are live and waiting. You're up and running in seconds.

Vinkius runs on Claude Claude
Vinkius runs on ChatGPT ChatGPT
Vinkius runs on Cursor Cursor
Vinkius runs on Gemini Gemini
Vinkius runs on Windsurf Windsurf
Vinkius runs on VS Code VS Code
Vinkius runs on JetBrains JetBrains
Vinkius runs on Vercel Vercel
+ other MCP clients

Vinkius gives your AI agents access to the full catalog of app connectors, all fully managed, secure, and enterprise-ready. One subscription, every tool you need.

Zero hosting required Full MCP catalog included Enterprise-grade security Auto-updated by Vinkius

Built, hosted, and secured by Vinkius. You just connect and go.