# Data Connect v1 Quickstart

## Installation

```bash
pip install "ai4gh[data-connect]"
```

## Query Data

```python
import asyncio
from ai4gh.specs.data_connect.client import DataConnectClient


async def main():
    async with DataConnectClient(base_url="https://data.example.org") as client:
        # Get service info
        info = await client.get_service_info()
        print(f"Service: {info.name}")

        # List available tables
        tables = await client.list_tables()
        for table in tables.tables:
            print(f"  {table.name}: {table.description}")

        # Execute a SQL-like query
        results = await client.search("SELECT * FROM samples WHERE disease = 'cancer' LIMIT 10")
        for row in results:
            print(row)


asyncio.run(main())
```

## Compliance Testing

Data Connect does not have a dedicated compliance suite (queries are server-specific).

## MCP Tool

```json
{
  "tool": "data_connect_search",
  "arguments": {
    "base_url": "https://data.example.org",
    "query": "SELECT * FROM samples LIMIT 5"
  }
}
```

## Data Models

```python
from ai4gh.specs.data_connect.models import Table, TableInfo, TableList, SearchResult
```
