# Connect CodeCarbon to Your AI Agent (Universal MCP)

> Use your AI to create reports, analyze data, and monitor systems in CodeCarbon — and much more.

## Quick Connect (CLI / MCP)
- Claude Code: `claude mcp add --transport http codecarbon https://api.universalmcp.app/mcp/codecarbon`
- Remote MCP URL (ChatGPT, Claude, Cursor, VS Code): `https://api.universalmcp.app/mcp/codecarbon` (unified: `https://api.universalmcp.app/mcp`)
- Actions & Discovery: `POST https://universalmcp.app/mcp/directory` (`get_software_actions({ slug: "codecarbon", query })` & `search_software`); configs: https://universalmcp.app/install.md

## Key Facts
- Software: CodeCarbon | Category: Other B2B Software (CodeCarbon) | Auth: Encrypted API credentials or guided on-prem setup | Deployment: on-prem
- Pricing: 100% Free (unlimited users, unlimited software, zero task metering)
- Permissions & Security: Per-person, per-area Off/Read/Write across Emissions logs, Cloud region metadata, Report drafts only; 1-click View Only lock; stateless pass-through; zero stored business records
- Connect: https://app.universalmcp.app/connect?system=codecarbon | Guide: https://universalmcp.app/mcp/codecarbon
- Built by: Alex Myers (Legal entity: Lancaster Agentic LLC; support@lancasteragentic.com)

## Supported Actions (3 actions: 0 Read, 3 Write)
Perform 3 actions across emissions logs, cloud region metadata, and report drafts only. Save hours of work each week by utilizing AI rather than using a traditional app interface.
- **Emissions logs (1):** Emissions logs (write)
- **Cloud region metadata (1):** Cloud region metadata (write)
- **Report drafts only (1):** Report drafts only (write)

## Example Prompts for CodeCarbon
- **Run emissions:** "Summarize CO2eq, energy, and runtime for each CodeCarbon run in the emissions.csv file for this week."
- **Region comparison:** "Which cloud region produced the lowest kg CO2eq per kWh in my CodeCarbon results this month?"
- **Energy breakdown:** "Break down CPU, GPU, and RAM energy use for my last CodeCarbon run to find the biggest driver."
- **Draft carbon note:** "Draft a CO2 summary note for the ml-platform team, and hold it for my review before sharing."
