How prism-lca/life-cycle-assessment-mcp works
This repository provides an in-process life-cycle-assessment (LCA) service: users submit a product graph, the engine calculates inventory and impact results, and service modules expose search and visualizations. Separate interchange modules convert LCA datasets to and from several industry formats. The README is empty; relationships below are limited to those indicated by the source index and sampled source, so some possible runtime wiring is omitted.
Main entry points: api.py Service API · engine.py LCA Engine · archive.py ZIP Safety · importer.py Format Dispatch
Components 25
Service and API
- HTTP Server
lca_server.py - Service API
lca_core/api.py - Imported Activity
lca_core/imported_activity.py - JSON-LD
lca_core/jsonld.py - Visualization
lca_core/visualization.py - SVG Renderer
lca_core/svg_renderer.py
LCA Calculation
- LCA Engine
lca_core/engine.py - Contribution Graph
lca_core/contribution_graph.py - Background Intensity
lca_core/background_intensity.py - Background SVG
lca_core/background_svg.py - LCA Models
lca_core/models.py
Inventory and Search
- Mock Database
lca_core/mock_database.py - Inventory Search
lca_core/search.py
Interchange
- Format Dispatch
lca_core/interchange/importer.py - Export Dispatch
lca_core/interchange/exporter.py - ZIP Safety
lca_core/interchange/archive.py - Bundle Validation
lca_core/interchange/bundle.py - EcoSpold2
lca_core/interchange/ecospold2.py - ILCD Import
lca_core/interchange/ilcd.py - ILCD Export
lca_core/interchange/ilcd_export.py - openLCA
lca_core/interchange/openlca.py - SimaPro
lca_core/interchange/simapro.py - TIDAS Import
lca_core/interchange/tidas.py - TIDAS Export
lca_core/interchange/tidas_export.py
Other components
- User
Connections 36
- User → HTTP Server: submits requests
- HTTP Server → Service API: uses API
lca_server.py - Service API → LCA Engine: runs calculations
lca_core/api.py - Service API → Inventory Search: queries inventory
lca_core/api.py - Service API → Background SVG: requests rendering
lca_core/api.py - Service API → Imported Activity: uses activity data
lca_core/api.py - Service API → JSON-LD: uses JSON-LD
lca_core/api.py - Service API → Visualization: builds visualizations
lca_core/api.py - LCA Engine → LCA Models: uses models
lca_core/engine.py - LCA Engine → Contribution Graph: builds contributions
lca_core/engine.py - LCA Engine → Mock Database: uses database
lca_core/engine.py - LCA Engine → Inventory Search: uses inventory search
lca_core/engine.py - LCA Engine → Background Intensity: attaches intensities
lca_core/engine.py - Visualization → SVG Renderer: renders SVG
lca_core/visualization.py - Format Dispatch → EcoSpold2: dispatches imports
lca_core/interchange/importer.py - Format Dispatch → ILCD Import: dispatches imports
lca_core/interchange/importer.py - Format Dispatch → openLCA: dispatches imports
lca_core/interchange/importer.py - Format Dispatch → SimaPro: dispatches imports
lca_core/interchange/importer.py - Format Dispatch → TIDAS Import: dispatches imports
lca_core/interchange/importer.py - Export Dispatch → EcoSpold2: dispatches exports
lca_core/interchange/exporter.py - Export Dispatch → ILCD Export: dispatches exports
lca_core/interchange/exporter.py - Export Dispatch → openLCA: dispatches exports
lca_core/interchange/exporter.py - Export Dispatch → SimaPro: dispatches exports
lca_core/interchange/exporter.py - Export Dispatch → TIDAS Export: dispatches exports
lca_core/interchange/exporter.py - EcoSpold2 → ZIP Safety: uses ZIP handling
lca_core/interchange/ecospold2.py - EcoSpold2 → Bundle Validation: uses bundle helpers
lca_core/interchange/ecospold2.py - ILCD Import → ZIP Safety: uses ZIP handling
lca_core/interchange/ilcd.py - ILCD Export → ZIP Safety: uses ZIP handling
lca_core/interchange/ilcd_export.py - ILCD Export → Bundle Validation: uses bundle helpers
lca_core/interchange/ilcd_export.py - openLCA → ZIP Safety: uses ZIP handling
lca_core/interchange/openlca.py - openLCA → Bundle Validation: uses bundle helpers
lca_core/interchange/openlca.py - SimaPro → ZIP Safety: uses ZIP handling
lca_core/interchange/simapro.py - SimaPro → Bundle Validation: uses bundle helpers
lca_core/interchange/simapro.py - TIDAS Import → ZIP Safety: uses ZIP handling
lca_core/interchange/tidas.py - TIDAS Export → ZIP Safety: uses ZIP handling
lca_core/interchange/tidas_export.py - TIDAS Export → Bundle Validation: uses bundle helpers
lca_core/interchange/tidas_export.py