Skip to main content
Glama
Defilan

Plausible Analytics MCP Server

by Defilan

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PLAUSIBLE_API_KEYYesYour Plausible API key
PLAUSIBLE_BASE_URLNoBase URL for self-hosted instanceshttps://plausible.io

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
list-sites

List all sites you have access to in Plausible Analytics

get-current-visitors

Get the number of people currently on a site (real-time)

get-aggregate-stats

Get aggregate stats for a site over a time period (visitors, pageviews, bounce rate, etc.). Use this for summary/overview questions.

get-timeseries

Get traffic trends over time. Returns data points broken down by time interval (day, week, or month). Use this for trend analysis and charts.

get-breakdown

Break down stats by a dimension (e.g. page, source, country, device, browser, OS, UTM tags). Use this for 'top pages', 'traffic sources', 'visitor countries', etc.

query

Execute a raw Plausible Stats API v2 query. Use this for advanced queries that the other tools don't cover, such as custom property breakdowns, behavioral filters, or combining multiple dimensions with time series.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Defilan/plausible-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server