
openLCA MCP Server
io.github.Below280由 GitHub 帳號 Below280 發布v1.16.0更新於 Oct 24, 2026
Connect AI assistants to openLCA. 35 tools for database search, model building, and LCIA.
概覽
將 AI 助理連接到執行中的 openLCA 實例,讓它能瀏覽 LCA 資料庫、建立模型、稽核模型並執行衝擊計算。
- 可以做什麼
- 瀏覽資料庫:統計與搜尋製程、流、產品系統、衝擊評估方法與參數,查詢單位與化學同義詞,並自動辨識資料庫系列(ecoinvent 或 FLCAC)。建立與編輯模型:建立或更新全域參數、流、製程與產品系統,並在確認後刪除實體。稽核模型:擷取模型資料夾、檢查結構、驗證連結與參數、檢視資料品質並找出流的使用位置。計算:基準衝擊評估、貢獻分析、上游貢獻樹、蒙地卡羅不確定性、清單流、情境與敏感度分析,包括從 CSV 檔執行。讀取資料庫資訊、助理規則等內建資源。
- 適用情境
- 適合已在 openLCA 中工作的 LCA 與 EPD 從業人員,希望以對話方式完成資料庫瀏覽、模型建立、驗證與衝擊計算,包括情境、敏感度與蒙地卡羅分析。
- 執行需求
- 以本機 Python 程序執行(pip install b280-olca-mcp,以 python -m b280_olca_mcp 啟動),需要執行中的 openLCA 並啟動其 IPC 伺服器(連接埠 8080),透過環境變數 OLCA_PORT 設定。需要支援 stdio 的 MCP 用戶端;ChatGPT 需另設通道。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 openLCA MCP Server,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
openLCA MCP Server
An MCP (Model Context Protocol) server that connects AI assistants to a running openLCA instance. Developed and tested with Claude Desktop; compatible with any MCP client that supports stdio transport. Built by Below280, the UK partner for openLCA.
The server exposes 35 tools covering the full LCA workflow: exploring databases, building and editing models, running calculations (scenarios, sensitivity, Monte Carlo, contribution analysis), auditing and validating models, and extracting data quality assessments. All calculation patterns are tested against production ecoinvent databases.
The server works with both ecoinvent-family databases (ecoinvent, EN15804GD, HiQLCD, BAFU) and FLCAC-family databases (LCA Commons, US LCI, USEEIO). It asks which family you are using, or auto-detects from the flow property names.
Available on PyPI and the MCP Registry.
Install
Quick setup (PyPI)
This installs the server and its dependencies (mcp, olca-ipc) in one step. The server runs from anywhere with python -m b280_olca_mcp.
Development setup (GitHub)
Clone the repository for the latest code, the React dashboard, or if you want to modify the server:
The server entry point is b280_olca_mcp/server.py.
What it does
Someone using this MCP can say things like:
- 'Make me a model with 34 kWh UK electricity, 5 kg sodium hydroxide, and 34 kWh steam'
- 'Build an EPD model from this LCI'
- 'Run two scenarios, one with transport at 100 km and one at 500 km'
- 'Which processes contribute most to climate change in my system?'
- 'Vary the electricity and PET resin parameters by 10%'
- 'Validate my product system and check if the linking is correct'
- 'Run 1000 Monte Carlo iterations and show me the uncertainty'
- 'Help me connect to openLCA from R / Go / Rust'
- 'What can you do?' (the help tool)
The AI assistant handles the conversation, builds the tool calls, and presents results visually with charts, tables, and exportable data.
Connect your MCP client
The server uses stdio transport. Any MCP client that can spawn a local Python process will work.
Claude Desktop
In Claude Desktop, go to Settings > Developer > Edit Config. Add an openLCA entry to the mcpServers section.
If you installed via PyPI:
If you cloned from GitHub:
On Windows, if Claude Desktop cannot find Python, use the full path to your Python executable.
Restart Claude Desktop after saving.
Cursor
Go to Settings > Tools & MCP > Add MCP Server. Choose stdio transport, set the command to python and the argument to -m b280_olca_mcp (PyPI) or the path to b280_olca_mcp/server.py (GitHub clone). Cursor picks up config changes without restarting.
VS Code
Add the server to .vscode/mcp.json in your workspace or user settings:
Note: VS Code uses servers as the root key, not mcpServers. If using GitHub Copilot, switch Copilot Chat to Agent mode.
ChatGPT
ChatGPT cannot directly launch a local stdio server. OpenAI provides the Secure MCP Tunnel, which bridges ChatGPT to a local MCP server without exposing anything publicly. The architecture is:
The tunnel launches the B280 server (python -m b280_olca_mcp) on your machine. No changes to the B280 server are needed; it remains stdio throughout. No additional search or fetch tools are required for ChatGPT custom MCP servers.
B280's existing tool annotations (read-only, destructive, idempotent) are used by ChatGPT when deciding whether to auto-approve or prompt for confirmation.
For the full setup guide, including installation, configuration, troubleshooting and security considerations, see docs/chatgpt.md.
ChatGPT support is currently experimental. A remote Streamable HTTP transport option may be added in future for users who prefer not to run the local tunnel.
Other MCP clients
Any client that spawns a local Python process over stdin/stdout should work. With PyPI: python -m b280_olca_mcp. With GitHub clone: python path/to/b280_olca_mcp/server.py.
Beta software. This server is under active development. Test it on a copy of your database before connecting a production database. Report issues on GitHub or at [email protected].
Start it
- Open your database in openLCA
- Start the IPC server (Tools > Developer Tools > IPC Server > green play button, port 8080)
- Restart your MCP client (or reconnect)
- Ask something like 'what can you do?' or 'what's in my openLCA database?'
After creating or modifying anything, press the Refresh button in openLCA's toolbar to see changes in the GUI.
Data security
The MCP server runs locally and communicates with openLCA on localhost. The AI client (Claude Desktop or equivalent) sends tool results to its provider's servers for processing. This means process names, exchange data, parameter values, and impact results from your database will be in the conversation.
Do not connect a confidential client database through a personal or free-tier AI account. Use a business or enterprise account with appropriate data retention controls, and check your provider's data processing terms before connecting any database containing sensitive information.
Tools
Explore (11 tools)
Build (8 tools)
Audit (6 tools)
Calculate (9 tools)
Meta (1 tool)
Tool annotations
Every tool carries MCP tool annotations (readOnlyHint, destructiveHint, idempotentHint, openWorldHint) so clients can decide whether to auto-approve or prompt for confirmation. Explore and Calculate tools are read-only. Build tools signal that they modify the database. delete_entity is marked destructive. CSV tools are marked as writing files to disk. chemical_synonyms is marked as reaching an external service (PubChem).
Resources
The server exposes four MCP resources that AI clients can read on demand:
The IPC protocol reference enables AI clients to help users connect to openLCA from any programming language by generating client code from the protocol specification.
EPD model building
The server includes a guided workflow for building EN15804 EPD models from LCI data. The AI maps LCI items to lifecycle modules (A1-D), creates the folder structure, bridge processes, module processes, and product systems. Ask 'build an EPD from this LCI' to start.
Standalone scripts
For repeated analyses, the server recommends standalone Python scripts that run without AI tokens. After a scenario or sensitivity calculation, it offers to generate the CSV file needed to run the equivalent script from the openLCA-IPC-tools-python repository.
Related repositories
About
Built by Below280 Limited, a UK LCA, EPD and CBAM consultancy and official UK partner for openLCA. The calculation patterns in this server are derived from production scripts used in EPD and LCA consulting work, tested against ecoinvent 3.10/3.11/3.12, EN15804GD, and US Federal LCA Commons (FLCAC) databases.
For issues: GitHub Issues or [email protected]
Documentation
- Connecting AI to openLCA (full setup guide)
- openLCA scripting knowledge base
- openLCA Manual
Licence
MPL-2.0
mcp-name: io.github.Below280/b280-olca-mcp
來源:README.md,提交 191f3d3
工具
0版本歷史
3- v1.16.0最新Sep 27, 2026
- v1.15.0Sep 25, 2026
- v1.14.0Sep 16, 2026
評分
已滿足適用檢查項的 40%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。