Back to Home
puran-water icon

dexpi-sfiles-mcp-server

by puran-water

Overview

An MCP server enabling LLM-assisted generation, manipulation, validation, and visualization of engineering diagrams (BFD, PFD, P&ID) following DEXPI and SFILES standards.

Installation

Run Command
docker-compose up --build

Environment Variables

  • LOG_LEVEL
  • MCP_PORT
  • ELK_NODE_COMMAND
  • ELK_WORKER_SCRIPT_PATH
  • ELK_WORKER_TIMEOUT_SEC
  • GRAPHICBUILDER_HOST
  • GRAPHICBUILDER_PORT
  • GRAPHICBUILDER_CONFIG
  • PROTEUS_VIEWER_PORT
  • MODEL_SIZE_THRESHOLD_KB

Security Notes

The server uses `eval()` in `src/tools/pfd_expansion_engine.py` for template condition evaluation, which is a critical vulnerability if template definitions or runtime parameters can be influenced by untrusted input, allowing arbitrary code execution. Extensive use of `subprocess.run()` calls in various modules (e.g., `project_persistence.py`, `elk.py`, `graphicbuilder-service.py`) poses a risk of command injection if arguments are not rigorously sanitized. The server exposes an MCP API, and visualization components run separate Node.js and Flask services, widening the attack surface. `sys.path.append` is used, which can be a module hijacking risk in untrusted environments.

Similar Servers

Stats

Interest Score32
Security Score3
Cost ClassMedium
Avg Tokens1000
Stars2
Forks1
Last Update2025-12-05

Tags

LLMEngineeringP&IDPFDBFDDEXPISFILESProcess DesignDiagrammingGraph Theory