Climatiq MCP Server logo

Climatiq MCP Server

by jagan-shanmugam

The Climatiq MCP Server provides a Model Context Protocol (MCP) interface for accessing the Climatiq API, enabling carbon emission calculations. It allows AI assistants to perform real-time carbon calculations and provide climate impact insights.

View on GitHub

Last updated: N/A

What is Climatiq MCP Server?

The Climatiq MCP Server is an interface that allows AI assistants to access the Climatiq API for calculating carbon emissions. It provides a standardized way for AI models to request and receive carbon footprint data for various activities.

How to use Climatiq MCP Server?

To use the server, you need a Climatiq API key, which can be configured via environment variables, a configuration file, or the set-api-key tool. The server can be started from the command line and integrated into AI assistants by configuring the assistant to use the server's command and environment settings.

Key features of Climatiq MCP Server

  • Integrates with Climatiq API for carbon emission calculations

  • Provides tools for calculating emissions from electricity, travel, freight, procurement, cloud computing, and hotel stays

  • Exposes carbon calculation results as resources with a climatiq://calculation/{id} URI scheme

  • Offers prompts for generating natural language explanations of climate impact

  • Includes a CLI tool for direct API access

  • Complete API wrapper with error handling and timeout management

  • Resource and result caching to preserve calculation history

Use cases of Climatiq MCP Server

  • Calculating the carbon footprint of electricity consumption

  • Estimating emissions from travel by car, plane, or train

  • Analyzing the environmental impact of procurement spending

  • Providing climate impact insights to users through AI assistants

  • Performing custom carbon calculations based on specific emission factors

FAQ from Climatiq MCP Server

How do I get a Climatiq API key?

Sign up at app.climatiq.io and follow the instructions at Getting API Keys.

How do I configure the API key for the server?

You can set the CLIMATIQ_API_KEY environment variable, configure it during installation, use the set-api-key tool, or create a .env file.

How do I run the server?

Start the server directly from the command line using climatiq-mcp-server.

How do I integrate the server into an AI assistant?

Configure the AI assistant to use the server's command and environment settings, as shown in the Claude Desktop example.

What are Activity IDs?

Activity IDs group similar emission factors together in the Climatiq API, describing the same activity across regions, years, sources, etc.