LWC MCP Tools Reference (Beta)
MCP Tools for LWC are part of several toolsets.
lwc-experts-Facilitates LWC development, testing, optimizationaura-experts-Assists with Aura-to-LWC migrationexperts-validation-Validates and scores LWC components for production readiness across accessibility, security, and other best practices
MCP Tools for LWC 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.
LWC provides these MCP tools in the lwc-experts toolset to assist with LWC development, testing, optimization, and best practices.
When working with these tools using Agentforce Vibes Extension, you must enable the a4d-general-rules-no-edit.md and a4d-lwc-rules-no-edit.md global rules. The a4d-general-rules-no-edit.md rule is enabled by default. For more information on configuring rules in Agentforce Vibes, see Agentforce Rules in the Agentforce Vibes Extension Developer Guide.
The tools marked NON-GA are not yet generally available. Specify the --allow-non-ga-tools flag in your DX MCP Server configuration to use them. See Configure the Salesforce DX MCP Server for Your Environment.
Use these MCP tools to facilitate LWC development.
| Tool Name | GA? | Description |
|---|---|---|
guide_lwc_development | GA | Provides comprehensive LWC development workflow and implementation guidelines |
guide_lwc_best_practices | GA | Offers LWC development best practices and coding standards guidance |
create_lwc_component_from_prd | GA | Creates complete Lightning web components from PRD specifications |
explore_slds_blueprints | NON-GA | Retrieves guidelines for the SLDS component blueprints that you need |
explore_slds_styling | NON-GA | Provides usage patterns, accessibility notes, and validation checklists for semantic color styling hooks. For all other styling hooks, the tool provides the category, description, optional usage and other properties |
guide_slds_blueprints | NON-GA | Provides comprehensive SLDS component blueprint guidelines, reference documentation, and a complete index of all available blueprints organized by category |
guide_slds_styling | NON-GA | Provides comprehensive SLDS styling hook guidelines, reference documentation, and a complete overview of available styling hooks by category, including principles, patterns, and accessibility notes |
orchestrate_lwc_component_creation | GA | Provides step-by-step component creation guidance |
orchestrate_lwc_component_optimization | GA | Optimizes performance and applies best practices for LWC |
guide_lwc_accessibility | GA | Provides accessibility guidelines and testing instructions |
guide_lwc_rtl_support | GA | Provides right-to-left (RTL) internationalization support and RTL development guidance |
orchestrate_lwc_slds2_uplift | NON-GA | Provides migration guidance for upgrading to SLDS 2 |
reference_lwc_compilation_error | GA | Provides details for LWC compilation errors, including error patterns, possible causes, and recommended fixes |
Use these MCP tools to improve your testing workflow.
| Tool Name | GA? | Description |
|---|---|---|
orchestrate_lwc_component_testing | GA | Provides a comprehensive testing workflow and generates tests |
create_lwc_jest_tests | GA | Generates comprehensive Jest test suites |
review_lwc_jest_tests | GA | Reviews and validates Jest test implementations |
run_lwc_accessibility_jest_tests | GA | Provides accessibility testing utilities and Jest integration for LWC |
guide_utam_generation | NON-GA | Provides UI Test Automation Model (UTAM) Page Object generation guidelines and best practices. |
Use these MCP tools to identify the right base components for your use case.
| Tool Name | GA? | Description |
|---|---|---|
guide_lbc_usage | GA | Provides an index of base components to help identify which components you can use |
explore_lbc_components | GA | Provides guidance on base component usage |
Use these MCP tools to review LDS development guidelines and discover LDS wire adapters and UI API type definitions for LWC development.
| Tool Name | GA? | Description |
|---|---|---|
guide_lds_development | GA | Provides LDS development guidelines and component integration |
guide_lds_data_consistency | GA | Provides data consistency patterns and best practices for using LDS-based components and wire adapters |
guide_lds_referential_integrity | GA | Provides referential integrity patterns for LDS data management |
explore_lds_uiapi | GA | Explores and documents Lightning Data Service UI API capabilities |
orchestrate_lds_data_requirements | GA | Analyzes and clarifies LDS data requirements to produce PRD-ready specifications |
guide_lds_graphql | GA | Provides guidelines on implementing GraphQL patterns to work with Salesforce data through the GraphQL wire adapter |
fetch_lds_graphql_schema | GA | Provides static GraphQL schema information, containing all the common types referred to by Salesforce GraphQL schemas. |
create_lds_graphql_read_query | GA | Provides guidelines for creating GraphQL read queries |
create_lds_graphql_mutation_query | GA | Provides guidance for creating GraphQL mutation queries. |
test_lds_graphql_query | GA | Tests a GraphQL query against a connected Salesforce org and returns the result. Invoked only from the create_lds_graphql_read_query and create_lds_graphql_mutation_query tools |
Use this tool to speed up your Figma to LWC conversion.
| Tool Name | GA? | Description |
|---|---|---|
guide_figma_to_lwc_conversion | GA | Converts Figma designs to LWC specifications. Fetching data directly from Figma using this tool isn't currently supported. We recommend that you use the Framelink Figma MCP server along with this tool |
Use this tool to build accessible and responsive UI that follows SLDS gudelines.
| Tool Name | GA? | Description |
|---|---|---|
guide_design_general | GA | Provides SLDS guidelines and best practices, covering accessibility, responsive design, and correct component usage |
Use these MCP tools to assist with Aura-to-LWC or Lightning Out migrations, and validate migration completeness.
| Tool Name | GA? | Description |
|---|---|---|
verify_aura_migration_completeness | GA | Provides a migration completeness checklist and validates results |
guide_lo_migration | GA | Converts a Lightning Out (beta) host page into a Lightning Out 2.0 page |
Use this security tool to analyze LWC code and provide guidance on best practices.
| Tool Name | GA? | Description |
|---|---|---|
guide_lws_security | GA | Analyzes components based on product security and Lightning Web Security guidelines |
These Aura MCP tools in the aura-experts toolset assist with Aura-to-LWC migration.
When working with these tools using Agentforce Vibes Extension, you must enable the a4d-general-rules-no-edit.md and a4d-lwc-rules-no-edit.md global rules. The a4d-general-rules-no-edit.md rule is enabled by default. For more information on configuring rules in Agentforce Vibes, see Agentforce Rules in the Agentforce Vibes Extension Developer Guide.
The tools marked NON-GA are not yet generally available. Specify the --allow-non-ga-tools flag in your DX MCP Server configuration to use them. See Configure the Salesforce DX MCP Server for Your Environment.
| Tool Name | GA? | Description |
|---|---|---|
create_aura_blueprint_draft | GA | Creates a comprehensive Product Requirements Document (PRD) blueprint for Aura component migration |
enhance_aura_blueprint_draft | GA | Enhances an existing draft PRD with expert analysis and identify any migration unknowns |
transition_prd_to_lwc | GA | Provides migration guidance for creating LWC components from Aura specifications |
orchestrate_aura_migration | GA | Orchestrates the complete Aura-to-LWC migration workflow |
These LWC validation MCP tools in the experts-validation toolset validates and scores LWC components for production readiness across accessibility, security, and other best practices.
| Tool Name | GA? | Description |
|---|---|---|
validate_and_optimize | GA | Performs a one-time analysis for guidance to validate and optimize your component |
score_issues | GA | Computes the readiness score (0-100) and quality grade |
See Also