Skip to main content
Glama
jeremiahsay

GreenCalculus

GreenCalculus MCP 服务器

作为来源可溯的温室气体排放因子和可审计追踪的碳计算,以 MCP 服务器形式提供。每个返回值都带有其精确的来源单元格和固定的数据版本——因此智能体返回的数字,人可以引用,机器可以复现,而不是一个猜测。

你需要这个包吗?

大概率不需要。服务器是远程的,如果你的客户端支持远程 MCP,直接指向 URL 即可——无需安装,无需更新:

{
  "mcpServers": {
    "greencalculus": {
      "url": "https://mcp.greencalculus.com",
      "headers": { "Authorization": "Bearer YOUR_KEY" }
    }
  }
}

此包是为那些只能启动本地 stdio 进程的客户端,以及 docker run 安装而准备的。它是一个轻量桥接:将每条 JSON-RPC 消息转发到远程服务器,并原样返回回复。没有对任何方法做特殊处理,因此新工具无需发布即可在此出现。

Related MCP server: DCL Evaluator

通过 stdio 使用

{
  "mcpServers": {
    "greencalculus": {
      "command": "npx",
      "args": ["-y", "greencalculus-mcp"],
      "env": { "GREENCALCULUS_API_KEY": "YOUR_KEY" }
    }
  }
}

或者使用 Docker——-i 是必需的,-t 必须省略,因为容器的 stdin/stdout 就是传输通道,TTY 会破坏流:

{
  "mcpServers": {
    "greencalculus": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "-e", "GREENCALCULUS_API_KEY", "greencalculus/mcp"],
      "env": { "GREENCALCULUS_API_KEY": "YOUR_KEY" }
    }
  }
}

https://greencalculus.com/developers 免费获取密钥——无需信用卡。发现(initializetools/list)无需密钥即可工作;调用工具则需要密钥。

工具

工具

功能

lookup_factor

按键获取一个排放因子,附带其来源和版本

search_factors

按自由文本搜索因子库

resolve_factor

将杂乱的真实世界描述映射到最匹配的因子

explain_absence

说明因子为何不存在,而不是返回空结果

calculate_activity

活动 → 排放量,包含单位换算和 GHG Protocol 范围

calculate_electricity

基于位置和基于市场的电力

calculate_embodied

隐含碳(EN 15978),明确说明缺失的生命周期阶段

calculate_pcaf

PCAF 融资排放,包含审计追踪

calculate_freight

按运输方式、距离和载重计算的货运量

calculate_spend

基于支出的 EEIO

calculate_business_travel

跨方式的商务出行

配置

变量

默认值

含义

GREENCALCULUS_API_KEY

你的 API 密钥。GC_API_KEY 可作为别名;显式名称优先。

GREENCALCULUS_MCP_URL

https://mcp.greencalculus.com

覆盖端点。

GREENCALCULUS_MCP_TIMEOUT_MS

120000

每次请求的超时时间。

诊断信息写入 stderr。除了 JSON-RPC 之外,stdout 上不会写入任何内容——一个多余的字节都会破坏会话。

开发

npm test                      # unit tests, no network
node bin/greencalculus-mcp.js # reads JSON-RPC on stdin
docker build -t greencalculus/mcp .

其他可用资源

许可证

MIT — 见 LICENSE。该许可证涵盖此桥接。API 返回的排放因子数据带有其底层来源的许可证,每个响应中都会注明来源。

Install Server
A
license - permissive license
A
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • Deterministic Scope 1/2/3 GHG inventories with bundled factors and audit hashes.

  • AI-callable calculators and engineering models with real formulas. No hallucinated math.

  • Carbon-accounted agent compute: free footprints; certificates backed by real offset retirement.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jeremiahsay/greencalculus-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server