AI assistants are only as useful as the data they can reach. With the Liferay MCP server, Liferay DXP exposes its content, sites, and headless APIs to AI tools such as Claude, Cursor, and GitHub Copilot through the open Model Context Protocol (MCP), with no custom integration code.
For Liferay architects, developers, and IT leads, this removes a major bottleneck in enterprise AI adoption. Instead of funding custom middleware for every assistant, teams can connect approved AI clients directly to live portal data under existing governance.
In this guide, we walk through a real setup on a local Liferay DXP 2026.Q3 instance: enabling the MCP server, creating a dedicated Liferay user for the AI, and connecting Claude Desktop with Basic authentication, the quickest way to get started. We also cover GitHub Copilot setup in VS Code and key enterprise security controls.
What Is the Liferay MCP Server?
The Model Context Protocol (MCP) is an open standard that lets AI applications connect to external systems through one common interface. Instead of writing a separate integration for every AI tool, a system publishes its capabilities once as an MCP server, and any MCP-compatible client can use them.
Liferay DXP ships with a built-in MCP server at the /o/mcp endpoint. According to Liferay's documentation, it arrived as a beta in DXP 2025.Q4 and became generally available in 2026.Q3. Key characteristics:
- Permission-aware: the AI tool acts as the authenticated Liferay user and can only see or change what that user's roles allow.
- Built on headless APIs: the server exposes Liferay's REST APIs (sites, users, content, fragments, objects, and more) as MCP tools.
- Admin controls: Profiles limit which tools a client can call; field restrictions and data masks hide sensitive values, and prompts can be published for clients to reuse.
Adopting Model Context Protocol Liferay capabilities protects your architecture from AI vendor lock-in as tools evolve. Enterprises connecting Liferay with CRM or ERP platforms can also pair this native feature with Liferay integration services to unify digital workflows.
Practical Use Cases for Liferay AI Integration
Connecting AI assistants directly to Liferay DXP creates immediate efficiency across content and engineering teams without custom API wrappers, as seen when building enterprise proofs of concept faster with Liferay AI.
Content Operations with Liferay Claude Integration
Editorial teams and portal administrators can use Claude Desktop to work with portal structures in staging or local environments:
- Structured content drafting: Generate and format web content or page fragments directly in a staging site instead of manually moving drafts.
- Site and taxonomy audits: Query site hierarchies, categories, and content inventories through natural language without clicking through Control Panel screens.
- Consistent editorial outputs: Use administrator-published MCP prompts, so every team member produces uniform formatting and metadata.
Engineering Workflows with Liferay GitHub Copilot Integration
Developers using Visual Studio Code gain faster portal visibility when connecting GitHub Copilot to Liferay's MCP server:
- Real-time schema discovery: Copilot inspects Liferay headless APIs and Objects directly instead of relying on static documentation.
- Rapid prototyping: Teams can model object definitions, populate test records, and validate configurations in lower environments faster.
- Smoother onboarding: New team members quickly understand how sites, fragments, and APIs are structured inside your instance.
When projects require custom extensions beyond standard headless endpoints, Liferay development services help align custom business logic with AI-ready APIs.
Prerequisites
- Liferay DXP 2026.Q3 (or 2025.Q4 or later with the beta feature flag) running and reachable. We used http://localhost:8080.
- Administrator access to the Control Panel.
- A dedicated Liferay user for the AI tool, with only the roles it needs.
- Node.js 18 or later, because Claude Desktop connects through the mcp-remote package run by npx.
- Claude Desktop (or another MCP client such as Claude Code, Cursor, or GitHub Copilot in VS Code).
A Step-by-Step Approach: Connecting Claude to Liferay DXP
Step 1: Enable the Feature Flag
- Sign in to Liferay DXP with administrator permissions.
- Open the Global Menu and go to Control Panel > Instance Settings > Feature Flags > Release.
- Search for LPD-63311 and enable it.

Step 2: Enable MCP for Your Virtual Instance
- Go to Control Panel > Instance Settings > Platform > MCP Server.
- Click Enabled.
- Check that the endpoint is live by calling it without credentials: http://localhost:8080/o/mcp
- A 401 Unauthorized response is what you want here. It means the server is running and waiting for credentials.

