CCDB Carbon Emission Factor Search Tool. Based on the Carbonstop CCDB database, it queries carbon emission factor data directly via a lightweight script. Supports keyword search for carbon emission factors, retrieving structured JSON data, and multi-keyword comparisons. **Use this Skill when**: (1) The user queries carbon emission factors (e.g., "electricity emission factor", "cement carbon emission", "natural gas emission coefficient", etc.) (2) The user needs to perform carbon emission calculations (needs to query the factor first, then multiply by activity data) (3) The user needs to compare the carbon emission factors of different energy sources/materials (4) The user mentions "CCDB", "carbon emission factor", "emission coefficient", "carbon footprint", "LCA", or "emission factor" (5) The user needs to query carbon emission factor data for a specific country/region or a specific year
Queries the Carbonstop CCDB emission factor database via directly calling the public HTTP API.
Zero dependencies. The tool uses a native Node.js script scripts/ccdb-search.mjs with built-in crypto and fetch. No API Key is needed.
This skill comes with a lightweight CLI script scripts/ccdb-search.mjs that can be executed directly.
You can execute it by running node /workspace/skills/skills/ccdb/scripts/ccdb-search.mjs (replace the path with the actual absolute path to the script).
Purpose: Search for carbon emission factors by keyword and return human-readable formatted text.
node /workspace/skills/skills/ccdb/scripts/ccdb-search.mjs "电力"
node /workspace/skills/skills/ccdb/scripts/ccdb-search.mjs "electricity" en
Parameters:
keyword: Search keyword, e.g., "electricity", "cement", "steel", "natural gas"lang: (Optional) Target language for the search. Defaults to zh. Pass en for English.Returns: Formatted text containing the factor value, unit, applicable region, year, publishing institution, etc.
Purpose: Operates the same as regular search, but returns structured JSON data. Highly recommended for programmatic handling and carbon emission calculations.
node /workspace/skills/skills/ccdb/scripts/ccdb-search.mjs "electricity" en --json
Parameters are identical to formatting search, just append the --json flag.
JSON Return Fields:
| Field | Description |
|---|---|
name | Factor Name |
factor | Emission Factor Value |
unit | Unit (e.g., kgCO₂e/kWh) |
countries | Applicable Countries/Regions |
year | Publication Year |
institution | Publishing Institution |
specification | Specification details |
description | Additional description |
sourceLevel | Factor source level |
business | Industry sector |
documentType | Document/Source type |
Purpose: Compare the carbon emission factors of up to 5 keywords simultaneously. Useful for horizontal comparison of different energy sources or materials.
node /workspace/skills/skills/ccdb/scripts/ccdb-search.mjs --compare 电力 天然气 柴油
node /workspace/skills/skills/ccdb/scripts/ccdb-search.mjs --compare electricity "natural gas" en
node /workspace/skills/skills/ccdb/scripts/ccdb-search.mjs --compare electricity "natural gas" --json
Parameters:
--compare: Flag to trigger comparison mode.keywords: List of search keywords, 1-5 items maximum.If the script is somehow inaccessible, you can use this standalone Node.js snippet:
node -e "const c=require('crypto'),n=process.argv[1],s=c.createHash('md5').update('mcp_ccdb_search'+n).digest('hex');fetch('https://gateway.carbonstop.com/management/system/website/searchFactorDataMcp',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({sign:s,name:n,lang:'en'})}).then(r=>r.json()).then(d=>console.log(JSON.stringify(d,null,2)))" "electricity"
User: What is the carbon emission factor for the Chinese power grid?
→ Action: Execute node /workspace/skills/skills/ccdb/scripts/ccdb-search.mjs "electricity" en or node /workspace/skills/skills/ccdb/scripts/ccdb-search.mjs "中国电网". Find the one corresponding to China and the most recent year.
User: My company used 500,000 kWh of electricity last year, what is the carbon footprint?
→ Workflow:
"electricity" factor (preferably with --json), select China and the latest year.User: Compare the carbon emission factors of electricity, natural gas, and diesel.
→ Action: Execute node /workspace/skills/skills/ccdb/scripts/ccdb-search.mjs --compare "electricity" "natural gas" "diesel" en
User: What is the emission factor for the cement industry?
→ Action: Search using "cement".
--json format returns highly precise numerical figures that are ideal for programmatic multiplication.