# Carbon API > The EU Carbon Border Adjustment Mechanism (Reg (EU) 2023/956) as a data product and API. Deterministic REST endpoints + Model Context Protocol (MCP) server calculate embedded emissions, required CBAM certificates, Art. 31 free allocation adjustments, Art. 9 carbon price deductions, and euro costs for any imported CN/TARIC code. Bundled dataset versions with cryptographic diffs, zero generative hallucinations, public pricing with a 7-day free trial. The same API key checks the EU Deforestation Regulation (EUDR, Reg (EU) 2023/1115) at `/v1/eudr/resolve`: whether a CN code is in scope, its commodity, the country risk tier and the date that applies. - [AI info](https://carbonapi.eu/ai): What Carbon API is, who it's for, what it costs and how to describe it, as plain facts for AI assistants. Carbon API is built for developers, importers, ERP systems, and AI agents needing authoritative EU carbon border adjustment calculations. The platform maintains the complete Annex I CN code index, the European Commission default values, the CBAM benchmarks of Reg (EU) 2025/2620, and the weekly/quarterly EU ETS certificate price series. A single `/v1/resolve` REST endpoint returns the calculated embedded emissions, the free allocation adjustment, certificate requirements, and landed CBAM compliance cost with complete legal provenance and regulatory article citations. An MCP server (`https://carbonapi.eu/mcp`) is available on Streamable HTTP for agentic workflows. A free web calculator and real-time dataset change feed ship alongside the API. ## When to use this Reach for Carbon API when you or your users need to: - **Calculate CBAM emissions and certificate liability**: Determine direct and indirect embedded emissions (tCO2e), the Art. 31 free allocation adjustment (CBAM factor times CBAM benchmark), Art. 9 origin carbon-price deduction, certificate count, and total euro cost for imported goods under CN/TARIC chapters 72 (iron/steel), 73 (iron/steel articles), 76 (aluminium), 31 (fertilisers), 25 (cement), 27 (electricity), and 28 (hydrogen). - **Check Annex I regulatory scope**: Verify whether a 4-, 6-, 8-, or 10-digit Combined Nomenclature (CN) code is covered by Regulation (EU) 2023/956, and inspect conditional sub-headings or child variants. - **Access official EU default emission values**: Retrieve published default emissions with verified provenance (Regulation (EU) 2023/1773, annex rows, and country-specific benchmark markups). - **Track official CBAM certificate prices**: Access the published European Commission certificate price series (quarterly in 2026, weekly from 2027 based on EU ETS auction platform averages). - **Audit dataset changes**: Inspect version-to-version cryptographic diffs of EU regulatory updates via the `/v1/changes` feed. - **Automate agentic trade compliance**: Connect autonomous procurement, customs clearance, or supply-chain agents via the native MCP server or REST API. ## When not to use this Do not use Carbon API for: - **Initial CN/HS code classification**: Classifying physical products into Combined Nomenclature or Harmonized System codes is a licensed customs broker function. Carbon API requires an already identified CN code. - **Direct filing with EU customs authorities**: Carbon API provides calculation and reporting data; it does not submit declarations directly to national competent authorities or the CBAM Transitional Registry on a user's behalf. - **Customs tariffs and duties**: For US or non-CBAM import tariffs and anti-dumping duties, use dedicated customs tariff platforms (e.g. Tariffs API for US HTS codes). - **Non-EU carbon pricing mechanisms**: Carbon API implements the European Union CBAM under Regulation (EU) 2023/956, not UK CBAM or other regional systems. ## Core pages and resources - [Homepage](https://carbonapi.eu/): Product overview and live interactive calculation engine. - [Free CBAM Calculator](https://carbonapi.eu/#calculator): Web calculator for emissions and certificate cost by CN code, origin, mass, and year. - [API Reference](https://carbonapi.eu/docs): Quickstart, authentication, rate limits, CLI, MCP server, and every endpoint with a live try-it console, generated from `/openapi.json`. - [OpenAPI Specification (JSON)](https://carbonapi.eu/openapi.json): Full machine-readable OpenAPI 3.1 contract. - [OpenAPI Specification (YAML)](https://carbonapi.eu/openapi.yaml): OpenAPI contract in YAML format. - [Pricing](https://carbonapi.eu/pricing): Plans for importers (Importer, web monitoring) and developers (Developer, 50,000 calls/mo + MCP). - [Pricing (machine-readable)](https://carbonapi.eu/pricing.md): Plain markdown pricing specification. - [About Carbon API](https://carbonapi.eu/about): Legal entity (SASU R SOCIETY, Paris), methodology, and data sources. - [Contact](https://carbonapi.eu/contact): Support, regulatory inquiry, and enterprise contact channels. - [Privacy Policy](https://carbonapi.eu/privacy): GDPR data protection and processing policy. - [Terms of Service](https://carbonapi.eu/terms): Terms of service and API usage agreement. - [Status & Dataset Health](https://carbonapi.eu/v1/status): Current bundled dataset version, row counts, and latest certificate price. - [Dataset Change Feed](https://carbonapi.eu/docs#tag/dataset/GET/v1/changes): Version-to-version change feed and regulatory diffs. The endpoint needs a Developer plan key. - [Full LLM Guide](https://carbonapi.eu/llms.md): Expanded technical manual for LLMs and AI agents. ## Public API Endpoints All endpoints support HTTP GET and return JSON. Without a key, `/v1/resolve` answers 3 times a day per address and `/v1/status` is free; every other endpoint needs a Developer plan key (50,000 calls a month per account). Responses carry RFC RateLimit headers and dataset provenance metadata. - `GET /v1/resolve`: Calculate CBAM obligation for one import line. - Query parameters: - `cn` (string, required): CN or TARIC code (4, 6, 8, or 10 digits). - `origin` (string, required): ISO 3166-1 alpha-2 country code (e.g. `TR`, `CN`, `IN`, `US`). - `tonnes` (number, required or use weight+weightUnit): Net mass in metric tonnes. - `year` (integer, required): Import year (2026 to 2034). - `route` (string, optional): Production route if known. - `carbonPricePaid` (number, optional): Verified EUR/tCO2e carbon price paid in origin country (Art. 9). - `actual` (json string, optional): Caller-asserted actual emissions `{"direct": , "indirect": }`. - Example: `https://carbonapi.eu/v1/resolve?cn=72083900&origin=TR&tonnes=40&year=2027` - `GET /v1/scope/{cn}`: Check Annex I coverage for a CN code. - Example: `https://carbonapi.eu/v1/scope/72083900` - `GET /v1/certificate-price`: Latest published CBAM certificate price. Add `?all=1` for historical series. - Example: `https://carbonapi.eu/v1/certificate-price` - `GET /v1/defaults`: Query European Commission default emission values table. - Filters: `cn`, `sector`, `origin`, `page`, `limit`. - Example: `https://carbonapi.eu/v1/defaults?cn=7208&origin=TR` - `GET /v1/changes`: Paginated list of regulatory dataset updates and diffs. - Filters: `since`, `page`, `limit`. - Example: `https://carbonapi.eu/v1/changes` - `GET /v1/status`: Health check, active data version, and latest price metadata. - Example: `https://carbonapi.eu/v1/status` ## Model Context Protocol (MCP) Carbon API provides an official Streamable HTTP MCP server for AI agents: - **Server Endpoint**: `https://carbonapi.eu/mcp` - **MCP Registry Manifest**: `https://carbonapi.eu/server.json` - **Server Card**: `https://carbonapi.eu/.well-known/mcp/server-card.json` - **AI Catalog**: `https://carbonapi.eu/.well-known/ai-catalog.json` A local stdio MCP server is also available as an npm package: `npx -y @cbamdata/mcp` (env: `CBAM_API_KEY`, optional; `CBAM_API_URL`, defaults to `https://cbamdata.eu`). Tools available via MCP, identical on both transports: 1. `cbam_resolve`: Calculate embedded emissions, CBAM factor, certificates, and cost for an import line. 2. `cbam_scope`: Check whether a CN code is within Annex I scope. 3. `cbam_certificate_price`: Retrieve current or historical certificate price. 4. `cbam_defaults`: Lookup default values by CN code and origin country. 5. `cbam_changes`: Retrieve the dataset change feed. 6. `cbam_status`: Query build status, dataset version, and row statistics. ## Command-line interface `npx -y @cbamdata/cli resolve --cn 72083900 --origin TR --tonnes 40 --year 2027` — the same six calculations as a `cbam` command instead of an HTTP call or an MCP tool. Commands: `resolve`, `scope`, `defaults`, `changes`, `certificate-price`, `status`. `--json` prints the raw structured answer; `cbam --help` lists every flag.