LWC MCP Tools Reference (Beta)

MCP Tools for LWC are part of several toolsets.

  • lwc-experts-Facilitates LWC development, testing, optimization
  • aura-experts-Assists with Aura-to-LWC migration
  • experts-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 NameGA?Description
guide_lwc_developmentGAProvides comprehensive LWC development workflow and implementation guidelines
guide_lwc_best_practicesGAOffers LWC development best practices and coding standards guidance
create_lwc_component_from_prdGACreates complete Lightning web components from PRD specifications
explore_slds_blueprintsNON-GARetrieves guidelines for the SLDS component blueprints that you need
explore_slds_stylingNON-GAProvides 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_blueprintsNON-GAProvides comprehensive SLDS component blueprint guidelines, reference documentation, and a complete index of all available blueprints organized by category
guide_slds_stylingNON-GAProvides 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_creationGAProvides step-by-step component creation guidance
orchestrate_lwc_component_optimizationGAOptimizes performance and applies best practices for LWC
guide_lwc_accessibilityGAProvides accessibility guidelines and testing instructions
guide_lwc_rtl_supportGAProvides right-to-left (RTL) internationalization support and RTL development guidance
orchestrate_lwc_slds2_upliftNON-GAProvides migration guidance for upgrading to SLDS 2
reference_lwc_compilation_errorGAProvides details for LWC compilation errors, including error patterns, possible causes, and recommended fixes

Use these MCP tools to improve your testing workflow.

Tool NameGA?Description
orchestrate_lwc_component_testingGAProvides a comprehensive testing workflow and generates tests
create_lwc_jest_testsGAGenerates comprehensive Jest test suites
review_lwc_jest_testsGAReviews and validates Jest test implementations
run_lwc_accessibility_jest_testsGAProvides accessibility testing utilities and Jest integration for LWC
guide_utam_generationNON-GAProvides 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 NameGA?Description
guide_lbc_usageGAProvides an index of base components to help identify which components you can use
explore_lbc_componentsGAProvides 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 NameGA?Description
guide_lds_developmentGAProvides LDS development guidelines and component integration
guide_lds_data_consistencyGAProvides data consistency patterns and best practices for using LDS-based components and wire adapters
guide_lds_referential_integrityGAProvides referential integrity patterns for LDS data management
explore_lds_uiapiGAExplores and documents Lightning Data Service UI API capabilities
orchestrate_lds_data_requirementsGAAnalyzes and clarifies LDS data requirements to produce PRD-ready specifications
guide_lds_graphqlGAProvides guidelines on implementing GraphQL patterns to work with Salesforce data through the GraphQL wire adapter
fetch_lds_graphql_schemaGAProvides static GraphQL schema information, containing all the common types referred to by Salesforce GraphQL schemas.
create_lds_graphql_read_queryGAProvides guidelines for creating GraphQL read queries
create_lds_graphql_mutation_queryGAProvides guidance for creating GraphQL mutation queries.
test_lds_graphql_queryGATests 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 NameGA?Description
guide_figma_to_lwc_conversionGAConverts 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 NameGA?Description
guide_design_generalGAProvides 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 NameGA?Description
verify_aura_migration_completenessGAProvides a migration completeness checklist and validates results
guide_lo_migrationGAConverts 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 NameGA?Description
guide_lws_securityGAAnalyzes 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 NameGA?Description
create_aura_blueprint_draftGACreates a comprehensive Product Requirements Document (PRD) blueprint for Aura component migration
enhance_aura_blueprint_draftGAEnhances an existing draft PRD with expert analysis and identify any migration unknowns
transition_prd_to_lwcGAProvides migration guidance for creating LWC components from Aura specifications
orchestrate_aura_migrationGAOrchestrates 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 NameGA?Description
validate_and_optimizeGAPerforms a one-time analysis for guidance to validate and optimize your component
score_issuesGAComputes the readiness score (0-100) and quality grade

See Also