---
name: iblai-connect-rockwell-factorytalk
description: "Read and write Rockwell FactoryTalk DataMosaix data through the FactoryTalk DataMosaix APIs and expose it to an ibl.ai agent as an MCP tool. Use when the user asks an agent to work with Rockwell FactoryTalk DataMosaix data, or to set up a Rockwell FactoryTalk DataMosaix MCP connection on ibl.ai."
metadata:
  kind: guide
---

# Rockwell FactoryTalk DataMosaix connector for AI agents

> A starting point maintained on ibl.ai at https://ibl.ai/developer/connectors/rockwell-factorytalk — not part of the iblai/base repository. Checked against Rockwell Automation's documentation on October 20, 2026; test it against your own Rockwell FactoryTalk DataMosaix setup before you rely on it.

FactoryTalk DataMosaix is Rockwell Automation's SaaS industrial data operations platform, part of FactoryTalk Hub. Extractors bring OT, IT and engineering data (OPC UA, FactoryTalk Historian, PI AF, Optix) into one project.

## Auth & conventions

- **API:** FactoryTalk DataMosaix APIs (REST). Versioned REST APIs with Swagger UI for access management, extractors and applications. Registered applications use their credentials to reach project data (assets, time series, events) in Cognite Data Fusion.
- **Base URL:** https://dm-{module}.cloud.rockwellautomation.com/api/v1/
- **Access:** Issued by your administrator. A project member with the Data Scientist role registers a Machine-to-Machine application, which issues a client ID and a client secret shown only once. Capability groups decide what the application can read or write.
- **Auth:** OAuth 2.0 client credentials (Auth0); Single-page application sign-in. Auth0 is the identity provider: an M2M application trades its client ID and secret for a token. Each endpoint names the roles allowed to call it, and role IDs in the token differ per project.
- Keep Rockwell FactoryTalk DataMosaix credentials in environment variables or the ibl.ai credential store. Never print a token in chat and never commit one to a file.
- Destructive or outward-facing calls are marked **Confirm with the user first** — do.

## Reads

- **Assets** — The project's asset hierarchy, built from extractors and asset creation.
- **Time series and data points** — Time series and their data points; a capability group can grant READ without WRITE.
- **Events and sequences** — Events, sequences, relationships and datasets in the project.
- **Extractors and applications** — Lists of registered extractors and applications via the management APIs.

## Writes

- **Register or update extractors** — Register and update extractors (Data Configurator role).
- **Register or update applications** — Register and update applications (Data Scientist role).
- **Delete extractors or applications** — Delete a registered extractor or application. **Confirm with the user first.**

## Expose it to an ibl.ai agent (MCP)

Rockwell Automation did not publish an MCP server of its own when this skill was checked. Host a small MCP server that wraps the calls above, then register it below.

First install the ibl.ai platform skills and connect your organization (writes `IBLAI_ORG`, `IBLAI_USERNAME` and `IBLAI_API_KEY` to `.env`):

```bash
npx skills add iblai/base --all
# then, in your coding agent:
/iblai-api-login
```

Every call below sends `Authorization: Api-Token $IBLAI_API_KEY`.

1. **Register the server** — `POST https://api.iblai.app/dm/api/ai-mentor/orgs/$IBLAI_ORG/users/$IBLAI_USERNAME/mcp-servers/` with `name`, `url`, `transport` (`sse` | `websocket` | `streamable_http`) and `auth_type` (`none` | `token` | `oauth2`). Capture the returned `id`.
   - For an API key or service credential use `auth_type=token` with `auth_scope=platform` for one key across the organization, or scope it to a single agent for one key per agent.
2. **Create the connection** — `POST https://api.iblai.app/dm/api/ai-mentor/orgs/$IBLAI_ORG/users/$IBLAI_USERNAME/mcp-server-connections/` with `server`, `scope` (`platform` | `mentor` | `user`), `auth_type`, and either `credentials` + `authorization_scheme` or a `connected_service` id for OAuth. Credentials are masked on read; never send a masked value back.
3. **Enable it on the agent** — `GET https://api.iblai.app/dm/api/ai-mentor/orgs/$IBLAI_ORG/users/$IBLAI_USERNAME/mentors/{agent_id}/settings/`, add `mcp-tool` to `tool_slugs` and the server id to `mcp_servers`, then `PATCH` the full lists back. They are replaced, not merged.

Full reference: https://ibl.ai/developer/platform/mcp/mcp-connections and the `/iblai-api-agent-mcp` skill.

## Example prompts

- "Show the last 24 hours of data points for the Line 4 filler speed time series"
- "List the assets under Plant A packaging and their linked time series"
- "Which alarm events were recorded on press P-12 this shift?"
- "List the extractors registered in our DataMosaix project and their types"

## Guardrails

- Plant telemetry, alarms and asset models reveal production capacity and process know-how and sit next to control systems; grant agents read-only capability groups.
- Request the narrowest Rockwell FactoryTalk DataMosaix scopes or role the task needs, and prefer a read-only credential for agents that only answer questions.
- Return the fields the user asked for, not whole records; do not paste personal data into chat that the user did not request.
- Before any write, show the user exactly what will change and wait for a yes.
- Page through large result sets and back off on rate-limit responses instead of retrying in a loop.

## References

- FactoryTalk DataMosaix API Reference: https://www.rockwellautomation.com/en-us/docs/factorytalk-datamosaix/current/online-help-ditamap/api-reference.html
- Access DataMosaix APIs via Swagger UI: https://www.rockwellautomation.com/en-us/docs/factorytalk-datamosaix/current/online-help-ditamap/api-reference/how-to-access-factorytalk-datamosaix-apis-via-swag.html
- Register an application: https://www.rockwellautomation.com/en-us/docs/factorytalk-datamosaix/current/online-help-ditamap/applications/create_application.html
- This connector on ibl.ai: https://ibl.ai/developer/connectors/rockwell-factorytalk
- ibl.ai MCP server connections: https://ibl.ai/developer/platform/mcp/mcp-connections
