An MCP server for calculating carbon footprints from bank statements and activity data using EPA GHG emission factors.
Project description
Carbon Footprint Calculator (MCP Server)
An MCP (Model Context Protocol) server for calculating organizational carbon footprints from bank statements, financial exports, and structured activity data using EPA GHG emission factors.
Privacy and security first
- Runs 100% locally on your machine or server
- Sends no financial data to external APIs or cloud providers
- Stores no data by default
- Exposes read-only calculation and reporting tools
- Works with Claude Desktop, Cursor, and other MCP clients
Why This Exists
If you are preparing ESG reporting, investor diligence materials, or internal sustainability reviews, getting to a usable emissions baseline is usually slow and manual.
This server helps turn raw bank statements, Xero or QBO exports, and structured operational inputs into a carbon footprint report in minutes. It maps activities to EPA-aligned emission factors and produces both HTML and Markdown outputs.
The user experience is designed to work for organizations in any country, while the current electricity benchmarking still uses EPA eGRID regional factors under the hood.
What It Does
- Ingests bank CSVs, Xero or QBO exports, and structured activity data.
- Helps categorize transactions into likely emission sources such as electricity, fuel, travel, shipping, and waste.
- Computes Scope 1, Scope 2, and Scope 3 emissions using EPA GHG emission factors.
- Scores carbon intensity by revenue and headcount when those inputs are provided.
- Generates polished HTML and Markdown reports.
Emission Factor Source
All emission factors are based on the EPA GHG Emission Factors Hub (January 2025), including eGRID 2023 electricity factors and IPCC AR5 global warming potentials.
Covered categories include stationary combustion, mobile combustion, electricity, steam or heat, transportation, waste disposal, business travel, employee commuting, and refrigerants.
Installation
Claude Desktop
- Install
uv. - Open Claude Desktop settings and edit the MCP config.
- Add this server:
{
"mcpServers": {
"carbon-footprint": {
"command": "uvx",
"args": ["carbon-footprint-mcp"]
}
}
}
- Restart Claude Desktop.
Claude Code or Cursor
claude mcp add carbon-footprint -- uvx carbon-footprint-mcp
Local Development
git clone https://github.com/MayankTalwar0/carbon-footprint-mcp.git
cd carbon-footprint-mcp
pip install -e .
carbon-footprint-mcp
Available MCP Tools
| Tool | Description |
|---|---|
computeEmissions(inputs_json) |
Computes GHG emissions from structured activity data across all 3 scopes. |
generateEmissionsReport(emissions_json, output_dir) |
Renders a polished HTML and Markdown report and saves it to disk. |
listEmissionFactors(category) |
Lists available fuel, eGRID, and waste emission factors. |
Supported Emission Categories
| Scope | Category | Input Required |
|---|---|---|
| 1 | Stationary Combustion | Fuel type and quantity |
| 1 | Mobile Combustion | Fuel type and gallons |
| 1 | Refrigerant Leakage | Gas type, leaked kg, and GWP |
| 2 | Purchased Electricity | kWh and eGRID subregion |
| 2 | Purchased Steam or Heat | mmBtu |
| 3 | Transportation and Distribution | Vehicle type and distance |
| 3 | Waste Disposal | Material, short tons, and disposal method |
| 3 | Business Travel | Travel mode and passenger-miles |
| 3 | Employee Commuting | Commute mode and passenger-miles |
Carbon Intensity Scoring
| Score | tCO2e per $1M Revenue | Interpretation |
|---|---|---|
| Excellent | < 5 | Best-in-class for low-footprint operations |
| Good | 5-20 | Low intensity |
| Moderate | 20-100 | Typical for services and tech |
| High | 100-500 | Heavy operations |
| Very High | > 500 | Very high intensity |
License
MIT
Built By SlickBooks
Built by Mayank, founder of SlickBooks.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file carbon_footprint_mcp-1.0.0.tar.gz.
File metadata
- Download URL: carbon_footprint_mcp-1.0.0.tar.gz
- Upload date:
- Size: 34.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
534b6cb021ba2c3ee7b8dc8cad4831718327f6ae4347cc5da81c6339403d287f
|
|
| MD5 |
d5fbc6839d9cc5db7cc7fcbd8ff2446d
|
|
| BLAKE2b-256 |
35c1bd6386cdd695b6ca4feec118f88e0a6ac7bc074462f862150234284cc112
|
File details
Details for the file carbon_footprint_mcp-1.0.0-py3-none-any.whl.
File metadata
- Download URL: carbon_footprint_mcp-1.0.0-py3-none-any.whl
- Upload date:
- Size: 33.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aaacf79d47af08388ac4766dac8d9e245e9dfe7ea5168d7351f348bb7ffb8134
|
|
| MD5 |
0fac397d74a3362dd7de133544060b23
|
|
| BLAKE2b-256 |
4292a9a4c88b42dc6311470cd5d8d3f1d0f8e48b09d3bc9cdd5ddd2bd2c3272e
|