---
name: iblai-connect-ptc-windchill
description: "Read and write PTC Windchill data through the Windchill REST Services (OData) and expose it to an ibl.ai agent as an MCP tool. Use when the user asks an agent to work with PTC Windchill data, or to set up a PTC Windchill MCP connection on ibl.ai."
metadata:
  kind: guide
---

# PTC Windchill connector for AI agents

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

PTC Windchill is a PLM system. It manages parts and BOMs, documents, CAD documents, change objects, workflows, and quality records such as nonconformances and CAPAs.

## Auth & conventions

- **API:** Windchill REST Services (OData) (REST). OData services called domains, such as ProdMgmt (parts and BOMs), DocMgmt, ChangeMgmt, CADDocumentMgmt, Workflow, SavedSearch and the Quality domains. A GET on servlet/odata lists the domains available.
- **Base URL:** https://{windchill-server}/Windchill/servlet/odata/{Domain}
- **Access:** Issued by your administrator. Windchill REST Services is bundled with Windchill CPS from 11.0 M030 CPS06. Calls run against the customer's server with a Windchill account; some domains need extra products, such as MPMLink.
- **Auth:** Basic authentication; Single sign-on (SSO). Clients authenticate with Basic or SSO and act with the user's Windchill access rights. Create, update and delete calls also need a CSRF nonce from the PTC domain's GetCSRFToken() function.
- Keep PTC Windchill 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

- **Parts and BOMs** — ProdMgmt entity sets such as Parts, with BOM structure.
- **Documents** — DocMgmt and CADDocumentMgmt domains for documents and CAD documents.
- **Change objects** — ChangeMgmt domain for problem reports, change requests and change notices.
- **Saved searches** — SavedSearch domain to run searches users already saved.

## Writes

- **Create entities** — POST to an entity set URL creates a part, document or other entity.
- **Update entities** — PATCH to an entity URL updates its attributes.
- **Delete entities** — DELETE on an entity's URL removes it. **Confirm with the user first.**

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

PTC publishes an official MCP server, MCP Server for the Windchill AI Assistant (https://support.ptc.com/help/windchill/ai_plugin/en/Windchill_Help_Center/document_vault/WCAIAssistAIPluginMCPServer.html). Register it below as-is, or host your own server that wraps the calls in this skill.

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 BOM of part 0000012345 at its latest released version"
- "Which change notices affecting part 0000012345 are still open?"
- "Find the CAD document for bracket 300-221 and list its versions"
- "Update the description of part 0000012345 to match the new spec"

## Guardrails

- PLM holds proprietary designs and often export-controlled technical data under ITAR or EAR; defense suppliers handling CUI must meet NIST SP 800-171 and CMMC.
- Request the narrowest PTC Windchill 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

- Windchill REST Services: https://support.ptc.com/help/windchill/r13.1.2.0/en/Windchill_Help_Center/WCRESTFramework/WCCG_RESTAPIsWRS.html
- Accessing domains: https://support.ptc.com/help/windchill/r13.1.2.0/en/Windchill_Help_Center/WCRESTFramework/WCCG_RESTAPIsAccess.html
- Using the MCP Server for the Windchill AI Assistant: https://support.ptc.com/help/windchill/ai_plugin/en/Windchill_Help_Center/document_vault/WCAIAssistAIPluginMCPServer.html
- MCP Server for the Windchill AI Assistant: https://support.ptc.com/help/windchill/ai_plugin/en/Windchill_Help_Center/document_vault/WCAIAssistAIPluginMCPServer.html
- This connector on ibl.ai: https://ibl.ai/developer/connectors/ptc-windchill
- ibl.ai MCP server connections: https://ibl.ai/developer/platform/mcp/mcp-connections
