# MCP server

> The Filament Analytics MCP server lets you ask questions about your data from Claude, ChatGPT, Cursor, and more.

### What is this?

Filament can connect directly to AI tools you already use — like Claude Desktop, ChatGPT, and Cursor. Once connected, you can ask questions about your data right from those tools, without needing to open Filament.

This works through the [Model Context Protocol](https://modelcontextprotocol.io) (MCP), an open standard that lets AI assistants access external data. The Filament Analytics MCP server is hosted at `https://mcp.filamentanalytics.com/mcp`.

Filament Analytics (filamentanalytics.com) is a reporting and data warehouse platform. It isn't related to FilamentPHP, the Laravel admin framework.

### What can it do?

- See all your connected data sources and tables
- Answer questions about your data using SQL behind the scenes
- Understand how your apps store data (e.g. how Stripe organizes subscriptions)
- Build dashboards: create charts and pages, arrange them, and set dates and filters

The AI handles the conversation — Filament provides the data.

### How to connect

Pick your AI tool below and follow the steps. When you first connect, you'll be asked to log in and choose which organization's data to share.

#### Claude Desktop

1. Open Claude Desktop and go to **Settings > Connectors**.
2. Click **Add custom connector**.
3. Paste the Filament server URL:

   ```text
   https://mcp.filamentanalytics.com/mcp
   ```

4. Click **Save**. You'll be prompted to log in to Filament and approve access.

Requires a Claude Pro, Max, Team, or Enterprise plan.

#### ChatGPT

1. Open ChatGPT and go to **Settings > Apps**.
2. Click **Create** and enter the Filament server URL:

   ```text
   https://mcp.filamentanalytics.com/mcp
   ```

3. Save and connect. ChatGPT will ask you to log in to Filament and approve access.

Requires a ChatGPT Pro, Team, Enterprise, or Edu plan.

#### Cursor

Add to your Cursor MCP config file at `~/.cursor/mcp.json`:

```json
{
  "mcpServers": {
    "filament": {
      "url": "https://mcp.filamentanalytics.com/mcp"
    }
  }
}
```

Cursor will detect the change and prompt you to log in to Filament when you first use it.

#### Claude Code

Run this command in your terminal:

```sh
claude mcp add --transport http filament https://mcp.filamentanalytics.com/mcp
```

Claude Code will prompt you to log in to Filament on first use.

#### Other AI tools

Any AI tool that supports MCP can connect to Filament. Point it at:

```text
https://mcp.filamentanalytics.com/mcp
```

Your AI tool will handle the login automatically — no extra configuration needed.

### Security

When you connect an AI tool, you log in and approve access — just like connecting any other app. A few things to know:

- Your login expires after 24 hours and renews automatically
- Questions run as read-only queries, so AI tools can't change your data
- AI tools can create, edit and delete dashboards, charts and filters in the organization you connect
- If you belong to multiple organizations, you choose which one to connect

### Need help?

If you run into issues connecting, contact us at [team@filamentanalytics.com](mailto:team@filamentanalytics.com)
