> ## Documentation Index
> Fetch the complete documentation index at: https://docs.elitea.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Quick Start: Set Up a Local MCP Client (STDIO)

> Set up Elitea as a local MCP client and connect STDIO-based tools such as Playwright, GitHub, or Figma.

## Before You Start

Before you begin, make sure you have:

* ☑️ **Python installed** on your computer (version 3.10 or newer) - [Download Python](https://www.python.org/downloads/)
* ☑️ **Node.js installed** (required for most MCP servers like Playwright, GitHub, Figma) - [Download Node.js](https://nodejs.org/)
* ☑️ **Your Elitea Project ID** (find this in Elitea Settings → [Configuration](../../menus/settings/ai-configuration#server-configuration-fields))
* ☑️ **Your Elitea Authentication Token** (create one in Elitea Settings → [Personal Tokens](../../getting-started/create-personal-access-token))
* ☑️ **Your Elitea deployment URL** (example: `https://next.elitea.ai`)

<Info title="Additional Dependencies">
  Some MCP servers may require additional dependencies beyond Python and Node.js. Check the specific MCP server documentation for any additional requirements before installation.
</Info>

***

## What is an MCP Client and Why Do I Need It?

**MCP Client** means Elitea can connect to external tools that follow the Model Context Protocol (MCP) standard.

**Why it matters to you:** Your Elitea agents can use powerful external tools like:

* **Playwright** - Automate web browsers, take screenshots, test websites
* **GitHub** - Create issues, manage pull requests, read repositories
* **And many more** - Any tool that supports MCP can be connected

This means your agents become much more powerful without you writing any code!

***

## Step-by-Step Setup

### Part 1: Install the Elitea MCP Client

The client is a program that connects Elitea to external MCP tools.

1. **Open PowerShell**
   * Press `Windows key`, type "PowerShell", and press Enter

2. **Install pipx** (a tool that helps install Python programs)

   * Copy this command and paste it into PowerShell, then press Enter:
     ```powershell theme={null}
     python -m pip install --user pipx
     ```
   * Wait for it to finish

   <img src="https://mintcdn.com/epam-a74ef051/qRDTdvtd6K_5cb4y/img/getting-started/mcp/install-pipx.png?fit=max&auto=format&n=qRDTdvtd6K_5cb4y&q=85&s=7e23e95fd0f8c9deda798b95e275b8a3" alt="alt text" width="1483" height="762" data-path="img/getting-started/mcp/install-pipx.png" />

3. **Set up pipx's path**
   * This makes sure your computer can find pipx. Copy and run:
     ```powershell theme={null}
     python -m pipx ensurepath
     ```
   <img src="https://mintcdn.com/epam-a74ef051/qRDTdvtd6K_5cb4y/img/getting-started/mcp/pipx-ensurepath.png?fit=max&auto=format&n=qRDTdvtd6K_5cb4y&q=85&s=02b53abb8729e7489616b11956673fe9" alt="alt text" width="1481" height="760" data-path="img/getting-started/mcp/pipx-ensurepath.png" />

4. **Install elitea-mcp**

   * This is the actual client program. Copy and run:
     ```powershell theme={null}
     pipx install elitea-mcp
     ```
   * Wait for installation to complete

   <img src="https://mintcdn.com/epam-a74ef051/xkDMqf2CA2ld4cBy/img/integrations/mcp/mcp-setup/install-elitea-mcp.gif?s=40e1eb141d3f22e2d3dbbd67763b68af" alt="alt text" width="1900" height="1019" data-path="img/integrations/mcp/mcp-setup/install-elitea-mcp.gif" />

5. **Close and reopen PowerShell**
   * This refreshes your environment so the new program is recognized

***

### Part 2: Configure the Client

Now you'll set up the connection to your Elitea account and add external tools.

1. **Run the setup wizard**
   * In PowerShell, type:
     ```bash theme={null}
     elitea-mcp bootstrap
     ```
   * Press Enter

2. **Answer the basic prompts**
   * **Deployment URL:** Type your Elitea URL (example: `https://next.elitea.ai`) and press Enter
   * **Authentication token:** Paste your token (the one you copied earlier) and press Enter
   * **Host:** Just press Enter to accept the default (`0.0.0.0`)
   * **Port:** Just press Enter to accept the default (`8000`)
   * **Project ID:** Enter your Project ID number (find it in Elitea Settings → Configuration)

3. **Add an MCP Server** (example: Playwright)

   * When asked "Do you want to add an MCP server?", type `y` and press Enter
   * **Server Name:** Type a name like `Playwright` and press Enter
   * **Server Type:** Select `stdio` and press Enter
   * **Command:** Type `npx` and press Enter (or `npx.cmd` on Windows if needed)
   * **Args:** Type `@playwright/mcp@latest` and press Enter
   * **Keep Connection Alive:** Type `y` for Yes (recommended for browser automation)

   <img src="https://mintcdn.com/epam-a74ef051/xkDMqf2CA2ld4cBy/img/integrations/mcp/mcp-setup/elitea-mcp-bootstrap-client.gif?s=b9c24558d259892e56d0455899a9bafb" alt="alt text" width="1900" height="1019" data-path="img/integrations/mcp/mcp-setup/elitea-mcp-bootstrap-client.gif" />

4. **Add more servers** (optional)
   * You can add GitHub, Figma, or other MCP servers by repeating the process
   * **For GitHub:**
     ```
     Command: npx
     Args: @modelcontextprotocol/server-github
     Keep Connection Alive: y
     ```
   * **For Figma:**
     ```
     Command: npx
     Args: @modelcontextprotocol/server-figma
     Keep Connection Alive: y
     ```

5. **Finish setup**
   * When done adding servers, type `n` when asked to add more
   * You should see a confirmation message

<Tip title="Common MCP Servers">
  **Playwright:**

  ```
  @playwright/mcp@latest
  ```

  **GitHub:**

  ```
  @modelcontextprotocol/server-github
  ```

  **Figma:**

  ```
  @modelcontextprotocol/server-figma
  ```
</Tip>

***

### Part 3: Start the MCP Client

Now you'll start the client so it runs in the background.

#### Using the System Tray (Recommended - Easiest Way)

1. **Start the tray application**

   * In PowerShell, type:
     ```powershell theme={null}
     elitea-mcp tray
     ```
   * Press Enter
   * You should see the Elitea icon appear in your system tray

   <img src="https://mintcdn.com/epam-a74ef051/xkDMqf2CA2ld4cBy/img/integrations/mcp/mcp-tray.png?fit=max&auto=format&n=xkDMqf2CA2ld4cBy&q=85&s=81fad333e2833e5f336b35ea8802b435" alt="mcp" width="1920" height="1020" data-path="img/integrations/mcp/mcp-tray.png" />

2. **Start the MCP Server from the tray**

   * Look in the bottom-right corner of your screen (system tray)
   * Click the Elitea icon
   * Select **Start MCP Server**

   <img src="https://mintcdn.com/epam-a74ef051/xkDMqf2CA2ld4cBy/img/integrations/mcp/mcp-tray-windows.gif?s=7cba1f34191c610a1e2057d9e335fd96" alt="Windows tray menu" width="543" height="452" data-path="img/integrations/mcp/mcp-tray-windows.gif" />

3. **Verify it's running**
   * The tray icon should show the server is active

<Tip title="Quick Access to Config File">
  You can easily open and edit the configuration file from the tray:

  1. Click the Elitea icon in the system tray
  2. Select **Configuration** → **Open Config File**
  3. The `config.json` file will open in your default text editor
  4. Make any needed changes and save
  5. Restart the MCP server for changes to take effect

  <img src="https://mintcdn.com/epam-a74ef051/qRDTdvtd6K_5cb4y/img/getting-started/mcp/config-file-open.png?fit=max&auto=format&n=qRDTdvtd6K_5cb4y&q=85&s=6fb3f18adff0b0ddf2fb018a5b6d32e6" alt="Config file menu" width="300" data-path="img/getting-started/mcp/config-file-open.png" />
</Tip>

<Tip title="Run in Background">
  To run the tray app in the background without keeping a PowerShell window open:

  ```powershell theme={null}
  elitea-mcp tray --daemon
  ```
</Tip>

<Info title="Example of correct configuration">
  ```json theme={null}
  {
    "deployment_url": "https://next.elitea.ai",
    "auth_token": "your-token-here",
    "host": "0.0.0.0",
    "port": 8000,
    "servers": {
      "Playwright": {
        "type": "stdio",
        "command": "npx",
        "args": ["@playwright/mcp@latest"],
        "stateful": true
      }
    },
    "project_id": 456
  }
  ```
</Info>

***

### Part 4: Connect Tools in Elitea

Now you'll make the external tools available to your Elitea agents.

1. **Log into Elitea**
   * Open your Elitea deployment in a web browser
   * Navigate to your project

2. **Open the MCPs menu**
   * Look for the **MCPs** menu in the left sidebar
   * Click it to open

3. **Create an MCP entry**
   * Click **+ Create**
   * You should see your running MCP servers (like "Playwright")

4. **Configure the MCP**
   * **Name:** Give it a clear name (example: "Playwright Browser Automation")
   * **Description:** Optional - describe what it does
   * **Tools:** Review the list of tools and uncheck any you don't need

5. **Save**

   * Click **Save** to create the MCP entry

   <img src="https://mintcdn.com/epam-a74ef051/qRDTdvtd6K_5cb4y/img/getting-started/mcp/mcp-toolkit-create.gif?s=68bc17bc2be9b9788d442475862ef625" alt="Create MCP" width="1914" height="864" data-path="img/getting-started/mcp/mcp-toolkit-create.gif" />

***

### Part 5: Add MCP Tools to Your Agent

Now you'll give your agent access to these new tools.

1. **Navigate to your agent**
   * In Elitea, go to the agent or pipeline you want to enhance
   * Click on it to open

2. **Go to Configuration**
   * Click the **Configuration** tab

3. **Add the MCP toolkit**
   * Scroll down to the **Toolkits** section
   * Click **+MCP**
   * Select your MCP server from the list (example: "Playwright Browser Automation")
   * Click **Add**

4. **Save your agent**

   * Click **Save** to apply the changes

   <img src="https://mintcdn.com/epam-a74ef051/qRDTdvtd6K_5cb4y/img/getting-started/mcp/mcp-add-to-agent.gif?s=b2de30d74bfa13542ffbf922a291cfcb" alt="alt text" width="1904" height="858" data-path="img/getting-started/mcp/mcp-add-to-agent.gif" />

***

### Part 6: Add MCP to a Conversation and Chat

You can add MCP tools directly to conversations when creating a new chat or in an existing conversation.

#### Adding MCP to a Conversation

1. **Navigate to Chat**
   * Open the sidebar in Elitea
   * Select **Chat**

2. **Start a conversation**
   * Click **+ Create** to start a new conversation, OR
   * Open an existing conversation

3. **Add MCP to the conversation**
   * In the **Participants** section of the chat, look for the **MCPs** element
   * Click to add an MCP
   * Select your MCP from the available options (e.g., "Playwright Browser Automation")
   * The MCP will be added to your conversation with all configured tools enabled

4. **Use MCP in chat**
   * You can now directly interact with the MCP tools
   * Ask questions or request actions that will trigger the MCP tools
   * Example: "Take a screenshot of [https://example.com](https://example.com)"

<Tip title="Adding Multiple MCPs">
  You can add multiple MCPs to the same conversation! Just repeat the process to add GitHub MCP, Playwright MCP, or any other MCP you've configured.
</Tip>

<img src="https://mintcdn.com/epam-a74ef051/qRDTdvtd6K_5cb4y/img/getting-started/mcp/mcp-add-to-chat.gif?s=ac6e5e728d30e142c1d49caa3e49ecea" alt="Add Chat" width="1904" height="858" data-path="img/getting-started/mcp/mcp-add-to-chat.gif" />

<Info title="Real-World Example: Testing a Login Page">
  Here's a practical example of using Playwright MCP to test a login page:

  ```
  You: Navigate to https://practicetestautomation.com/practice-test-login/

  [MCP opens the browser and loads the login page]

  You: Take a screenshot of the login page

  [MCP captures and displays the screenshot]

  You: Fill in the username field with "student" and password field with "Password123"

  [MCP enters the credentials into the form fields]

  You: Click the Submit button

  [MCP clicks the button and waits for the page to load]

  You: Check if we successfully logged in - look for a success message

  [MCP analyzes the page and reports: "Login successful - found confirmation message"]

  You: Take a screenshot of the success page

  [MCP captures the logged-in state]
  ```

  This shows how you can use MCP tools to test web applications, verify functionality, and document the results with screenshots - all through natural conversation!
</Info>

***

## How to Know It's Working

✔️ **You've succeeded if:**

* The tray icon shows the MCP server is running
* Your MCP appears in the Elitea MCPs menu with tools listed
* The connection status icon shows **grey** (connected)
* When you ask your agent to use a tool, it executes successfully
* No error messages appear

<img src="https://mintcdn.com/epam-a74ef051/qRDTdvtd6K_5cb4y/img/getting-started/mcp/connection%20status.png?fit=max&auto=format&n=qRDTdvtd6K_5cb4y&q=85&s=5e7f7238a3f289afdfb5eec509d3f2fa" alt="connection" width="402" height="191" data-path="img/getting-started/mcp/connection status.png" />

✘ **Something's wrong if:**

* The tray shows "Disconnected" or errors
* The connection status icon shows **orange** (disconnected)
* No tools appear when creating the MCP in Elitea
* Agent says it can't access the tools
* You see error messages in the tray or console

***

## Common Problems & Fixes

<Accordion title="Problem: 'Node.js not found' error with Playwright">
  **Fix:**

  1. Install Node.js from [nodejs.org](https://nodejs.org/)
  2. Download the LTS (Long Term Support) version
  3. Restart your terminal after installation
  4. Verify by running: `node --version`
</Accordion>

<Accordion title="Problem: 'npx command not found' on Windows">
  **Fix:**

  1. Open your configuration file at `%APPDATA%\elitea-mcp-client\config.json`
  2. Change `"command": "npx"` to `"command": "npx.cmd"` in the servers section
  3. Save the file and restart the MCP client
</Accordion>

<Accordion title="Problem: No tools showing up in Elitea">
  **Fix:**

  1. Make sure the MCP client is running (check the tray icon or terminal)
  2. Restart the MCP server from the tray menu
  3. Refresh the Elitea page in your browser
  4. Check that your Project ID is correct
</Accordion>

<Accordion title="Problem: 'Server configuration empty' error">
  **Fix:**

  1. Open your `config.json` file at `%APPDATA%\elitea-mcp-client\config.json`
  2. Make sure the `"servers"` section is not empty
  3. If it's empty, run `elitea-mcp bootstrap` again to add servers
</Accordion>

<Accordion title="Problem: Tray icon not visible">
  **Fix:**

  1. Make sure the tray app is actually running (check PowerShell window)
  2. Try running `elitea-mcp tray` again
  3. Check if other applications are hiding the icon in the system tray
  4. Click the small arrow (^) in the system tray to show hidden icons
</Accordion>

<Accordion title="Problem: 'Connection failures in Elitea', 'Port already in use', 'Address already in use' errors">
  **Fix:**

  1. Another application is using port 8000 (the default MCP port)
  2. **Option 1 - Change the port:**
     * Open your `config.json` file at `%APPDATA%\elitea-mcp-client\config.json`
     * Change `"port": 8000` to a different port like `"port": 8001`
     * Save the file and restart the MCP client
  3. **Option 2 - Find and stop the conflicting application:**
     * Open PowerShell as Administrator
     * Run: `netstat -ano | findstr :8000`
     * Note the PID (Process ID) in the last column
     * Run: `tasklist | findstr <PID>` (replace `<PID>` with the number)
     * Stop that application if it's not needed
  4. Restart the MCP client after making changes
</Accordion>

<Accordion title="Problem: Tools work but give errors">
  **Fix:**

  1. Check the tool's specific requirements (authentication, permissions, etc.)
  2. For GitHub: Make sure you have proper access tokens configured
  3. For Playwright: Ensure you have sufficient system resources for browser automation
  4. Click the tray icon and select **View Logs** to see detailed error messages
</Accordion>

<Accordion title="Problem: MCP server not working - need to clear NPX cache">
  **Fix:**

  If the MCP server is not working correctly, you may need to clear the NPX cache:

  1. **Clear the NPX cache:**
     ```bash theme={null}
     npx clear-npx-cache
     ```

  2. **Or manually delete the cache folder (Windows):**
     ```cmd theme={null}
     rmdir /s "C:\Users\<Firstname_Lastname>\AppData\Local\npm-cache\_npx"
     ```
     (Replace `<Firstname_Lastname>` with your actual Windows username)

  3. **Try installing the MCP server again:**
     ```bash theme={null}
     npx @playwright/mcp@latest
     ```

  4. **Verify it works:**
     ```bash theme={null}
     elitea-mcp serve
     ```
</Accordion>

<Accordion title="Problem: Errors when running 'elitea-mcp serve' or 'elitea-mcp tray' - need to upgrade client">
  **Fix:**

  If you're getting errors with the Elitea MCP client, try upgrading to the latest version:

  * **If you installed via pip:**
    ```bash theme={null}
    pip install --upgrade elitea-mcp
    ```

  * **If you installed via pipx:**
    ```bash theme={null}
    pipx upgrade elitea-mcp
    ```

  **Verify the upgrade worked:**

  ```bash theme={null}
  elitea-mcp serve
  ```
</Accordion>

***

## What You Can Do Next

Now that your MCP client is running, you can:

* **Automate browser testing** with Playwright tools
* **Manage GitHub repositories** directly from Elitea agents
* **Connect more MCP servers** to add even more capabilities
* **Create complex workflows** that combine multiple external tools
* **Share configurations** with your team by exporting your `config.json`

***

<Info title="Helpful Resources">
  * [Elitea Settings & Configuration](../../menus/settings/ai-configuration)
  * [MCP Protocol Official Docs](https://modelcontextprotocol.io/)
  * [Playwright MCP Server](https://github.com/microsoft/playwright-mcp)
  * [GitHub MCP Server](https://github.com/github/github-mcp-server)
  * [How to Create and Edit MCPs from Canvas](../../how-tos/chat-conversations/how-to-create-and-edit-mcps-from-canvas)
</Info>

***
