Back to Templates

Access CO2 Measurement Data with CarbonDoomsDay API for AI Agents

Created by

Created by: David Ashby || cfomodz

David Ashby

Last update

Last update 5 days ago

Share


Complete MCP server exposing 2 CarbonDoomsDay API operations to AI agents.

⚡ Quick Setup

  1. Import this workflow into your n8n instance
  2. Credentials Add CarbonDoomsDay credentials
  3. Activate the workflow to start your MCP server
  4. Copy the webhook URL from the MCP trigger node
  5. Connect AI agents using the MCP URL

🔧 How it Works

This workflow converts the CarbonDoomsDay API into an MCP-compatible interface for AI agents.

MCP Trigger: Serves as your server endpoint for AI agent requests
HTTP Request Nodes: Handle API calls to https://api.carbondoomsday.com/api
AI Expressions: Automatically populate parameters via $fromAI() placeholders
Native Integration: Returns responses directly to the AI agent

📋 Available Operations (2 total)

🔧 Co2 (2 endpoints)

GET /co2/: Get CO2 Measurement by Date
GET /co2/{date}/: CO2 measurements from the Mauna Loa observatory.

This data is made available through the good work of the people at the
Mauna Loa observatory. Their release notes say:

These data are made freely available to the public and the scientific
community in the belief that their wide dissemination will lead to greater
understanding and new scientific insights.

We currently scrape the following sources:

We have daily CO2 measurements as far back as 1958.

Learn about using pagination via the 3rd party documentation.

🤖 AI Integration

Parameter Handling: AI agents automatically provide values for:
• Path parameters and identifiers
• Query parameters and filters
• Request body data
• Headers and authentication

Response Format: Native CarbonDoomsDay API responses with full data structure

Error Handling: Built-in n8n HTTP request error management

💡 Usage Examples

Connect this MCP server to any AI agent or workflow:

Claude Desktop: Add MCP server URL to configuration
Cursor: Add MCP server SSE URL to configuration
Custom AI Apps: Use MCP URL as tool endpoint
API Integration: Direct HTTP calls to MCP endpoints

✨ Benefits

Zero Setup: No parameter mapping or configuration needed
AI-Ready: Built-in $fromAI() expressions for all parameters
Production Ready: Native n8n HTTP request handling and logging
Extensible: Easily modify or add custom logic

🆓 Free for community use! Ready to deploy in under 2 minutes.