MetorialDocs

Set up Plausible Analytics in Metorial for AI agents

Share Plausible Analytics with your team in Claude, ChatGPT and Cursor through Metorial: API key sign-in, 21 tools (10 read-only).

To give your team Plausible Analytics in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Plausible Analytics integration in a Metorial portal, and each person connects with an API key. Agents can query privacy-friendly website analytics data including visitors, pageviews, bounce rate, visit duration, and revenue metrics. The integration has 21 tools, 10 read-only, 7 write and 4 destructive, plus 1 trigger.

What you'll learn

  • How an admin shares Plausible Analytics in a portal and how each person connects
  • What Plausible Analytics asks for when you connect, and where to find it
  • How to keep the 10 read-only tools and reject the other 11

Before you start

Sign-in method

MethodTypeWhat a person provides
API KeyAPI tokentoken

API Key

To connect, a person enters:

  • token: Your Plausible Analytics API key. Create one in Settings > API Keys.

Setup settings

Setup also asks for:

  • baseUrl (optional): Base URL for the Plausible Analytics instance. Defaults to the hosted service. Change this for self-hosted instances.

Admin: share Plausible Analytics in a portal

In the dashboard

Open Shared Resources

Open Workforce, choose the portal, and select Shared Resources under Access.

Share a new integration

Select Share a Resource, then New Integration, and choose Plausible Analytics. For how members connect, choose Each person connects so everyone enters their own API key, or Shared connection to enter one API key for everyone.

Limit the tools

Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Plausible Analytics.

Choose who gets it

Add the access groups that should see Plausible Analytics. When a person asks for access from the portal, the request appears under Access Requests.

With the CLI

The CLI cannot create the per-user Plausible Analytics integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search "plausible analytics"

Employee: connect Plausible Analytics

In the portal

Open Plausible Analytics in the catalog

Sign in to your portal and open Plausible Analytics. The status reads Available.

Authenticate

Under Quick setup, select Authenticate. In the setup window, enter your API key (token).

Confirm

The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.

With the CLI

metorial catalog search "plausible analytics"
metorial setup <catalog-item-id>

catalog search prints the catalog item ID.

Add it to your AI client

metorial install adds your Plausible Analytics connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.

metorial list "plausible analytics"
metorial client list
metorial install <client-identifier> <integration-id>

For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.

Make it read-only

Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 10 read-only tools, such as get_site and list_goals, and lose the 7 write tools, such as send_event or create_goal, and the 4 destructive tools, such as delete_goal or delete_site.

Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.

Check it worked

metorial list "plausible analytics"
metorial tools <integration-id>
metorial call <integration-id> list_sites -d '{}'

metorial tools lists the 21 tools, minus any you rejected. list_sites takes no input. It lists sites accessible to your Plausible Analytics API key.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (10)

  • list_guests: List all guest users for a site, including their email, role (viewer or editor), and invitation status. Needs siteId.
  • list_teams: List teams accessible to your Plausible Analytics API key and check whether API access is available for each team.
  • query_analytics: Query website analytics data from Plausible. Needs siteId, metrics and dateRange.
  • get_site: Get details of a specific site including its tracker script configuration and custom properties. Needs siteId.
  • list_sites: List sites accessible to your Plausible Analytics API key.
  • get_realtime_visitors: Get the current number of visitors on your website in real time. Needs siteId.
  • list_custom_properties: List all custom properties configured for a site. Needs siteId.
  • list_goals: List all conversion goals configured for a site. Needs siteId.
  • check_api_health: Check the Plausible instance readiness endpoint to diagnose service availability when tracking or analytics requests fail.
  • get_tracker_installation: Retrieve the site-specific tracker script URL and its configuration for installing Plausible on a website.

Write tools (7)

  • create_custom_property: Create a custom property for a site. Needs siteId and propertyName.
  • update_site: Update an existing site in Plausible Analytics. Needs siteId.
  • create_site: Create a new site in your Plausible Analytics account. Needs domain.
  • create_shared_link: Create or find a shared link for a site to enable public or embedded dashboard access. Needs siteId and name.
  • invite_guest: Invite a guest user to access a site's analytics dashboard. Needs siteId, email and role.
  • send_event: Send a pageview or custom event to Plausible Analytics. Needs domain, name and url.
  • create_goal: Create or find a conversion goal for a site. Needs siteId and goalType.

Destructive tools (4)

  • delete_custom_property: Delete a custom property from a site. Needs siteId and propertyName.
  • delete_site: Delete a site from your Plausible Analytics account along with all its data. Needs siteId.
  • delete_goal: Delete a conversion goal from a site. Needs siteId and goalId.
  • remove_guest: Remove a guest user's access from a site. Needs siteId and email.

Triggers

Plausible Analytics has 1 trigger, which fire on events in Plausible Analytics:

  • inbound_webhook

Next steps