Use MCP Tools for LWC Development (Beta)
LWC Model Context Protocol (MCP) tools provide a powerful set of capabilities for component and app development, enabling advanced code intelligence, context-aware suggestions, and seamless integration with Salesforce metadata. MCP tools help streamline the development workflow, improve productivity, and ensure your code follows best practices.
MCP Tools for LWC Development is a pilot or beta service that is subject to the Beta Services Terms at Agreements - Salesforce.com or a written Unified Pilot Agreement if executed by Customer, and applicable terms in the Product Terms Directory. Use of this pilot or beta service is at the Customer's sole discretion.
We recommend that you use the MCP tools through Agentforce for Developers (A4D) with Dev Agent. This setup offers the most integrated and robust experience, including real-time code analysis, context-driven completions, and direct access to Salesforce data models.
For developers using other clients, such as Cursor or VS Code with Copilot, install the Salesforce DX MCP Server to enable the LWC MCP tools.
When you install the DX MCP server, the LWC experts toolset and the Aura experts toolset load by default and are ready to use (GA).
The Salesforce DX MCP Server and its tools are beta. Within the context of the DX MCP Server, tools are categorized as those that are fully ready to use (GA) and those still in preview (NON-GA). MCP tools for LWC development are fully ready to use.
The lwc-experts
toolset provides tools to assist with LWC development, testing, optimization, and best practices.
- LWC Development Tools
- LWC Guidelines Tools
- Lightning Data Service (LDS) Tools
- LWC Workflow Tools
- Migration and Integration Tools
The aura-experts
toolset provides tools for Aura component analysis, blueprinting, and Aura-to-LWC migration expertise.
For other available toolsets, see Salesforce DX MCP Server.
MCP tools for LWC development uses generative AI, which can produce inaccurate or harmful responses. The output generated by AI is often nondeterministic. Before using the generated output, review it for accuracy and safety. You assume responsibility for how the outcomes are applied to your organization.
See Also