@nikeandocean/carbon-factor-matcher 2.1.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -17
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,18 +9,18 @@ An MCP (Model Context Protocol) server that connects AI agents with carbon emiss
|
|
|
9
9
|
Carbon Factor Matcher helps AI agents find the most appropriate emission factors from standardized environmental databases. It uses a hybrid search algorithm:
|
|
10
10
|
|
|
11
11
|
1. **Keyword + Embedding retrieval** — Field-weighted keyword scoring and semantic similarity to find candidate factors
|
|
12
|
-
2. **Quality-based ranking** — 5-dimension data quality assessment to rank candidates
|
|
13
12
|
|
|
14
13
|
The calling AI agent selects the best match from the ranked candidates. No external LLM API needed.
|
|
15
14
|
|
|
16
15
|
### Supported Databases
|
|
17
16
|
|
|
18
|
-
- **ELCD** — European Reference Life Cycle Database (
|
|
19
|
-
- **ecoinvent 3.10** — Swiss Centre for Life Cycle Inventories (
|
|
17
|
+
- **ELCD** — European Reference Life Cycle Database (500+ factors, included in Free tier)
|
|
18
|
+
- **ecoinvent 3.10** — Swiss Centre for Life Cycle Inventories (6,000+ factors, Pro license required)
|
|
19
|
+
- **MEE** — China Ministry of Ecology and Environment (48 provincial/grid factors, Pro license required)
|
|
20
20
|
|
|
21
21
|
### Key Features
|
|
22
22
|
|
|
23
|
-
-
|
|
23
|
+
- Hybrid keyword + embedding matching (DashScope text-embedding-v4)
|
|
24
24
|
- Multi-language support (Chinese/English activity descriptions)
|
|
25
25
|
- Zero configuration — works out of the box after installation
|
|
26
26
|
- MCP-compatible — works with Claude, Cursor, Windsurf, Cline, Continue, and any MCP client
|
|
@@ -128,8 +128,8 @@ The Free tier works immediately after installation (300 queries/day, ELCD databa
|
|
|
128
128
|
|
|
129
129
|
| Plan | Price | Features |
|
|
130
130
|
|------|-------|----------|
|
|
131
|
-
| **Free** | $0 | ELCD database (
|
|
132
|
-
| **Pro** | $5 (one-time) | ELCD + ecoinvent (
|
|
131
|
+
| **Free** | $0 | ELCD database (500+ factors), keyword search, 300 queries/day |
|
|
132
|
+
| **Pro** | $5 (one-time) | ELCD + ecoinvent + MEE (6,370+ factors), hybrid keyword + embedding matching, unlimited queries |
|
|
133
133
|
|
|
134
134
|
### Purchase License Key
|
|
135
135
|
|
|
@@ -164,13 +164,13 @@ Note: No external LLM API configuration needed. The calling AI agent handles fin
|
|
|
164
164
|
|
|
165
165
|
### `factor_match`
|
|
166
166
|
|
|
167
|
-
Match activity data to emission factors. Free tier uses keyword search; Pro tier uses hybrid
|
|
167
|
+
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.
|
|
168
168
|
|
|
169
169
|
**Input:**
|
|
170
170
|
```json
|
|
171
171
|
{
|
|
172
|
-
"activity_data": "
|
|
173
|
-
"top_k":
|
|
172
|
+
"activity_data": "electricity, medium voltage, industrial grid, China, Guangdong",
|
|
173
|
+
"top_k": 5
|
|
174
174
|
}
|
|
175
175
|
```
|
|
176
176
|
|
|
@@ -179,14 +179,17 @@ Match activity data to emission factors. Free tier uses keyword search; Pro tier
|
|
|
179
179
|
{
|
|
180
180
|
"candidates": [
|
|
181
181
|
{
|
|
182
|
-
"
|
|
183
|
-
"
|
|
184
|
-
"
|
|
185
|
-
"
|
|
186
|
-
"
|
|
187
|
-
"
|
|
188
|
-
"
|
|
189
|
-
"
|
|
182
|
+
"name": "electricity, provincial grid, Guangdong (广东)",
|
|
183
|
+
"value": 0.4419,
|
|
184
|
+
"unit": "kgCO2/kWh",
|
|
185
|
+
"geography": {"location": "China, Guangdong (广东)"},
|
|
186
|
+
"source": "MEE (Ministry of Ecology and Environment), China",
|
|
187
|
+
"source_year": 2023,
|
|
188
|
+
"db_source": "mee",
|
|
189
|
+
"keyword_score": 0.8293,
|
|
190
|
+
"embedding_score": 0.6779,
|
|
191
|
+
"hybrid_score": 0.7233,
|
|
192
|
+
"final_score": 0.7233
|
|
190
193
|
}
|
|
191
194
|
],
|
|
192
195
|
"selection_guidance": "从候选列表中选择最匹配的排放因子..."
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nikeandocean/carbon-factor-matcher",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "MCP server for intelligent emission factor matching — connects AI agents with carbon emission factor databases (ELCD, ecoinvent)",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|