Skip to main content
Glama
Fivetran MCP Toolkit

Fivetran MCP Toolkit

README.md
# Fivetran MCP Toolkit

> Manage your Fivetran data pipelines directly from Claude Desktop using the Model Context Protocol.

[![Python 3.10+](https://img.shields.io/badge/python-3.10+-blue.svg)](https://www.python.org/downloads/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![MCP Compatible](https://img.shields.io/badge/MCP-Compatible-green.svg)](https://modelcontextprotocol.io/)

---

## What is This?

The Fivetran MCP Toolkit enables Claude to interact with your Fivetran account through natural language. Manage data connections, monitor sync status, invite users, and more—all through conversation with Claude Desktop.

**Example:**
```
You: List all my Fivetran connections

Claude: I found 12 connections in your account:
• postgres_production (PostgreSQL) - Syncing every 6 hours
• salesforce_main (Salesforce) - Syncing every 24 hours
• stripe_payments (Stripe) - Paused
[...]
```

## Features

- **25 Core Tools** for essential Fivetran operations
- **Natural Language Interface** - Just ask Claude what you need
- **Full Connection Management** - Create, delete, pause, resume, and sync connections
- **User Management** - Invite users, modify roles, and manage access
- **Schema Operations** - View and reload connector schemas
- **Transformation Control** - List and run dbt transformations
- **Destination Management** - Manage data warehouses and groups
- **Real-time Monitoring** - Check sync status and health

## Installation

### Prerequisites

- Python 3.10 or higher
- [Claude Desktop](https://claude.ai/download)
- Fivetran account with API access

### Quick Start

**1. Clone the repository:**
```bash
git clone https://github.com/yourusername/fivetran-mcp-toolkit.git
cd fivetran-mcp-toolkit
```

**2. Install dependencies:**
```bash
python3 -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
pip install -r requirements.txt
```

**3. Get Fivetran API credentials:**
- Log in to [Fivetran](https://fivetran.com/)
- Click your username in the left navigation
- Click **API Key**
- Click **Generate API Key**
- Save both the API Key and API Secret securely

**4. Configure Claude Desktop:**

Edit `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or `%APPDATA%\Claude\claude_desktop_config.json` (Windows):

```json
{
  "mcpServers": {
    "fivetran": {
      "command": "python3",
      "args": [
        "/absolute/path/to/fivetran-mcp-toolkit/src/mcp_server.py"
      ],
      "env": {
        "FIVETRAN_API_KEY": "your_api_key_here",
        "FIVETRAN_API_SECRET": "your_api_secret_here"
      }
    }
  }
}
```

**5. Restart Claude Desktop**

**6. Test it:**
```
Ask Claude: "List my Fivetran connections"
```

**Detailed setup:** See [Getting Started Guide](docs/getting-started.md)

## Available Tools (25)

### Connection Management (8 tools)
| Tool | Description |
|------|-------------|
| `list_connections` | List all data connections |
| `get_connection` | Get connection details |
| `create_connection` | Create new connection |
| `delete_connection` | Delete connection |
| `sync_connection` | Trigger immediate sync |
| `pause_connection` | Pause data sync |
| `resume_connection` | Resume data sync |
| `get_sync_status` | Check sync status |

### User Management (4 tools)
| Tool | Description |
|------|-------------|
| `invite_user` | Invite new users |
| `list_users` | List all users |
| `get_user` | Get user details |
| `modify_user` | Modify user roles |

### Destination Management (3 tools)
| Tool | Description |
|------|-------------|
| `list_destinations` | List data warehouses |
| `get_destination_details` | Get destination info |
| `create_destination` | Create new destination |

### Connector Metadata (4 tools)
| Tool | Description |
|------|-------------|
| `list_connector_types` | List available connectors |
| `get_connector_metadata` | Get connector config |
| `get_connector_schema` | View connection schema |
| `reload_connector_schema` | Refresh schema |

### Transformations (3 tools)
| Tool | Description |
|------|-------------|
| `list_transformations` | List dbt transformations |
| `get_transformation` | Get transformation details |
| `run_transformation` | Execute transformation |

### Groups (3 tools)
| Tool | Description |
|------|-------------|
| `list_groups` | List destination groups |
| `get_group` | Get group details |
| `create_group` | Create new group |

**Full API Reference:** See [API Coverage](docs/api-coverage.md)

## Usage Examples

### Check Connection Status
```
You: What's the status of my PostgreSQL connection?

Claude: [Calls get_sync_status]
Your PostgreSQL connection is healthy:
• Status: Connected
• Last sync: 2 hours ago (successful)
• Next sync: In 4 hours
• Sync frequency: Every 6 hours
```

### Pause During Maintenance
```
You: We're doing database maintenance. Pause the production connections.

Claude: [Calls pause_connection for each]
Paused 3 connections:
  • postgres_production
  • mysql_orders
  • mongodb_events
```

### Invite Team Member
```
You: Invite sarah@company.com as an Account Analyst

Claude: [Calls invite_user]
Invitation sent to sarah@company.com
Role: Account Analyst
They'll receive setup instructions via email.
```

### Monitor Issues
```
You: Are any connections failing?

Claude: [Analyzes connections]
Found 1 issue:
• mysql_orders - Connection timeout (last failed 3 hours ago)
  Recommendation: Check database connectivity
```

**More Examples:** See [Examples Guide](docs/examples.md)

## Documentation

| Document | Description |
|----------|-------------|
| [Getting Started](docs/getting-started.md) | Installation and setup guide |
| [API Coverage](docs/api-coverage.md) | Complete tool reference |
| [Examples](docs/examples.md) | Common use cases and patterns |
| [Architecture](docs/architecture.md) | Technical implementation details |
| [Troubleshooting](docs/troubleshooting.md) | Common issues and solutions |
| [Roadmap](docs/roadmap.md) | Additional tools you can build |
| [Contributing](CONTRIBUTING.md) | How to contribute |

## Roadmap

### v1.0 (Current)
- 25 core tools covering essential operations
- Connection, user, and destination management
- Schema operations and transformations
- Comprehensive documentation

### Additional Tools Available
The Fivetran API supports many more operations that you can add as needed:
- Bulk operations (pause/resume/sync multiple)
- Usage analytics and performance reports
- Certificate and security management
- Multi-account support
- Advanced transformation management

See [Roadmap](docs/roadmap.md) for the complete list and how to extend the toolkit.

## Contributing

We welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) for details on:

- Reporting bugs
- Suggesting features
- Submitting pull requests
- Development setup
- Coding standards

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## Security

- Credentials are never logged or stored
- All API communication uses HTTPS
- Runs locally on your machine
- No data sent to third parties

## Troubleshooting

**Common Issues:**

| Issue | Solution |
|-------|----------|
| Claude can't find tools | Check absolute paths in config, restart Claude |
| Authentication errors | Verify API credentials, regenerate if needed |
| Server won't start | Check Python version (3.10+), install dependencies |
| Tools timeout | Check network connectivity, verify Fivetran API status |

**Detailed Help:** See [Troubleshooting Guide](docs/troubleshooting.md)

## Acknowledgments

- Built on the [Model Context Protocol](https://modelcontextprotocol.io/) by Anthropic
- Powered by the [Fivetran REST API](https://fivetran.com/docs/rest-api)
- Inspired by the MCP community and [Infinite Lambda's MCP Fivetran Package Server](https://infinitelambda.com/mcp-fivetran-package-server/)

## Support

- [Documentation](docs/)
- [Report Bug](https://github.com/yourusername/fivetran-mcp-toolkit/issues/new?template=bug_report.md)
- [Request Feature](https://github.com/yourusername/fivetran-mcp-toolkit/issues/new?template=feature_request.md)
- [Discussions](https://github.com/yourusername/fivetran-mcp-toolkit/discussions)

## Show Your Support

If you find this toolkit useful, please consider:
- Starring the repository
- Reporting bugs
- Suggesting features
- Contributing improvements
- Sharing with others

---

**Made with care for the data engineering community**

*Note: This is an unofficial community project and is not affiliated with or endorsed by Fivetran Inc.*