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

# Lyzr Agents as MCP Servers

## Prerequisites

Before getting started, make sure the following requirements are met:

### 1. Install Python

* Download and install Python from [python.org](https://www.python.org/downloads/)
* Ensure Python is added to your system PATH
* Verify installation:

```bash theme={null}
python --version
```

### 2. Install uv

* Follow the installation guide: [Installing uv](https://docs.astral.sh/uv/getting-started/installation/#installation-methods)
* **Windows**:

```powershell theme={null}
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
```

* **macOS/Linux**:

```bash theme={null}
curl -Ls https://astral.sh/uv/install.sh | sh
```

or

```bash theme={null}
brew install uv
```

## Configuration

### 1. Claude Desktop Setup

To connect Lyzr MCP Tool Call with Claude Desktop:

#### Location of config file:

* **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
* **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`

#### Add the following configuration:

```json theme={null}
{
  "mcpServers": {
    "lyzr-mcp-tool-call": {
      "command": "uvx",
      "args": ["lyzr-mcp-tool-call@latest"],
      "env": {
        "LYZR_API_KEY": "your-lyzr-api-key-here",
        "LYZR_USER_ID": "your-user-id"
      }
    }
  }
}
```

#### Close Claude Desktop completely and reopen

### 2. Cursor Setup

Follow the official guide: [Cursor MCP Setup](https://docs.cursor.com/context/model-context-protocol)

To configure MCP on Cursor:

1. Press `Command + Shift + P` (macOS) | `Ctrl + Shift + P` (Windows)
2. Run: `View: Open MCP Settings`
3. Click `+ Add new global MCP server`
4. This opens the `mcp.json` file where you can add the configuration below:

```json theme={null}
{
  "mcpServers": {
    "lyzr-mcp-tool-call":{
      "command":"uvx",
      "args":["lyzr-mcp-tool-call@latest"],
      "env":{
        "LYZR_API_KEY":"your-lyzr-api-key-here",
        "LYZR_USER_ID":"your-user-id"
      }
    }
  }
}
```

### Environment Variables

These are required for authentication:

* `LYZR_API_KEY`: Your Lyzr API key
* `LYZR_USER_ID`: Your Lyzr user ID
