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 plus full-corpus semantic search (precomputed factor embeddings on the edge, query encoded locally) to build a candidate pool that substring matching alone cannot reach

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 (555 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,601 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, free databases, keyword search). To unlock the full experience:

Plan Price Features
Free $0 ELCD + US LCI + USDA (2,598 factors), keyword search, 300 queries/day
Pro $5 (one-time) All 4 databases (8,199 factors), full-corpus semantic retrieval + hybrid re-ranking, 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": "从候选列表中选择最匹配的排放因子..."
}

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.

Metadata

Release files for carbon-factor-matcher 2.3.16

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for carbon-factor-matcher 2.3.16
File Size Uploaded Provenance Actions
carbon_factor_matcher-2.3.16.tar.gz 13.7 MB Without provenance Details for carbon_factor_matcher-2.3.16.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for carbon-factor-matcher 2.3.16
File Interpreter ABI Platform Actions
carbon_factor_matcher-2.3.16-py3-none-any.whl Python 3 none any Details for carbon_factor_matcher-2.3.16-py3-none-any.whl

Total release size: 13.8 MB

Release files / carbon_factor_matcher-2.3.16.tar.gz

Download URL carbon_factor_matcher-2.3.16.tar.gz
Size 13.7 MB
Tags Source
SHA-256 checksum
How to use checksums
88b607db42be0297dd57abf35a77783e589ed8d0056b2ce6d666214eef0ac14d
BLAKE2b-256 checksum
How to use checksums
474871ab1b340ecdf3fdbe73edc4f02e8ed146d7c7ae9cc588ac5498d1eff2d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release files / carbon_factor_matcher-2.3.16-py3-none-any.whl

Download URL carbon_factor_matcher-2.3.16-py3-none-any.whl
Size 45.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6a90c1b550bc28b966271f3e8029cda243eec2e12df3832add8e763b813f4ebe
BLAKE2b-256 checksum
How to use checksums
c5a986df3084937b22e600caef7d868150249071588586511501208eeb5aa89c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Security for carbon-factor-matcher 2.3.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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