
jagan-shanmugam/climatiq-mcp-server
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
A Model Context Protocol (MCP) server for accessing the Climatiq API to calculate carbon emissions. This allows AI assistants to perform real-time carbon calculations and provide climate impact...
Обзор
A Model Context Protocol (MCP) server for accessing the Climatiq API to calculate carbon emissions. This allows AI assistants to perform real-time carbon calculations and provide climate impact insights. https://github.com/user-attachments/assets/c253d6d1-ccf6-4c14-965e-6023ba2a0296 https://github.com/user-attachments/assets/d61c1181-acf6-4d9f-9a48-537fc64ac4c3 This MCP server integrates with the Climatiq API to provide carbon emission calculations for AI assistants: - : Configure the Climatiq API key used for authentication - : Calculate carbon emissions from electricity consumption - : Calculate carbon emissions from travel by car, plane, or train - : Search for specific emission factors in the Climatiq database - : Perform custom calculations using specific emission factors - : Calculate emissions from cloud computing resources usage - : Calculate emissions from freight transportation - : Calculate emissions from procurement spending - : Calculate emissions from hotel stays - :...
README
Показан фрагмент оригинального README. Открыть оригинал.
Climatiq MCP Server
A Model Context Protocol (MCP) server for accessing the Climatiq API to calculate carbon emissions. This allows AI assistants to perform real-time carbon calculations and provide climate impact insights.
Demo
https://github.com/user-attachments/assets/c253d6d1-ccf6-4c14-965e-6023ba2a0296
https://github.com/user-attachments/assets/d61c1181-acf6-4d9f-9a48-537fc64ac4c3
Features
This MCP server integrates with the Climatiq API to provide carbon emission calculations for AI assistants:
Tools
- set-api-key: Configure the Climatiq API key used for authentication
- electricity-emission: Calculate carbon emissions from electricity consumption
- travel-emission: Calculate carbon emissions from travel by car, plane, or train
- search-emission-factors: Search for specific emission factors in the Climatiq database
- custom-emission-calculation: Perform custom calculations using specific emission factors
- cloud-computing-emission: Calculate emissions from cloud computing resources usage
- freight-emission: Calculate emissions from freight transportation
- procurement-emission: Calculate emissions from procurement spending
- hotel-emission: Calculate emissions from hotel stays
- travel-spend: Calculate emissions from travel expenses
Resources
- Carbon calculation results are exposed as resources with a
climatiq://calculation/{id}URI scheme - Each resource contains detailed information about an emission factor and calculation results
Prompts
- climate-impact-explanation: Generate natural language explanations about the climate impact of specific emission calculations
Installation
From Source
This project uses uv for virtual environment and dependency management. Make sure to install uv first.
# Clone the repository
git clone https://github.com/your-org/climatiq-mcp-server.git
cd climatiq-mcp-server
# Create a virtual environment
uv venv
# Activate the virtual environment
# On macOS/Linux:
source .venv/bin/activate
# On Windows:
.venv\Scripts\activate
# Install dependencies with development extras
uv sync --dev --extra all
Using uv
uv pip install climatiq-mcp-server
API Key Configuration
The server requires a Climatiq API key to function. You have several options to provide it:
-
Environment Variable: Set the
CLIMATIQ_API_KEYenvironment variable before starting the serverexport CLIMATIQ_API_KEY=your_climatiq_api_key -
Configuration During Installation:
CLIMATIQ_API_KEY=your_climatiq_api_key uv pip install climatiq-mcp-server -
set-api-key Tool: Use the
set-api-keytool to configure it during runtime within the AI assistant -
Configuration File: Create a
.envfile in the project directory:
Установка
This server does not publish a one-line install command.
Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →Конфигурация
"mcpServers": {
"climatiq-mcp-server": {
"command": "climatiq-mcp-server",
"env": {
"CLIMATIQ_API_KEY": "your_climatiq_api_key"
}
}
}