I’m exploring how we can query Data Pages and their API endpoints in Pega, specifically in the Theme UI-Kit and Cosmos environments, using MCP or AI agents. What would be the recommended approach for this, and are there any existing capabilities?
Would appreciate any guidance or examples. Thanks!
I’m not certain whether MCP is currently supported for UI-Kit or Cosmos applications. However, since the required Data Pages are already defined in the application, I would recommend leveraging the existing DX APIs or exposing the Data Pages through REST services. This would be a more straightforward and supported approach for AI agents or external apps to retrieve the data.
If you are using Pega Infinity '26, you can create a Service MCP rule and define a tool that invokes the target Data Page. Once the tool is created, add it to the Service MCP rule. The resulting Service MCP URL can then be used by external AI agents to connect to Pega, or by another Pega application through a Connect MCP rule to consume the exposed capabilities.