Updated 5 May 2025
ScopeGreen can be integrated directly into Claude Desktop through the Model Context Protocol (MCP), giving your AI assistant direct access to sustainability metrics data without copying and pasting. This guide walks you through setting up and using the ScopeGreen MCP server.
Model Context Protocol (MCP) allows AI assistants like Claude to interact with external tools and data sources. By connecting Claude Desktop to the ScopeGreen MCP server, you enable Claude to:
Before setting up the ScopeGreen MCP server, ensure you have:
git clone https://github.com/scope4/MCP_ScopeGreen
cd MCP_ScopeGreen
# Using venv (standard Python)
python -m venv .venv
# On Windows
.venv\Scripts\activate
# On macOS/Linux
source .venv/bin/activate
pip install -r requirements.txt
Add the ScopeGreen MCP server to your Claude Desktop configuration:
claude_desktop_config.json
file{
"mcpServers": {
"ScopeGreen LCA": {
"command": "/path/to/MCP_ScopeGreen/.venv/bin/python",
"args": [
"/path/to/MCP_ScopeGreen/server.py"
],
"env": {
"SCOPEGREEN_API_KEY": "your_api_key_here"
}
}
}
}
Note: On Windows, use double backslashes (
\\
) in paths.
Restart Claude Desktop to apply the configuration changes.
Once configured, you'll see the MCP tools icon in Claude Desktop's chat interface. Click it to access the ScopeGreen tools:
Note: Explicitly ask Claude to use ScopeGreen in your prompts to make sure that the MCP is actually used.
When Claude uses the ScopeGreen tools, it will have access to the same parameters as the API:
Parameter | Description |
---|---|
item_name | Name of the item to find metrics for (REQUIRED) |
metric | The specific environmental metric (Carbon footprint, EF3.1 Score, Land Use) |
year | Year of the requested data (≥ 2020) |
geography | Region for the requested data (ISO codes like 'DE', 'US') |
num_matches | How many ranked matches to return (1-3) |
unit | Target unit for conversion (e.g., 'g', 'kg', 'kWh') |
domain | Category filter (Materials & Products, Energy, Transport, etc.) |
not_english | Set to true for non-English item names |
~/Library/Application Support/Claude/logs/
%APPDATA%\Claude Desktop\logs\
Need help? → tommaso@scope4.dev
The ScopeGreen MCP server uses the following components:
The server acts as a bridge between Claude and the ScopeGreen API, translating Claude's requests into API calls and formatting the responses in a way Claude can understand.