MCP server for Netgrif Application Engine, running as a NAE cluster plugin
193
An MCP server for Netgrif Application Engine (NAE), packaged as a NAE cluster plugin. It registers itself on the admin node over gRPC and exposes one MCP endpoint per cluster instead of one per engine.
Development use only.
/mcpis not authenticated and callers are identified through module-compatible impersonation tokens. Anyone who can reach port8700acts as the system user and, with a token, as that token's user. Process, user, node and application tools always run as the configured admin account. The jar binds to127.0.0.1by default; this image setsSERVER_ADDRESS=0.0.0.0so container networking works. Publish port8700only to trusted hosts.
The plugin runs next to an existing NAE cluster (admin + engines) as a separate Spring Boot service and serves the
Model Context Protocol over Streamable HTTP at /mcp.
| Area | Channel |
|---|---|
| Cases and tasks | Plugin gRPC action API (impersonated user, else system user) |
| Processes | Admin REST /api/petrinet/** under the admin account |
| Users | Admin REST /api/users/** under the admin account |
| Nodes, plugins, application packages, realms | Admin REST, plugin-only tools |
Processes are deployed by worker name (the admin imports onto a running replica) or as multi-process application
packages (ZIP upload, then deploy). Use list_nodes to find worker names.
38 tools in total:
whoami, list_processes, get_process, deploy_process, delete_process, create_case, get_case,
delete_case, list_tasks_of_case, get_task, assign_task, cancel_task, finish_task, execute_task,
set_data_at_task, get_user, create_user, delete_user, assign_role.list_nodes, get_node, list_plugins, get_plugin, list_applications,
get_application, upload_application, deploy_application, delete_application, deploy_process_to_worker,
plus realm and role-administration tools (list_realms, get_realm, create_realm, update_realm,
delete_realm, switch_realm, current_realm, list_global_roles, list_process_roles).The plugin also registers an mcp entry point, so a process action can inspect the server:
Plugin.naeMcpPlugin.mcp.info() and Plugin.naeMcpPlugin.mcp.tools().
The cluster must be running and reachable. Start the plugin, point it at the admin REST API and tell it how the cluster reaches it:
docker run -d --name mcp-nae-plugin \
--network netgrif-platformnet \
-p 127.0.0.1:8700:8700 \
-p 9090:9090 \
-e NETGRIF_ENGINE_MCP_IMPERSONATION_ENABLED=true \
-e NETGRIF_ENGINE_MCP_PLUGIN_ADMIN_BASE_URL=http://nae-admin:8888 \
-e NETGRIF_ENGINE_MCP_PLUGIN_ADMIN_USERNAME=admin \
-e NETGRIF_ENGINE_MCP_PLUGIN_ADMIN_PASSWORD=change-me \
-e NETGRIF_ENGINE_MCP_PLUGIN_ADMIN_DEFAULT_WORKER_NAME="NETGRIF Root Worker" \
-e NETGRIF_PLUGIN_SERVICE_HOST=mcp-nae-plugin \
-e NETGRIF_PLUGIN_SERVICE_ADMIN_NODE_HOST=nae-admin \
netgrif/mcp-nae-plugin:1.0.0
Then point your MCP client at:
http://<host>:8700/mcp
Health check: GET /manage/health returns UP (the image ships a HEALTHCHECK using it).
Environment variables follow Spring relaxed binding.
NETGRIF_ENGINE_MCP_IMPERSONATION_ENABLED=true is required — the plugin refuses to start without it.
| Variable | Default | Purpose |
|---|---|---|
NETGRIF_ENGINE_MCP_IMPERSONATION_ENABLED | none (required true) | Acknowledges the development-only security model. |
NETGRIF_ENGINE_MCP_IMPERSONATION_MCP_TOKEN_KEY | none (required) | Base64 32-byte AES key for impersonation tokens. |
NETGRIF_ENGINE_MCP_PLUGIN_ADMIN_BASE_URL | none (required) | Base URL of the admin REST API. |
NETGRIF_ENGINE_MCP_PLUGIN_ADMIN_USERNAME / ..._PASSWORD | none (required) | Admin account for processes, users, nodes and applications. |
NETGRIF_ENGINE_MCP_PLUGIN_ADMIN_DEFAULT_REALM_ID | Admin | Realm for user operations and token resolution. |
NETGRIF_ENGINE_MCP_PLUGIN_ADMIN_DEFAULT_WORKSPACE_ID | default | Workspace for application tools. |
NETGRIF_ENGINE_MCP_PLUGIN_ADMIN_DEFAULT_WORKER_NAME | unset | Worker used by deploy_process. |
NETGRIF_ENGINE_MCP_PLUGIN_ADMIN_DEFAULT_USER_PASSWORD | none (required) | Password for users created without one. |
NETGRIF_PLUGIN_SERVICE_HOST | localhost | Address the cluster uses to reach this plugin. |
NETGRIF_PLUGIN_SERVICE_GRPC_PORT | 9090 | Plugin gRPC port the cluster calls. |
NETGRIF_PLUGIN_SERVICE_ADMIN_NODE_HOST / ..._GRPC_PORT | localhost / 9999 | Where the plugin registers. |
SERVER_PORT | 8700 | HTTP port of /mcp. |
| Port | Protocol | Purpose |
|---|---|---|
8700 | HTTP | /mcp (unauthenticated) and /manage/health. |
9090 | gRPC | Plugin action API and registration; the cluster calls it. |
eclipse-temurin:21-jre, Java 21, single executable jar.10001:10001) with a writable /app/log (LOGGING_FILE_PATH).SERVER_ADDRESS=0.0.0.0, SERVER_PORT=8700,
NETGRIF_PLUGIN_SERVICE_GRPC_PORT=9090.LICENSE.txt and THIRD-PARTY.txt next to the jar.delete_user is not supported: the admin REST API has no user-delete route, so the tool returns an error message.NETGRIF Community License 2.0: free for development, testing, evaluation, education, and other non-production use. Production use requires a commercial license from NETGRIF, s.r.o. See netgrif.com/license.
docker pull netgrif/mcp-nae-plugin:1.0.0