Step 3: Create a Dedicated Liferay User for the AI
Every MCP request runs with the permissions of the user whose credentials the AI tool sends. Never connect with an AI tool as an administrator. Instead:
- Go to Control Panel > Users and Organizations and add a user such as [email protected].
- Create a role with only the permissions the AI needs. For a read-only assistant, that means view permissions on the sites and content it should answer questions about. Add create or update permissions only if the AI must build content.
- Assign the role (and site membership, if needed) to the new user and set up a strong password.
Basic authentication needs no extra configuration in Liferay. The credential is simply the user's email and password joined by a colon and Base64-encoded. On Windows, run this in PowerShell:
[Convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes("[email protected]:YourPassword")) Step 5: Add Liferay to Claude Desktop (Basic Authentication)
In Claude Desktop, open Settings > Developer > Edit Config and add a Liferay entry under mcpServers:
{
"mcpServers": {
"liferay": {
"command": "npx",
"args": [
"mcp-remote",
"http://localhost:8080/o/mcp",
"--header",
"Authorization: ${AUTH_HEADER}"
],
"env": {
"AUTH_HEADER": "Basic <BASE64_VALUE>"
}
}
}
} After adding this, restart Claude Desktop and try to create a fragment with Claude.

Ready to Accelerate AI Workflows Across Your Liferay Portal?
Hire our Liferay developers to configure secure, production-ready integrations.
Connecting GitHub Copilot in VS Code to Liferay DXP
Unlike Claude Desktop, Visual Studio Code supports HTTP-based MCP servers natively, so GitHub Copilot connects directly without npx mcp-remote.
In Visual Studio Code, add an mcp.json configuration file using the official Liferay Learn MCP configuration:
{
"servers": {
"liferay": {
"url": "http://localhost:8080/o/mcp",
"type": "http",
"headers": {
"Authorization": "Basic <BASE64_VALUE>"
}
}
}
} If your organization defines a custom MCP profile, replace /o/mcp with /o/mcp/[profile title]. Once saved, Copilot can discover your permission-scoped Liferay tools directly inside the editor.
Security and Governance for Your Liferay MCP Server
For IT leads and security architects, enabling AI access requires strict guardrails. Liferay DXP provides built-in governance controls, so external AI tools never bypass organizational security policies.
Profiles, Field Restrictions, and Data Masks
Enabling LPD-63311 unlocks the MCP Server application in the Control Panel with three governance tabs:
- Profiles: Restrict which tools a client can call by exposing tailored endpoints such as /o/mcp/content for editors or /o/mcp/developer for engineering teams.
- Data Masks: Apply sensitive data masking and field restrictions to redact confidential or personally identifiable information (PII) before responses leave Liferay.
- Prompts: Publish standardized, reusable prompt templates so teams get consistent, compliant outputs.
Moving from Basic Auth to OAuth 2.0 in Production
Basic authentication is ideal for local development, while production environments should use OAuth 2.0 bearer tokens. Per Liferay documentation, OAuth tokens must include the MCP server resource URI as their audience, and release flag LPD-63415 is required for automatic OAuth server discovery.
Keep write-enabled AI connections restricted to lower environments and promote approved work through Publications. Ongoing Liferay support and maintenance services help teams audit MCP permissions, rotate OAuth credentials, and keep feature flags aligned across quarterly releases.
Conclusion
Connecting Claude and GitHub Copilot to Liferay DXP with the built-in MCP server turns AI from an isolated chat tool into a governed extension of your digital platform. Instead of maintaining brittle custom integrations, enterprises can adopt an open standard that respects user permissions, masks sensitive data, and adapts as new AI assistants emerge.
Starting with a dedicated least-privilege user in a local or staging environment gives your teams a safe, repeatable path to faster content operations and portal delivery.
At Surekha Technologies, we help organizations adopt Liferay DXP innovations with confidence and clarity. By aligning platform governance, role-based security, and practical AI enablement with your business goals, our team keeps your portal secure, scalable, and ready for future growth.
Frequently Asked Questions
Which Liferay version has a built-in MCP server?
Liferay DXP introduced the built-in MCP server as a beta in 2025.Q4 and made it generally available in Liferay DXP 2026.Q3 under release feature flag LPD-63311.
Is the Liferay MCP server secure for enterprise data?
Yes. Every MCP request authenticates as a specific Liferay user and enforces that user's roles and permissions, backed by MCP Profiles, field restrictions, Data Masks, and OAuth 2.0.
What can an AI tool see in Liferay through MCP?
An AI client can only view or modify the sites, content, objects, and headless APIs permitted by its assigned Liferay user account and active MCP Profile.
Should we use Basic authentication or OAuth 2.0?
Use Basic authentication for quick local setups and testing. Use OAuth 2.0 bearer tokens scoped to the /o/mcp resource URI for production environments.
Can we connect both Claude and GitHub Copilot to Liferay DXP?
Yes. Claude Desktop connects via npx mcp-remote in claude_desktop_config.json, while GitHub Copilot connects directly over HTTP in Visual Studio Code using mcp.json.