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

# Agno

> Connect Agno agents to Mobilerun phones using MCPTools.

Agno is a framework for building agents. Use its MCP tools to give an agent access to Mobilerun phones.

## Setup

1. [Set up a phone](https://docs.mobilerun.ai/devices.md), install `agno[mcp]` and your model provider package, and create a Mobilerun [API key](https://docs.mobilerun.ai/api-keys.md).

   ```bash theme={null}
   pip install "agno[mcp]"
   ```

2. Configure the Mobilerun MCP server:

```python theme={null}
import os
from agno.tools.mcp import MCPTools

tools = MCPTools(
    transport="streamable-http",
    url="https://cloud.mobilerun.ai/api/mcp",
    headers={"Authorization": f"Bearer {os.environ['MOBILERUN_API_KEY']}"},
)
```

3. Set `MOBILERUN_API_KEY` and model credentials in the process environment. Connect the tools and pass them to an Agno agent; close the connection afterward. Keep keys server-side and configure action approvals.

## First task

> List my Mobilerun devices and take a screenshot of the ready device.

See [MCP Server](https://docs.mobilerun.ai/mcp-server.md) for available tools.

See [Agno's MCP documentation](https://docs.agno.com/tools/mcp/overview) for the connection lifecycle.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.