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

# MCP

> Enable Cline, Cursor, or Windsurf to build and run Magnitude tests with MCP

Magnitude provides an official MCP server that enables AI assistants to set up projects, build test cases, and run tests with Magnitude.

<Tabs>
  <Tab title="Cline">
    ### Marketplace Install

    To install with Cline, you can find us on the official Cline Marketplace.

    Go to `MCP Servers -> Marketplace`, search for `Magnitude`, click `Install` and follow the instructions!

    ### Manual Install

    Alternatively, to manually install the MCP server for Cline, follow these steps:

    1. Install MCP server via npm:

    ```
    npm i -g magnitude-mcp
    ```

    2. Go to `MCP Servers -> Installed -> Configure MCP Servers` and add our MCP server to the JSON:

    ```json theme={null}
    {
        "mcpServers": {
            "magnitude": {
                "command": "npx",
                "args": ["magnitude-mcp"]
            }
        }
    }
    ```

    Now start a new chat with Cline and ask to set up a new project with Magnitude, build new Magnitude tests, or run tests!
  </Tab>

  <Tab title="Cursor">
    1. Install MCP server via npm:

    ```
    npm i -g magnitude-mcp
    ```

    2. Open Cursor Settings, go to Features > MCP Servers
    3. Click "+ Add new global MCP server" and enter the following code:

    ```json theme={null}
    {
        "mcpServers": {
            "magnitude": {
                "command": "npx",
                "args": ["magnitude-mcp"]
            }
        }
    }
    ```
  </Tab>

  <Tab title="Windsurf">
    1. Install MCP server via npm:

    ```
    npm i -g magnitude-mcp
    ```

    2. Add this to your `./codeium/windsurf/model_config.json`:

    ```json theme={null}
    {
        "mcpServers": {
            "magnitude": {
                "command": "npx",
                "args": ["magnitude-mcp"]
            }
        }
    }
    ```
  </Tab>
</Tabs>
