# Gen8i MCP Server

MCP server for Claude Desktop that connects to Gen8i's AI-powered data analysis platform with OAuth 2.0 + PKCE authentication.

## Tools

- **login** - Authenticate via browser-based OAuth flow
- **get_use_case** - List available data sources / AI agents
- **query** - Run natural language queries against a use case

## Configuration

### 1. Add to Claude Desktop config

Add the following to your Claude Desktop configuration file:

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

```json
{
  "mcpServers": {
    "gen8i-server": {
      "command": "uvx",
      "args": ["gen8i-mcp-server"],
      "env": {
        "CLIENT_ID": "<YOUR_CLIENT_ID>"
      }
    }
  }
}
```

| Field | Required | Description |
|-------|----------|-------------|
| `CLIENT_ID` | Yes | Your OAuth client ID from Gen8i |

### 2. Restart Claude Desktop

Restart Claude Desktop to load the MCP server.

## Usage

1. Ask Claude to **login** to authenticate (opens browser)
2. Ask Claude to **show use cases** to see available data sources
3. Ask Claude any business/data question and it will query the appropriate use case

## Requirements

- Python 3.12+
- [uv](https://docs.astral.sh/uv/)

## Support

For help, contact **[techsupport@gen8i.com]**.
