logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

climatiq-emissions-quantifier

Real-time quantification of ecological footprints and climate consequence intelligence by leveraging the Climatiq Application Programming Interface for diverse computational assessments relevant to sophisticated autonomous agents.

Author

climatiq-emissions-quantifier logo

jagan-shanmugam

MIT License

Quick Info

GitHub GitHub Stars 6
NPM Weekly Downloads 0
Tools 1
Last Updated 2026-02-19

Tags

climatiqemissionsclimateclimatiq apicarbon emissionsintegrating climatiq

Eco-Footprint Quantification Engine (Climatiq Integration)

License: MIT

An implementation of the Model Context Protocol (MCP) server designed to interface with the Climatiq service for measuring carbon outputs. This infrastructure enables intelligent systems to conduct immediate environmental impact evaluations and furnish actionable sustainability insights.

Demonstration

https://github.com/user-attachments/assets/c253d6d1-ccf6-4c14-965e-6023ba2a0296

https://github.com/user-attachments/assets/d61c1181-acf6-4d9f-9a48-537fc64ac4c3

Capabilities

This MCP gateway integrates with the Climatiq service to facilitate the computation of atmospheric pollutant releases associated with various operations:

Functional Modules (Tools)

  • auth-key-setter: Mechanism to provision the required Climatiq access credential for secure transactions.
  • electrical-impact-assessment: Determines atmospheric burden stemming from electrical energy consumption.
  • mobility-impact-modeling: Quantifies emissions resulting from vehicular transit (automotive, aviation, rail).
  • factor-database-interrogation: Searches the comprehensive Climatiq repository for precise environmental coefficients.
  • bespoke-emission-computation: Executes custom impact analyses utilizing user-specified environmental factors.
  • data-center-output-measurement: Calculates the footprint generated by cloud computing infrastructure utilization.
  • logistics-footprint-analysis: Assesses ecological costs associated with goods movement and freight operations.
  • supply-chain-expenditure-valuation: Estimates environmental loads based on procurement expenditures.
  • lodging-impact-estimation: Computes ecological impact from accommodations and hotel stays.
  • travel-expense-to-carbon-conversion: Translates monetary outlay on travel into equivalent carbon emissions.

Data Artifacts (Resources)

  • Calculation outcomes are formalized as accessible artifacts conforming to the climatiq://calculation/{id} Uniform Resource Identifier scheme.
  • Each resultant artifact encapsulates granular data pertaining to the utilized environmental factor and the final computed metrics.

Agent Directives (Prompts)

  • sustainability-narrative-generation: Formulates readily understandable linguistic interpretations of the outcomes derived from specific impact calculations.

Deployment Instructions

Compilation from Source

This repository mandates the use of uv for managing isolated Python environments and dependencies. Ensure that uv is installed prior to proceeding.

bash

Acquire the source code repository

git clone https://github.com/your-org/climatiq-mcp-server.git cd climatiq-mcp-server

Establish an isolated execution context

uv venv

Activate the environment

On Unix-like systems:

source .venv/bin/activate

On Windows:

.venv\Scripts\activate

Synchronize and install all dependencies, including development/extra packages

uv sync --dev --extra all

Installation via uv Packaging

bash uv pip install climatiq-mcp-server

Credential Provisioning (API Key)

The server mandates a valid Climatiq access token for operational integrity. Methods for supplying this secret include:

  1. Environment Variable Injection: Set the CLIMATIQ_API_KEY variable before initiating the server process bash export CLIMATIQ_API_KEY=your_climatiq_api_key

  2. Installation-Time Configuration: Embed the key during package installation bash CLIMATIQ_API_KEY=your_climatiq_api_key uv pip install climatiq-mcp-server

  3. Runtime Tool Invocation: Utilize the auth-key-setter module to dynamically update the key within the active AI context.

  4. Local Secret File: Populate a .env file within the project's root directory:

CLIMATIQ_API_KEY=your_climatiq_api_key

To procure the necessary Climatiq credential: 1. Register at app.climatiq.io 2. Consult the guide located at Getting API Keys

Server Launch Sequence

The service can be activated directly from the command line interface:

bash climatiq-mcp-server

Integration within Autonomous Assistants

Claude Desktop Configuration

MacOS Location: ~/Library/Application\ Support/Claude/claude_desktop_config.json Windows Location: %APPDATA%/Claude/claude_desktop_config.json

Configuration Snippet "mcpServers": { "climatiq-emissions-quantifier": { "command": "climatiq-mcp-server", "env": { "CLIMATIQ_API_KEY": "your_climatiq_api_key" } } }

Illustrative Materials and Utility Scripts

Exemplars Directory

The examples/ subdirectory contains useful assets:

  • climatiq.ipynb: A Jupyter notebook detailing direct API interaction with the Climatiq infrastructure.
  • simple_test.py: A straightforward Python utility for immediate validation of the API linkage without invoking the full MCP layer.

bash

Execute the straightforward validation routine

python examples/simple_test.py

Support Utilities

The utils/ folder houses several helpful auxiliary scripts:

Validation Client

The test_client.py script executes comprehensive checks across all available tools, directives, and data artifacts:

bash python utils/test_client.py

Agent Interaction Simulator

