Skip to main content
Glama
openLCA MCP Server

openLCA MCP Server

by Below280

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OLCA_PORTNoThe port on which the openLCA IPC server is running. In the setup example, this is set to '8080'.8080

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
olcabasic_runA

Run olcaBASIC code against openLCA, in a session that keeps its state between calls.

  1. One statement per line; names in "double quotes"; blocks end with END .

  2. Explore with FIND, SHOW and CAT; build with BRIDGE, MAKE PROCESS and SYSTEM; analyse with CALCULATE "system" USING "method", then RESULT ... on the result it leaves open, CONTRIBUTION, SENSITIVITY. PARAMETER name = value makes an openLCA parameter (global at the top level, the process's own inside MAKE PROCESS or BRIDGE, the scenario's value inside SCENARIO); LET is a program variable and never writes to openLCA.

  3. The language refuses anything that would build or calculate a wrong model: a background process used without a bridge, an ambiguous or partial name, a changed block run again, a product system that is out of date or failed VALIDATE, a programme rule broken in an EPD. There is no override. Each error gives the line and a hint that says what to type: do that.

  4. A program stops at its first error. dry_run=true checks a program without touching openLCA. Use a FOR loop in one program for batch work.

  5. The reply is JSON: ok, text, data (the structured result of each command, RESULT queries included), errors, warnings. DELETE needs CONFIRM DELETE ON. Commands that ask a person (PARAMETERISE ... ALL, changing a method olcaBASIC did not make, SHUTDOWN SERVER) only run in the olcaBASIC terminal; INPUT runs here only with a DEFAULT, which it takes. Call olcabasic_help first for the command list; olcabasic_help with a topic or a command name gives syntax and examples.

olcabasic_helpA

The olcaBASIC command reference, straight from the language's command registry. Without a topic: the rules of the language, the commands most programs use and the name of every command (short; read it before the first olcabasic_run). With a topic (navigation, explore, build, edit, entities, parameters, calculate, result, scenarios, check, epd, output, programming, session) or a command name (for example 'MAKE PROCESS' or 'RESULT CONTRIBUTION'): syntax, an example and notes.

olcabasic_resetA

Clear the olcaBASIC session's state: variables, SUBs, folders, scenarios, last results and CONFIRM DELETE. The openLCA database is not touched and the connection stays open.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
Database InformationOverview of the connected openLCA database
LCA Assistant InstructionsIMPORTANT: Read this first. How to work with the user: when to ask, how to present results, how to check a model. Short; the rules of the language itself are in olcabasic_help.
openLCA IPC Protocol ReferenceComplete JSON-RPC protocol specification for openLCA IPC. All 60 methods with parameter formats, response structures, curl examples, and known gotchas. Use this to help users connect to openLCA from any programming language.
openLCA ResourcesLinks to databases, documentation, forums, tutorials, and training courses. Use when someone asks where to learn openLCA, find data, or get help.

TDQS

A4.3/5.0

Scored across 3 tools

Disambiguation4/5

The three tools have distinct roles: help (documentation), run (execution), reset (state clearing). run's description is dense but its purpose is unambiguous relative to help and reset. Only minor overlap exists in that help's topic list overlaps with run's inline syntax summary.

Naming Consistency5/5

All three follow a strict prefix_namespace_verb pattern (olcabasic_help, olcabasic_reset, olcabasic_run), consistent snake_case with a shared prefix.

Tool Count4/5

Three tools is thin for a language-driven server, but a REPL-style design (help/run/reset) is a coherent minimal surface. It earns its tools, though help doubles as both overview and reference, and one might expect at least a session-inspection or status tool.

Completeness4/5

Execution, documentation and session reset cover the essential lifecycle for a code-execution MCP. Gaps are modest: no read-only query/validate tool distinct from dry_run, and no way to list or resume sessions, but dry_run and reset largely compensate.

Maintenance

ActivityNo data
ResponsivenessOutdated data