Getting Started with Automation MCP Server
Automation MCP Server simplifies test failure triaging for all automation test cases executed on LambdaTest. By leveraging the Model Context Protocol (MCP), it enables seamless integration between AI assistants and your test execution data on LambdaTest—significantly reducing triage and troubleshooting time.
What is Model Context Protocol (MCP)?
The Model Context Protocol (MCP) acts like a “USB-C for AI integrations,” creating a universal language between AI models and applications. This standardized interface allows AI assistants to connect with diverse software tools, making it much easier to expand capabilities across your digital workflow.
Key Benefits of Automation MCP Server
Here are the key benefits of using the Automation MCP Server:
- Access your test execution data on LambdaTest directly from your IDE/editor.
- Triage and troubleshoot test failures to identify the root cause (RCA).
- Fix your test code based on the RCA and accelerate your development.
- Generate new test cases using execution data from LambdaTest.
- Leverage network logs, Selenium logs, and console logs to pinpoint bottlenecks and failures.
Connecting to SmartUI MCP Server
Connecting with Cline
Cline (The Collaborative AI Coder) is an advanced, AI-powered coding assistant that integrates seamlessly into your development workflow. It provides intelligent code suggestions and documentation help—and now, with MCP support, it can interface with tools like LambdaTest Automation MCP to enhance your testing capabilities.
Cline allows natural language interaction with your codebase —just describe what you want, instead of manually configuring it.
Installing Cline in VS Code:
Step 1: Open VS Code.
Step 2: Click on the Extensions icon in the Activity Bar on the side of the window (or press Ctrl+Shift+X
).
Step 3: Search for Cline in the Extensions Marketplace.

Step 4: Click Install on the Cline – The Collaborative AI Coder extension.
Step 5: Once installed, you'll see the Cline icon in your VS Code sidebar.
Step 6: Click on the Cline icon to open the Cline panel.
Step 7: Complete any authentication steps required during first-time setup.
Connecting Cline to SmartUI MCP Server
VS Code Configuration:
Step 1: In VS Code, click on the Cline icon in the sidebar to open the Cline panel.
Step 2: Under the MCP Servers section, click Remote Servers.

Step 3: Add Server Name as LambdaTest-MCP.
Step 4: Enter the following URL in the server URL field: http://mcp-api.lambdatest.com/automation?<_USERNAME=[your-lt-username]<_ACCESS_KEY=[your-lt-access-key]
Step 5: Replace [your-lt-username] and [your-lt-access-key] with your LambdaTest credentials.
Step 6: Click on Add Server.
Interacting with Automation MCP Server
Once connected, you can begin using Cline to interact with the Automation MCP Server. A typical workflow:
Step 1: Open your project in VS Code.
Step 2: Open the Cline panel.
Step 3: Type the following prompt:
Analyze the LambdaTest TestID. Review the command logs, network logs, and console logs to identify the cause of the test failure. Suggest a code fix based on your findings.
Step 4: Cline will:
- Pull command, network, and console logs from the LambdaTest cloud.
- Identify your testing framework and test code.
- Investigate the cause of failure and share the RCA.
- Create change requests/suggestions in the code to fix the failure or enhance error handling.
- Save the code changes to your project directory.
Step 5: Review the suggested changes and make any final adjustments before re-running your tests on the LambdaTest platform.
You can also ask Cline more specific questions like:
- "What are the possible causes of failure, and what else can be done to mitigate them?"
- "What does the suggested code change do?"
Cline’s natural language interface allows you to work on triaging and debugging Selenium tests directly alongside your code—highlighting the specific sections responsible for the failure.
Supported Tools
Automation MCP Server provides five core tools:
- Automation Test Details: Fetches detailed information about a specific TestID from the LambdaTest cloud.
- Automation Command Logs: Retrieves execution logs for Selenium commands run on LambdaTest.
- Automation Network Logs: Accesses test network logs, offering insights into browser traffic and behavior.
- Automation Console Logs: Fetches browser console logs, surfacing error-level messages and warnings.
- Automation MCP Server: Core interface that powers the above tools and connects your AI assistant to LambdaTest data.