The llm_example_client.py script demonstrates potential interaction patterns between a sophisticated language model (e.g., Claude) and this Climatiq MCP gateway:

bash python utils/llm_example_client.py

Key features demonstrated: - Comprehensive abstraction layer for the API, incorporating robust error management and temporal limitations. - Localized storage and retrieval mechanisms for calculation history and factor results (caching). - Sample directives illustrating how to solicit plain-language summaries of environmental impact metrics. - Operational showcases for electrical output assessment, transit impact measurement, and factor lookup functionalities.

Command Line Interface (CLI) Utility

A CLI tool offering direct access to core Climatiq functions, bypassing the MCP server overhead:

bash

For electrical output metrics

python utils/climatiq_cli.py electrical --energy 1000 --unit kWh --region US

For mobility impact figures

python utils/climatiq_cli.py mobility --mode car --distance 100 --unit km --region US

Direct Server Launcher

Use run_mcp_server.py to execute the server instance without requiring a formal system installation:

bash python utils/run_mcp_server.py

Core Terminology

Activity Identifiers

An Activity ID is a foundational concept within the Climatiq API structure, serving to aggregate associated environmental factors:

  • Every quantifiable factor in the Climatiq ledger possesses a unique activity ID.
  • These IDs logically cluster emission factors pertaining to identical activities, irrespective of geographical scope, temporal context, or source derivation.
  • Illustrative examples: electricity-supply_grid-source_residual_mix (power grid), passenger_vehicle-vehicle_type_car (personal vehicle travel).

Computation Paradigms

The Climatiq MCP system supports several frameworks for determining ecological loads:

  1. Route-based modeling utilized for calculating transportation emissions.
  2. Sophisticated transit analysis incorporating starting and ending points.
  3. Expenditure-based modeling applicable when only financial transaction data is available.
  4. Direct factor invocation using explicitly defined environmental coefficients.

Diagnostics

Credential Verification Failures

  1. Confirm the integrity of the CLIMATIQ_API_KEY setting in the execution environment or .env file.
  2. Validate the key's active status via the Climatiq administrative portal.
  3. Employ examples/simple_test.py to confirm API endpoint connectivity using the supplied key.

Extended Documentation

For in-depth operational guidance on specific functional modules and advanced features, refer to the documentation file: docs/README.md.

About Climatiq

Climatiq furnishes a robust interface for deriving carbon intelligence, enabling the quantification of environmental effects across energy usage, transit, purchasing, and other domains. This specialized MCP server translates those capacities into a format consumable by intelligent computational agents.

Further details regarding the Climatiq platform can be found at climatiq.io.

Licensing Information

This software is distributed under the terms of the MIT License; refer to the LICENSE file for complete particulars.

WIKIPEDIA: Business management tools encompass all frameworks, operational applications, regulatory controls, analytical solutions, and procedural guidelines employed by organizational entities to effectively navigate shifting market dynamics, maintain competitive standing, and drive superior operational performance.

== General Context == Management tools are often segmented based on organizational function or department, covering aspects such as tactical planning, workflow orchestration, documentation management, human resources administration, strategic determination, performance monitoring, and more. A functional classification generally segregates them into:

Tools dedicated to data ingestion and integrity verification across all operational units. Mechanisms focused on oversight and refinement of corporate processes. Systems used for data aggregation and high-level decision support. Modern management instrumentation has undergone rapid metamorphosis over the last decade due to accelerating technological progress, making the selection of optimal business tools for any given corporate scenario increasingly challenging. This complexity arises from the constant pressure to reduce operational expenditure while simultaneously maximizing revenue, the imperative to deeply understand client requirements, and the drive to deliver required products through preferred channels. Within this environment, executives must adopt a strategic lens toward acquiring business management technology, rather than simply chasing the newest release. Over-reliance on off-the-shelf solutions without suitable modification frequently results in operational instability. Therefore, business systems must be chosen judiciously and then tailored to fit the enterprise's unique necessities, not the reverse.

== Prevalent Instrumentation == A 2013 survey conducted by Bain & Company detailed the global adoption patterns of various business management instruments, reflecting how their perceived utility aligns with regional demands and prevailing market conditions. The top ten instruments identified included:

Strategic planning frameworks Client relationship management suites Employee sentiment assessment programs Performance benchmarking systems Balanced scorecard methodologies Core competency identification Business process outsourcing strategies Organizational change management protocols Supply chain optimization systems Mission and vision declaration documentation Market segmentation analyses Total quality management initiatives

== Enterprise Software Applications == Software, defined as a set of computational programs utilized by professional staff to execute diverse organizational tasks, is commonly referred to as business software or an enterprise application. These applications are engineered to enhance productivity metrics, provide output evaluation, and execute various corporate functions with precision. This domain evolved from rudimentary Management Information Systems (MIS) to complex Enterprise Resource Planning (ERP) installations, later incorporating Customer Relationship Management (CRM) solutions, culminating in today's landscape of cloud-based business management services. While a verifiable link exists between Information Technology investment and organizational success, two critical factors determine value realization: the efficacy of the deployment process and the rigor applied to selecting and adapting the appropriate technological assets.

== Solutions for Small and Medium Enterprises (SMEs) == Tools specifically tailored for SMEs are crucial as they offer pathways to conserve valuable...

See Also

`