# Computer-Use Agents API MCP server

> Run and manage autonomous computer-use agents that can browse the web or control desktops through an MCP client.

- Repository: https://github.com/hcompai/hai-agents-python
- Page: https://hostedmcp.org/servers/hcompai/hai-agents-python
- Transport: remote
- Stars: 46
- License: MIT
- Latest version: 1.0.0

## Install

### Claude Code

```sh
claude mcp add --transport http hai-agents-python https://agp.hcompany.ai/mcp
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "hai-agents-python": {
      "url": "https://agp.hcompany.ai/mcp"
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "hai-agents-python": {
      "type": "http",
      "url": "https://agp.hcompany.ai/mcp"
    }
  }
}
```

### Codex (`~/.codex/config.toml`)

```toml
[mcp_servers.hai-agents-python]
url = "https://agp.hcompany.ai/mcp"
```

### Gemini CLI (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "hai-agents-python": {
      "httpUrl": "https://agp.hcompany.ai/mcp"
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `HAI_API_KEY` | no | no |  |

## FAQ

### How do I install the SDK and CLI?

You can install the SDK and the holo command using `pip install "hai-agents[cli]"`, or just the SDK with `pip install hai-agents`.

### Can I use the agent to control my local desktop?

Yes, by using the `h/holo-desktop` agent, the agent can drive your machine's desktop using your mouse and keyboard.

### How do I add this to my editor?

You can use the command `holo mcp install` to add the MCP server to editors like Cursor, Claude Code, or Codex.

### Can I provide my own tools to the agent?

Yes, you can expose your own Python functions to the agent by passing them to `run_session`.
