Vinkius
PurpleAir logo
Vinkius
Vinkius runs on CrewAI

How to Use the PurpleAir MCP in CrewAI

Deploy specialized CrewAI agent teams to monitor PurpleAir sensors and coordinate industrial safety actions.

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 CrewAI

Connect PurpleAir MCP to CrewAI

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

GDPR Included with Plan

Key Capabilities

Multi-Agent Air Quality Audits with CrewAI

Your CrewAI safety team uses `get_indoor_sensors` to run continuous indoor workspace health checks. A dedicated monitor agent pulls raw data, while an analyst agent compares those readings against OSHA guidelines to flag indoor air hazards. The crew coordinates these tasks using shared memory, passing sensor indices from `get_sensors_by_index` between agents. This team-based approach ensures that high PM2.5 levels trigger immediate, coordinated escalation plans.

Regional Wildfire Smoke Tracking

This MCP Server allows your CrewAI agents to track active wildfire plumes using `get_sensors_by_bounding_box`. A spotter agent scans the perimeter coordinates, while a reporter agent compiles real-time updates for regional teams. The agents use `get_pm25_sensors` to track the exact speed and direction of rising particulate matter. This allows the crew to predict which local outdoor spaces will require safety warnings hours before the smoke arrives.

Autonomous MCP Server Maintenance Checks

Your CrewAI maintenance crew uses `list_sensors` to audit the operational status of your hardware network. A diagnostic agent filters the list by `modified_since` to isolate sensors that haven't updated their readings recently. Once isolated, a second agent runs `get_sensor_data` on those specific indices to verify if the hardware is offline or just experiencing temporary network lag. The crew then generates a clean maintenance ticket without human intervention.

Setup guide

Set up PurpleAir MCP in CrewAI

Prerequisites

  • Python 3.10+ installed
  • crewai package (pip install crewai)
  • Active Vinkius subscription with a valid endpoint token
  1. 1

    Install CrewAI

    Run pip install crewai to install the framework. MCP support is built-in via the mcps parameter.

  2. 2

    Add the MCP URL to your agent

    Pass your Vinkius endpoint directly to the mcps list. Replace [YOUR_TOKEN_HERE] with your token from cloud.vinkius.com. CrewAI handles tool discovery and caching automatically.

  3. 3

    Kick off your crew

    Create a Crew with your agent and tasks. Call crew.kickoff() — the agent will automatically invoke PurpleAir tools as needed.

crew.py
from crewai import Agent, Task, Crew

agent = Agent(
    role="PurpleAir Analyst",
    goal="Access and analyze PurpleAir data via MCP.",
    backstory="Expert analyst with direct PurpleAir access.",
    mcps=[
        "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
    ],
)

task = Task(
    description="List recent PurpleAir transactions",
    agent=agent,
    expected_output="A summary of recent activity",
)

crew = Crew(agents=[agent], tasks=[task])
result = crew.kickoff()
print(result)

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 CrewAI

Pass your Vinkius HTTP URL to the agent's MCP list during initialization. The agent automatically discovers tools like `get_sensors_near_me` and uses them to find the closest active monitors.
Yes. CrewAI agents use shared memory to pass outputs from `get_sensor_data` to downstream agents. For example, a researcher agent gets the raw PM2.5 values, and an analyst agent processes them.
All communication between your CrewAI framework and the Vinkius MCP Server runs over an encrypted, token-authorized HTTPS connection. Your custom sensor indices and local PM2.5 readings are never cached or exposed to third parties.
Use the `show_only` parameter in `list_sensors` or query specific indices using `get_sensors_by_index`. This keeps your agents focused on your specific hardware and prevents unnecessary API usage.
Yes. You can query indoor hardware using `get_indoor_sensors` or track ambient environment conditions using `get_outdoor_sensors` depending on your operational needs.

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.