fme-mcp-ultra
Deprecated in favor of fme-mcp: https://github.com/mwjouini/fme-mcp
<div align="center">
<img src="https://raw.githubusercontent.com/mwjouini/fme-mcp/main/docs/assets/logo.png" alt="FME MCP logo" width="160" height="160" style="margin-bottom: 12px;" />
<h1>FME MCP</h1>
<p><strong>Universal, secure, production-grade Model Context Protocol (MCP) server for Safe Software FME (2018.0 – 2026+), FME Form, FME Flow, and spatial data engineering.</strong></p>
<p>
<a href="https://pypi.org/project/fme-mcp/"><img src="https://img.shields.io/pypi/v/fme-mcp.svg" alt="PyPI version" /></a>
<a href="https://pypi.org/project/fme-mcp/"><img src="https://img.shields.io/pypi/dm/fme-mcp.svg" alt="PyPI Downloads" /></a>
<a href="https://github.com/mwjouini/fme-mcp/actions/workflows/ci.yml"><img src="https://github.com/mwjouini/fme-mcp/actions/workflows/ci.yml/badge.svg" alt="CI" /></a>
<a href="https://github.com/mwjouini/fme-mcp/actions/workflows/security.yml"><img src="https://github.com/mwjouini/fme-mcp/actions/workflows/security.yml/badge.svg" alt="Security Audit" /></a>
<a href="https://opensource.org/licenses/Apache-2.0"><img src="https://img.shields.io/badge/Licence-Apache_2.0-blue.svg" alt="Licence: Apache-2.0" /></a>
<a href="https://www.python.org/"><img src="https://img.shields.io/badge/Python-3.10%20%7C%203.11%20%7C%203.12%20%7C%203.13-blue.svg" alt="Python: 3.10+" /></a>
<a href="https://modelcontextprotocol.io/"><img src="https://img.shields.io/badge/MCP-2025--2026_Compliant-green.svg" alt="Model Context Protocol" /></a>
<a href="https://www.safe.com/"><img src="https://img.shields.io/badge/Safe_Software_FME-2018.0%20--%202026%2B%20(Form%20%26%20Flow)-orange.svg" alt="FME Compatibility" /></a>
</p>
</div>
Usable by any standard MCP client: **Claude Desktop, Claude Code, Cursor, VS Code, Antigravity, Windsurf, LangChain, and OpenAI Agents SDK.**
---
## 🌟 Overview
Safe Software introduced native Model Context Protocol (MCP) support in FME 2026 (`safe.mcp` / `MCPCaller` in 2026.1 and native Flow MCP Server in 2026.2). However, many teams run on **FME 2018.0 through 2025**, which previously lacked any way to connect LLMs and AI agents with their spatial data pipelines.
**FME MCP** (`fme-mcp`) bridges this gap:
1. **Works with All FME Releases (2018.0 to 2026+)**: Works locally with FME Form (`fme.exe` and `fmeobjects` bindings) and remotely with FME Flow REST APIs (v3 & v4).
2. **Dynamic Workspace Tools**: Discovers `.fmw` workspaces, extracts published parameters, and exposes them as typed MCP tools for your AI assistant.
3. **Desktop Interactivity**: Live environment diagnostics, XML canvas topology inspection, detached GUI launching (`FME Workbench`, `FME Data Inspector`), and dataset feature previews.
4. **Security by Default**: Directory sandboxing (`PathGuard`), shell command guards (`CommandGuard`), network filtering (`SSRF Guard`), and automatic PII/credential redaction.
5. **Outbound MCP Federation**: Acts as both an MCP server and client, allowing multi-server tool chaining.
6. **Geospatial Utilities**: Built-in coordinate reprojection, buffering, geometry validation, dataset profiling, and data contracts.
---
## 🏛️ System Architecture
```mermaid
flowchart TB
subgraph Clients["MCP Clients (LLMs & Agents)"]
C1["Claude Desktop / Claude Code"]
C2["Antigravity / Cursor / VS Code"]
C3["AI Agents SDK / LangChain"]
end
subgraph CoreServer["FME MCP Server"]
subgraph Transports["Transports"]
T1["Standard I/O (stdio)"]
T2["Streamable HTTP / SSE"]
end
subgraph Security["Security & Governance Layer"]
S1["PathGuard (Directory Sandboxing)"]
S2["CommandGuard (Subprocess Guard)"]
S3["SSRF Guard (Network Allowlist)"]
S4["RedactionEngine (Secret & PII Scrubbing)"]
S5["RBAC & ABAC Policy Engine"]
S6["Tamper-Evident Audit Chain"]
end
subgraph Engine["FME Abstraction Engine"]
E1["FME Form Local Runner (fme.exe & fmeobjects)"]
E2["FME Flow REST Client (v3/v4)"]
E3["Parameter Mapper & Schema Inferer"]
E4["Log Streamer & Diagnostic Parser"]
end
subgraph Tools["Tools Registry (240+ Capabilities)"]
TL1["Workspaces & Jobs"]
TL2["Spatial & GIS (Vector, Raster, CAD/BIM)"]
TL3["Data Engineering & Profiling"]
TL4["Quality & Data Contracts"]
TL5["Catalogue & Lineage"]
TL6["MCP Federation (MCPCaller Client)"]
end
end
subgraph Targets["Target Infrastructure"]
FME_Form["Local FME Form Engine (2018.0 - 2026+)"]
FME_Flow["Enterprise FME Flow Server"]
Ext_MCP["Remote Federated MCP Servers"]
end
Clients --> Transports
Transports --> Security
Security --> Engine
Engine --> Tools
Engine --> FME_Form
Engine --> FME_Flow
Tools --> Ext_MCP
```
---
## ⚡ 1-Command Universal Installation (Recommended)
Get up and running immediately with **FME MCP** — **ZERO dependencies** (no Python, no `uv`, and no `uvx` needed)!
The universal installer automatically discovers your local **FME Form** installation, hooks into its native engine runtime or fetches the pre-built standalone binary, and **automatically configures Claude Desktop, Cursor, Antigravity, VS Code, and Windsurf**:
### Windows (PowerShell)
```powershell
irm https://raw.githubusercontent.com/mwjouini/fme-mcp/main/scripts/install.ps1 | iex
```
### Linux / macOS (Bash)
```bash
curl -fsSL https://raw.githubusercontent.com/mwjouini/fme-mcp/main/scripts/install.sh | bash
```
> **✨ Key Highlights of the 1-Command Installer:**
> - **Zero External Dependencies**: Operates out-of-the-box on standard systems without requiring Python, uv, or build tools.
> - **Native FME Form Engine Detection**: Seamlessly detects FME Form (2018.0 through 2026+) via Windows Registry, environment variables (`FME_HOME`, `FME_DIR`), standard directories (`C:\Program Files\FME`, `/opt/fme`), and system `PATH`.
> - **Auto-Configures AI Clients**: Instantly detects and writes ready-to-run MCP configurations for **Claude Desktop**, **Cursor**, **Antigravity**, **VS Code**, and **Windsurf**.
> - **Instant Health Verification**: Automatically runs `fme-mcp doctor` to verify licenses, engine bindings, and spatial tools.
---
## 📦 Alternative Installation Options
### Option A: Standalone Executable (GitHub Releases)
Download pre-compiled self-contained single-file binaries (`fme-mcp.exe` for Windows, `fme-mcp` for Linux) directly from [GitHub Releases](https://github.com/mwjouini/fme-mcp/releases/latest) with no installation or Python required.
### Option B: Run with `uvx` (For Python / uv Developers)
```bash
uvx fme-mcp serve --transport stdio
```
### Option C: Standard `pip` Installation
```bash
pip install fme-mcp
fme-mcp doctor
fme-mcp serve --transport stdio
```
---
## 🔌 MCP Client Configurations
> [!TIP]
> **Automatic Setup Available**: If you ran the [1-Command Universal Installation](#-1-command-universal-installation-recommended), your MCP clients (**Claude Desktop**, **Cursor**, **Antigravity**, **VS Code**, **Windsurf**) have already been auto-detected and configured! The manual configurations below are provided for custom setups or reference.
### 1. Claude Desktop
Add this to `%APPDATA%\Claude\claude_desktop_config.json` (Windows) or `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS):
**Option A — With `uvx` (If uv is installed):**
```json
{
"mcpServers": {
"fme-mcp": {
"command": "uvx",
"args": ["fme-mcp", "serve", "--transport", "stdio"]
}
}
}
```
**Option B — With Python (`py` on Windows after `py -m pip install fme-mcp`):**
```json
{
"mcpServers": {
"fme-mcp": {
"command": "py",
"args": ["-m", "fme_mcp.cli.main", "serve", "--transport", "stdio"]
}
}
}
```
**Option C — Standalone FME Form Engine (Uses FME's embedded Python runtime):**
```json
{
"mcpServers": {
"fme-mcp": {
"command": "C:\\Program Files\\FME\\fme.exe",
"args": ["python", "-m", "fme_mcp.cli.main", "serve", "--transport", "stdio"]
}
}
}
```
### 2. Antigravity / Cursor / VS Code
Add to your client's MCP configuration settings:
```json
{
"mcpServers": {
"fme-mcp": {
"command": "fme-mcp",
"args": ["serve", "--transport", "stdio"]
}
}
}
```
### 3. Streamable HTTP / Docker Deployment
```bash
docker run -d --name fme-mcp \
-p 8000:8000 \
-e FME_FLOW_URL="https://fme-flow.your-org.com" \
-e FME_FLOW_TOKEN="your-fme-flow-api-token" \
ghcr.io/mwjouini/fme-mcp:latest
```
### 4. FME Workbench Desktop Live Hook
To allow FME Workbench to report live translation events (status, duration, features read/written) directly to your AI agent:
1. Open FME Workbench: **Navigator** -> **Workspace Parameters** -> **Scripting**.
2. Paste [`examples/fme-workbench/startup_script.py`](examples/fme-workbench/startup_script.py) into **Startup Python Script**.
3. Paste [`examples/fme-workbench/shutdown_script.py`](examples/fme-workbench/shutdown_script.py) into **Shutdown Python Script**.
4. Read the full [FME Desktop Integration Guide](docs/desktop-integration.md).
---
## 🧰 Highlighted Tools Catalogue
| Domain | Key Tools | Description |
| :--- | :--- | :--- |
| **Desktop Interactivity** | `fme_diagnose`, `fme_inspect_canvas`, `fme_open_in_workbench`, `fme_open_in_inspector`, `fme_preview_dataset` | Live environment diagnosis, XML canvas graph parsing, detached GUI launching, and instant dataset feature preview. |
| **Workspaces** | `fme_discover_workspaces`, `fme_get_workspace`, `fme_run_workspace`, `fme_compare_workspaces`, `fme_audit_performance`, `fme_export_markdown_docs` | Crawls directories, extracts published parameters, audits performance bottlenecks, exports markdown documentation, and executes `.fmw` workspaces. |
| **Spatial Analysis** | `gis_reproject`, `gis_buffer`, `gis_validate_geometry`, `gis_intersection`, `gis_difference`, `gis_simplify`, `gis_bounding_box` | High-precision CRS conversion (EPSG:4326 to 2154 / 3857), spatial boolean operations (intersection/difference), polygon simplification, bounding box extraction, circular buffering, and polygon validation. |
| **Data Engineering** | `data_read_metadata`, `data_profile` | Column analysis, null counts, distinct value distribution, and format inspection. |
| **Data Quality** | `quality_score_dataset`, `quality_generate_data_contract` | Computes completeness scores and generates standard Data Contract YAML. |
| **Catalogue** | `catalog_register_asset`, `catalog_search_assets`, `catalog_get_lineage` | Registers datasets, performs semantic search, and maps upstream/downstream dependencies. |
| **Orchestration** | `workflow_create`, `workflow_get`, `workflow_run` | Constructs multi-step execution DAGs combining FME, validation checks, and scripts. |
| **MCP Federation** | `mcp_register_server`, `mcp_list_servers` | Connects external MCP servers to chain tools and fan-out requests. |
| **Governance** | `gov_get_tenant_config`, `gov_redact_pii`, `gov_classify_dataset` | Enforces GDPR/UK-GDPR data classification and automated PII scrubbing. |
| **Diagnostics** | `fme_info`, `fme_list_transformers`, `fme_list_packages`, `fme_execute_python` | Queries build/licensing, searches 500+ transformers, and runs in-engine Python. |
---
## 🛡️ Enterprise Security Model
**FME MCP** is engineered with a strict **Default-Deny** security posture:
- **PathGuard**: Enforces canonical path resolution (`os.path.realpath`) and verifies containment within `FME_ALLOWED_DIRS`. Traversal escapes (`..`) and null bytes are rejected.
- **CommandGuard**: Zero shell invocations (`shell=False`). Executable names and arguments are validated against an authorised binary whitelist, blocking metacharacter injection (`|`, `;`, `&`, `$`).
- **SSRF Guard**: Pre-resolves outbound DNS hostnames and prevents calls to loopback (`127.0.0.1`), private networks (`10.0.0.0/8`, `192.168.0.0/16`), and cloud metadata APIs (`169.254.169.254`).
- **RedactionEngine**: Real-time scrubbing of Bearer tokens, API credentials, email addresses, and payment card numbers before output delivery.
- **Role-Based Access Control (RBAC)**: Enforces role permissions (`platform_admin`, `workspace_operator`, `spatial_analyst`, `auditor`, `read_only`).
---
## 📊 FME Version Compatibility
**FME MCP** is compatible with all versions of Safe Software FME from **2018.0 through 2026+**:
| FME Version | Compatibility | FME Form (Desktop) | FME Flow (Server) | How it works |
| :--- | :---: | :---: | :---: | :--- |
| **FME 2026+** | **Full** | ✅ Yes | ✅ Yes | Works alongside native FME 2026 MCP endpoints, adding `stdio` desktop transport and security controls. |
| **FME 2025.x** | **Full** | ✅ Yes | ✅ Yes | Direct `fme.exe` execution, in-memory `fmeobjects` bindings, canvas XML topology parsing, FME Flow REST v3. |
| **FME 2021 – 2024** | **Full** | ✅ Yes | ✅ Yes | Identical `.fmw` XML canvas schema, CLI commands, and FME Flow REST v3 API. |
| **FME 2018 – 2020** | **Full** | ✅ Yes | ✅ Yes | Full support for FME Server REST API v3 (introduced in 2018.0) and local workspace execution. |
| **FME 2015 – 2017** | **Partial** | ⚠️ CLI Only | ❌ Legacy REST v2 | Command-line `fme.exe` workspace runner supported; REST API v2 deprecated. |
---
## 💻 CLI Usage
```bash
# Verify environment and FME installation
fme-mcp doctor
# Inspect a workspace file
fme-mcp inspect path/to/workspace.fmw
# Launch stdio server for desktop clients
fme-mcp serve --transport stdio
# Launch Streamable HTTP server
fme-mcp serve --transport streamable-http --host 0.0.0.0 --port 8000
```
---
## 🤝 Contributing
Contributions are welcomed under our [Contributing Guide](CONTRIBUTING.md) and [Code of Conduct](CODE_OF_CONDUCT.md).
---
## 📄 Licence
Licensed under the **Apache License 2.0**. See [LICENSE](LICENSE) for details.
Copyright © 2026 Mohamed Wael JOUINI and Contributors.
TDQS
Scored across 38 tools
Many tools are clearly distinct, but several clusters overlap: fme_get_workspace and fme_get_workspace_parameters both return published parameters; fme_preview_dataset, data_read_metadata, data_profile, and quality_score_dataset all inspect datasets; fme_inspect_canvas, ai_explain_workspace, and fme_get_workspace all describe workspaces. Descriptions help, but an agent can still misselect within these clusters.
The tool set uses consistent category prefixes (fme_, gis_, data_, quality_, catalog_, workflow_, mcp_, ai_, gov_, util_) and mostly snake_case verb_noun naming. Minor deviations such as fme_info, util_ping, and util_version are noun-only, but the overall pattern remains predictable.
At 38 tools, this is well above the 25+ threshold and spans many domains: FME automation, GIS, data quality, catalogue, workflows, MCP federation, governance, and AI. Some tools are niche or overlapping, making the surface feel heavy and feature-creepy rather than tightly scoped.
Core FME operations and basic data/catalog/workflow/governance actions are covered, but lifecycle gaps are notable. Workflows lack list/update/delete/cancel/status, assets lack update/delete/list, MCP federation lacks unregister/get/invoke, and governance lacks policy/audit operations.