Skip to main content

smithery badge

Carbon Factor Matcher — MCP Server for Carbon Accounting

An MCP (Model Context Protocol) server that connects AI agents with carbon emission factor databases. It provides intelligent emission factor matching for carbon accounting, LCA (Life Cycle Assessment), and ESG reporting applications.

What is this MCP?

Carbon Factor Matcher helps AI agents find the most appropriate emission factors from standardized environmental databases. It uses a hybrid search algorithm:

  1. Keyword + Embedding retrieval — Field-weighted keyword scoring and semantic similarity to find candidate factors

The calling AI agent selects the best match from the ranked candidates.

Supported Databases

  • ELCD — European Reference Life Cycle Database (493 factors, included in Free tier)
  • US LCI — US Life Cycle Inventory Database (532 factors, included in Free tier)
  • USDA LCA Commons — USDA agricultural life cycle data (1,550 factors, included in Free tier)
  • ecoinvent 3.10 — Swiss Centre for Life Cycle Inventories (5,829 factors, Pro license required)

Key Features

  • Hybrid keyword + embedding matching for accurate factor retrieval
  • Multi-language support (Chinese/English activity descriptions)
  • Zero configuration — works out of the box after installation
  • MCP-compatible — works with Claude, Cursor, Windsurf, Cline, Continue, and any MCP client

Installation

Claude Code

claude mcp add carbon-factor-matcher -- npx -y @nikeandocean/carbon-factor-matcher

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "carbon-factor-matcher": {
      "command": "npx",
      "args": ["-y", "@nikeandocean/carbon-factor-matcher"]
    }
  }
}

Config file locations:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Cursor

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global):

{
  "mcpServers": {
    "carbon-factor-matcher": {
      "command": "npx",
      "args": ["-y", "@nikeandocean/carbon-factor-matcher"]
    }
  }
}

Or via Cursor UI: Settings → MCP → Add new global MCP server.

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "carbon-factor-matcher": {
      "command": "npx",
      "args": ["-y", "@nikeandocean/carbon-factor-matcher"]
    }
  }
}

Or via Windsurf UI: Settings → Cascade → MCP Servers → Add.

Cline (VS Code Extension)

Add to Cline MCP settings (click MCP Servers icon in Cline panel):

{
  "mcpServers": {
    "carbon-factor-matcher": {
      "command": "npx",
      "args": ["-y", "@nikeandocean/carbon-factor-matcher"]
    }
  }
}

Continue (VS Code / JetBrains)

Add to ~/.continue/config.yaml:

mcpServers:
  - name: carbon-factor-matcher
    command: npx
    args:
      - "-y"
      - "@nikeandocean/carbon-factor-matcher"

Smithery.ai (One-Click Install)

npx -y smithery mcp add nikeandocean/carbon-factor-matcher

Or visit smithery.ai/server/@nikeandocean/carbon-factor-matcher for hosted endpoint.

Pro License

The Free tier works immediately after installation (300 queries/day, ELCD database, keyword search). To unlock the full experience:

Plan Price Features
Free $0 ELCD + US LCI + USDA (2,575 factors), keyword search, 300 queries/day
Pro $5 (one-time) All 4 databases (8,404 factors), hybrid keyword + embedding matching, unlimited queries

Purchase License Key

👉 Buy Pro License

After purchase, you'll receive a license key via email. Set it as an environment variable in your MCP config:

{
  "mcpServers": {
    "carbon-factor-matcher": {
      "command": "npx",
      "args": ["-y", "@nikeandocean/carbon-factor-matcher"],
      "env": {
        "CARBON_FACTOR_LICENSE_KEY": "PRO-xxxx-xxxx"
      }
    }
  }
}

Configuration

Variable Description Default
CARBON_FACTOR_LICENSE_KEY Your license key (empty = Free tier)
CARBON_FACTOR_DATA_DIR Path to local factor database data/factors

Note: No additional API configuration needed. The calling AI agent handles final factor selection.

Available Tools

factor_match

Match activity data to emission factors. Free tier uses keyword search; Pro tier uses hybrid keyword + embedding matching. Returns ranked candidates for the calling agent to select from.

Input:

{
  "activity_data": "Factory in Shenzhen, 10kV industrial electricity, 2024, semiconductor fab",
  "top_k": 10
}

Output (Pro tier):

{
  "candidates": [
    {
      "id": "elec-cn-south-10kv-2024",
      "name": "Electricity, 10kV, South China Grid",
      "value": 0.6101,
      "unit": "kgCO2e/kWh",
      "hybrid_score": 0.85,
      "final_score": 0.875
    }
  ],
  "selection_guidance": "从候选列表中选择最匹配的排放因子..."
}

factor_search

Search emission factors by keyword with optional filters.

Input:

{
  "query": "diesel",
  "category": "fuel",
  "limit": 10
}

factor_detail

Get full metadata for a specific factor.

Input:

{
  "factor_id": "elec-cn-south-10kv-2024"
}

System Requirements

  • Node.js 18+ (for npx)
  • Python 3.11+ (auto-installed via pip)

Support

License

This is proprietary software. See LICENSE for details.


© 2024 Carbon Factor Matcher. All rights reserved.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

carbon_factor_matcher-2.3.14.tar.gz (13.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

carbon_factor_matcher-2.3.14-py3-none-any.whl (44.2 kB view details)

Uploaded Python 3

File details

Details for the file carbon_factor_matcher-2.3.14.tar.gz.

File metadata

  • Download URL: carbon_factor_matcher-2.3.14.tar.gz
  • Upload date:
  • Size: 13.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for carbon_factor_matcher-2.3.14.tar.gz
Algorithm Hash digest
SHA256 b8cbaf0f2ea51a3d653c8c6429fed9f46a4ca7d4ed77656d19577492808f1846
MD5 c9c0eacf954311a74c540b8f117696ac
BLAKE2b-256 c57161c483e74f0bc54a9a11d3e316c1b58ecb002a3d9378a480267c3c4a8572

See more details on using hashes here.

File details

Details for the file carbon_factor_matcher-2.3.14-py3-none-any.whl.

File metadata

File hashes

Hashes for carbon_factor_matcher-2.3.14-py3-none-any.whl
Algorithm Hash digest
SHA256 dc094905b2f2aca3987b4d96920bb86eb29b81a08be2046c32ccfa9bfcc3d171
MD5 bbd44ec75b1df8d723211cea87fa7c69
BLAKE2b-256 1437749d08853de53cae9c153fb9828eabfdd046f332ab93cc60f3bbe3715724

See more details on using hashes here.

Release history Release notifications | RSS feed

2.3.16

2 files

2.3.15

2 files

This release

2.3.14 This release

2 files

2.3.13

2 files

2.3.12

2 files

2.3.11

2 files

2.3.10

2 files

2.3.9

2 files

2.3.8

1 file

2.3.7

1 file

2.3.6

2 files

2.3.5

1 file

2.3.4

1 file

2.3.3

1 file

2.3.2

1 file

2.3.1

1 file

2.3.0

1 file

2.2.2

1 file

2.2.1

1 file

2.2.0

1 file

2.1.0

1 file

2.0.0

1 file

1.1.0

1 file

1.0.9

2 files

1.0.8

1 file

1.0.7

1 file

1.0.6

1 file

0.3.0

1 file

0.2.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page