Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/account-settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ To open your account settings, click your account name in the top-right menu and
- [Login management](login-management.md): view and remotely end active sessions
- [Reset password](reset-password.md): change your account password

**Connected apps**

- [AI integration (MCP)](mcp.md): connect an assistant to your stats and revoke its access from Connected apps

**Guest sites**

Shown when you've been invited to sites owned by other teams.
Expand Down
12 changes: 7 additions & 5 deletions docs/data-access.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Accessing your Plausible data
sidebar_label: Accessing your data
description: "Choose the right way to access your Plausible data outside the dashboard: Stats API, Events API, Sites API, CSV export, Data Studio or data warehouse connectors."
description: "Choose the right way to access your Plausible data outside the dashboard: Stats API, Events API, Sites API, CSV export, Data Studio, MCP server or data warehouse connectors."
---

Plausible gives you several ways to access your stats outside the dashboard. The right option depends on whether you want to query data, send data, manage sites or export for offline use.
Expand Down Expand Up @@ -120,10 +120,12 @@ Raw event data exports are not self-serve and are not real-time. They are part o

## MCP server

The [Plausible MCP server](https://github.com/getsentry/plausible-mcp), built by the Sentry team, lets you query your Plausible data through AI tools such as Claude. Ask natural language questions about traffic, top pages, conversions and goal performance without writing API queries. It requires a Stats API key to connect.
Plausible's official [MCP server](mcp.md) lets you ask questions about your analytics through a compatible AI assistant. Connect through OAuth, select the team you want to use and start exploring your stats. You do not need an API key.

It provides read-only access to your analytics and is included on all plans.

**Use this when:**
- You want to explore your analytics data conversationally through an AI tool
- You need quick answers without building a dashboard or writing code
- You want to explore traffic, top pages and goal conversions through a conversation
- You want to compare periods or summarize your stats without writing API queries

This is a community-built tool, not an official Plausible integration.
[Connect your AI assistant](mcp.md)
8 changes: 4 additions & 4 deletions docs/data-pipelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ If you're looking to access your Plausible stats outside of the plausible.io web

These integrations are built and maintained by Plausible.

### AI integration (MCP)

Ask your AI assistant questions about your traffic, top pages and conversions with Plausible's official MCP server. [See the setup guide](mcp.md).

### Stats API

The Plausible Stats API offers a way to retrieve your stats programmatically. [Learn more here](stats-api.md).
Expand Down Expand Up @@ -40,10 +44,6 @@ These integrations are built and maintained by third parties, not by Plausible.

[Fivetran Plausible Connector](https://github.com/imgly/fivetran-plausible-connector): A Google Cloud Function based solution for ingesting Plausible data into Fivetran. This custom connector pulls hourly stats from the Plausible API and creates a `timeseries` table in any destination supported by Fivetran.

### MCP server (Claude and other AI tools)

[Plausible MCP](https://github.com/getsentry/plausible-mcp): An MCP server built by the Sentry team that lets you query your Plausible data through AI tools like Claude. Ask natural language questions about traffic, conversions, top pages and goal performance.

### GA Insights

[GA Insights](https://www.ga-insights.com/plausible-slack) allows you to extend Plausible Analytics with automated reporting, monitoring and goal tracking straight in Slack.
Expand Down
2 changes: 1 addition & 1 deletion docs/integration-guides.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ Step-by-step guides for popular website builders and content management systems.

### Data pipelines, warehouses and other ways of viewing Plausible stats elsewhere

[See this list](data-pipelines.md) for data pipelines, warehouses, MCP servers and other ways of viewing Plausible stats elsewhere. For instance, our [stats API](stats-api.md), [official WordPress plugin](wordpress-integration.md) and [official Google Data Studio connector](looker-studio.md).
[See this list](data-pipelines.md) for data pipelines, warehouses, our MCP server and other ways of viewing Plausible stats elsewhere. For instance, our [stats API](stats-api.md), [official WordPress plugin](wordpress-integration.md) and [official Google Data Studio connector](looker-studio.md).

---

Expand Down
3 changes: 2 additions & 1 deletion docs/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,10 @@ import CtaBox from '@site/src/components/CtaBox';
</div>

<div class="docs-card">
<h3>API</h3>
<h3>APIs and data access</h3>
<p>Query your data, send events and manage sites programmatically.</p>
<ul>
<li><a href="/docs/mcp">AI integration (MCP)</a>: connect your assistant and ask questions about your stats</li>
<li><a href="/docs/data-access">Accessing your data</a>: choose the right method for your use case</li>
<li><a href="/docs/white-label">White-label integration guide</a>: embed Plausible into your own product</li>
<li><a href="/docs/stats-api">Stats API</a>: query your analytics data programmatically</li>
Expand Down
2 changes: 1 addition & 1 deletion docs/looker-studio.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ At this stage, you can check **Allow "Plausible Site(s)" to be modified in repor

Check the **Data Refreshed in Real-time** box to bypass the connector's six-hour cache and fetch current data for report queries.

If this box is not checked, the connector caches data for six hours. This makes reports quicker and limits the number of API requests. Stats API keys are limited to 600 requests per hour by default. If you need more capacity, please [contact us](https://plausible.io/contact).
If this box is not checked, the connector caches data for six hours. This makes reports quicker and limits the number of API requests. Business plans include 600 requests per hour, shared across the team's API requests and MCP tool calls. The allowance is per team, not per API key. If you need more capacity, please [contact us](https://plausible.io/contact).

Once these options are configured, you can click **Connect** and you will see a list of all available fields for data and metrics that you can pull from Plausible.

Expand Down
172 changes: 172 additions & 0 deletions docs/mcp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
---
title: "Connect your AI assistant to Plausible"
sidebar_label: "AI integration (MCP)"
description: "Connect to Plausible's official read-only MCP server using OAuth, choose your team and ask questions about your stats. Included with every plan."
---

You can connect your AI assistant (like Claude, ChatGPT, etc.) to Plausible and ask questions about your stats. We use MCP (Model Context Protocol), a standard that lets AI assistants connect to other apps. Our integration is included on all plans, at no extra charge.

## Before you connect

You’ll need to be a member of the Plausible team whose stats you want to use. Any team role works. If you only have guest access to a site, ask the team owner to add you as a member.

Your AI assistant needs to support custom MCP connections through OAuth. You don’t need a Plausible API key.

Looking for visits that AI assistants send to your website? That is a different feature. See the **AI Assistants** channel in your [Sources report](top-referrers.md#channels).

## Connect to Plausible

Jump to the setup steps for [Claude](#connect-in-claude), [ChatGPT](#connect-in-chatgpt), [Grok](#connect-in-grok) or [Cursor](#connect-in-cursor). For other assistants, follow these steps:

1. Open your assistant's settings for adding an MCP server or external connection. The name and location of this setting depend on your assistant.
2. Add the server URL: `https://plausible.io/mcp`.
3. Follow the authorization flow to sign in to Plausible, select the team you want to use and approve access.
4. Return to your assistant and [try your first question](#try-your-first-question).

### Connect in Claude

Start the setup on the web or in Claude Desktop.

1. Go to **Customize → Connectors**.
2. Click **+**, then **Add custom connector**.
3. Enter the server URL `https://plausible.io/mcp`, then click **Connect**.
4. Sign in to Plausible, select the team you want to use and approve access.

The Free plan allows one custom connector. On Team and Enterprise plans, an owner needs to add the connector first, then members can connect their own accounts. See [Claude's connector guide](https://support.claude.com/en/articles/11175166-get-started-with-custom-connectors-using-remote-mcp) for current availability and setup options.

[Try your first question](#try-your-first-question).

### Connect in ChatGPT

1. On the ChatGPT website, go to **Plugins**.
2. Click **+**, then **Add custom MCP server**.
3. Name the connection **Plausible** and enter `https://plausible.io/mcp` as the server URL.
4. Complete the sign-in to Plausible, select your team and approve access.

Availability depends on your ChatGPT plan and workspace permissions. On Business, admins and owners can create and publish custom connections. On Enterprise and Edu, admins can also authorize selected members to create and test connections; only admins and owners can publish them for the workspace. See [OpenAI's connection guide](https://help.openai.com/en/articles/12584461-connecting-custom-mcp-servers-in-chatgpt) for current requirements.

[Try your first question](#try-your-first-question).

### Connect in Grok

1. Go to [grok.com/connectors](https://grok.com/connectors).
2. Click **New Connector**, then **Custom**.
3. Enter the server URL `https://plausible.io/mcp` and complete the sign-in.

On Grok Business and Enterprise, an admin needs to provision the connector before members can use it. See [Grok's connector guide](https://docs.x.ai/grok/connectors) for details.

[Try your first question](#try-your-first-question).

### Connect in Cursor

In Cursor, add the following server configuration to `~/.cursor/mcp.json` for access across projects, or to `.cursor/mcp.json` for a single project. If the file already contains servers, add the `plausible` entry to its existing `mcpServers` object:

```json
{
"mcpServers": {
"plausible": {
"url": "https://plausible.io/mcp"
}
}
}
```

Sign in to Plausible when Cursor prompts you. See [Cursor's MCP documentation](https://cursor.com/docs/mcp) for configuration options.

[Try your first question](#try-your-first-question).

## Try your first question

Enable the Plausible connection in your chat if your assistant asks you to. Include a date range and name the site if your team has more than one. Try this prompt with your own domain in place of `example.com`:

> Show the top 10 traffic sources for example.com over the last 30 days, ranked by visitors.

## Questions to try

- “Which pages on example.com received the most visitors last month?”
- “Compare organic search traffic over the last two complete months.”
- “Which sources drove the most signup conversions last month?”
- “Summarize last week's traffic and highlight the biggest changes.”

Conversion questions require the relevant [goals](goal-conversions.md) to be configured. Questions about [custom properties](custom-props/introduction.md) and [revenue](ecommerce-revenue-tracking.md) need a plan that includes those features, the same as in your dashboard. Specify the site, date range and metric when you need an exact comparison.

## Request limits

| Plan | Requests per hour |
| --- | --- |
| Starter and Growth | 300 |
| Business | 600 |

This is a shared, team-wide budget for API requests and MCP tool calls. All API keys and MCP connections for the team use the same allowance. Creating another key or connection does not increase it.

One question can require several MCP tool calls, so the allowance counts requests rather than questions. Anything else that uses the team's API keys draws on the same allowance, including [Data Studio](looker-studio.md) reports. A report set to refresh in real time can use up the requests your assistant needs.

If your team needs more requests, upgrading from Starter or Growth to Business doubles the hourly limit from 300 to 600. For more than 600 requests per hour, [contact us about an Enterprise plan](https://plausible.io/contact).

## What the connection can access

The MCP server provides read-only access to your analytics. It can list the sites available to you in the authorized team and query their analytics.

It cannot change settings or create, edit or delete sites and goals. Selecting a team does not grant access to sites you otherwise cannot access.

## Privacy and access

Connecting an AI assistant is optional. When it queries Plausible, the returned analytics data is shared with that provider and handled under its terms and privacy settings. Review those settings before connecting, particularly when working with client or company data.

Plausible processes and stores visitor data on its European infrastructure. Your chosen assistant may process the stats it receives elsewhere. Connecting through MCP does not add tracking to your website.

## Manage connected apps

Open [Connected apps](https://plausible.io/settings/connected-apps) in your Plausible account settings to see the apps you have authorized, the team each app is connected to and when it was last used.

To disconnect an app, find the connection and revoke its access. The app will need to be authorized again to reconnect. Revoking access stops future access; it does not remove results already shared with the assistant.

## Troubleshooting

### The assistant says it is connected but cannot query my stats

Check that the connection is enabled and available in the conversation you are using. Connection availability can depend on the assistant's settings and environment. Ask it to list the sites available through the Plausible connection, then try the example query above.

### Authorization never starts

Check that you entered `https://plausible.io/mcp` and that your assistant allows custom connections for your account. If authorization still does not start, check its setup guide or [contact us](https://plausible.io/contact) with the assistant name and error message.

### My site is missing

Check which team you selected during authorization and whether your Plausible account has access to the site in that team. If you selected the wrong team, authorize a connection for the correct team.

Sites you can only open as a guest are not available. Ask the team owner to add you as a team member instead.

### The assistant asks me to connect again

After a long period of inactivity, you may need to reconnect from your assistant's settings. Revoking access in **Connected apps** also requires a new authorization. If you leave a team, the connection loses access to that team.

### The assistant gets an error for custom properties or revenue

Custom properties and revenue metrics follow the team's plan. If the plan does not include them, the query returns an error instead of results. See [subscription plans](subscription-plans.md).

### The assistant says there are too many requests

If several requests reach Plausible at once, wait a moment and try again. This can happen even when your team has requests left for the hour. If your team has used its full [hourly allowance](#request-limits), you can try again once requests are available again. Queries from API keys and Data Studio reports count toward the same limit.

### The results differ from the dashboard

Visitors, visits and pageviews are different metrics. To see what your assistant used, try asking:

> Show me the site, exact dates, time zone, filters and metric you used for this answer so I can compare it with my Plausible dashboard.

### My team's stats are locked

Ask the team owner to check the team's subscription and any notices in Plausible.

## Technical reference

- Server URL: `https://plausible.io/mcp`
- Transport: Streamable HTTP. The server is stateless and accepts `POST` requests only
- Protocol versions: `2026-07-28` and `2025-11-25`
- Authentication: OAuth 2.1 with PKCE and team selection. Clients identify themselves with a Client ID Metadata Document
- Scopes: read-only access to the team's list of sites and to their stats
- Tools: `list_sites` and `query_stats`
- Query reference: [Stats API](stats-api.md). `query_stats` accepts the same query as `POST /api/v2/query`

The query reference describes how to structure analytics queries. The MCP connection uses OAuth, so the API-key setup instructions for direct Stats API access do not apply.
2 changes: 1 addition & 1 deletion docs/stats-api-v1.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The API accepts GET requests with query parameters and returns standard HTTP res

Each request must be authenticated with an API key using the Bearer Token method. API keys are scoped to the team selected when they are created. See [Stats API authentication](stats-api.md#authentication) for setup instructions, role restrictions and site access rules.

API keys have a rate limit of 600 requests per hour by default. If you have special needs for more requests, please contact us to request more capacity.
Business plans include 600 requests per hour, shared across all API keys and MCP connections for the team. If you have special needs for more requests, please contact us to request more capacity.

The easiest way to explore the API is by using our Postman collection. Just define your `TOKEN` and `SITE_ID` variables, and you'll have an executable API reference ready to go.

Expand Down
2 changes: 1 addition & 1 deletion docs/stats-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ curl \
--data '{ "site_id": "dummy.site", "metrics": ["visitors"], "date_range": "7d" }'
```

The Stats API has a rate limit of 600 requests per hour by default. If you have special needs for more requests, [please contact us](https://plausible.io/contact) to request more capacity.
Business plans include a shared, team-wide limit of 600 requests per hour for API requests and MCP tool calls. All API keys and MCP connections for the team use the same allowance. If you have special needs for more requests, [please contact us](https://plausible.io/contact) to request more capacity.

## Request structure

Expand Down
2 changes: 2 additions & 0 deletions docs/subscription-plans.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ All plans start at the same pageview tiers. The difference is features and team
- **Business**: need funnels, user journeys, revenue tracking, custom properties, a [consolidated view](consolidated-views.md) of several sites, Stats API or Data Studio (build custom dashboards and blend Plausible data with other sources like ad spend or CRM data)
- **Enterprise**: large scale, SSO, Sites API, managed proxy or raw data exports. [Contact us](https://plausible.io/contact) to discuss

[AI integration (MCP)](mcp.md) is included on all plans. Starter and Growth include 300 requests per hour and Business includes 600. API requests and MCP tool calls share this team-wide allowance across all keys and connections. See [request limits](mcp.md#request-limits).

Compare full features and pricing on [our website](https://plausible.io/#pricing) or in the **Subscription** section of your settings. Save 2 months by choosing yearly billing.

All plans include a 30-day free trial, no credit card required. During the trial you have access to all Business plan features and limits, so you can explore the full product before choosing a plan.
Expand Down
2 changes: 2 additions & 0 deletions docs/users-roles.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ Owner, Admin, Editor and Billing team members can create their own API keys for

API keys are scoped to the team selected when they are created. They do not automatically include sites in other teams or sites where the key owner is only a guest. See [Stats API authentication](stats-api.md#authentication) for examples and the full access rules.

Any Plausible team member can [connect an AI assistant](mcp.md), including Viewers. If you only have guest access to a site, ask the team owner to add you as a member.

<div class="browser">
<img alt="Change roles, delete team member" src={useBaseUrl('img/change-roles-remove-users.png')} />
</div>
Expand Down
Loading