KosmoKrator

analytics

Plausible Analytics MCP, CLI, and Lua Integration for AI Agents

Plausible Analytics integration docs for AI agents: MCP gateway setup, Plausible Analytics CLI commands, Lua API reference, credentials, and function schemas.

Plausible Analytics for agents

Credentials can be configured manually in web or CLI hosts.

Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.

Agent Surfaces

Machine-Readable Metadata

Function Catalog

FunctionTypeParametersDescription
plausible.plausible_query_stats Read read 9 Query website analytics from Plausible. Supports aggregate stats, timeseries, and breakdowns by dimension. Use dimensions to group results (e.g., by country, source, page). Omit dimensions for simple aggregate totals.
plausible.plausible_realtime_visitors Read read 1 Get the current number of realtime visitors on a website (visitors in the last 5 minutes).
plausible.plausible_list_sites Read read 2 List websites tracked in Plausible Analytics. Returns site domains you can query for analytics data.
plausible.plausible_create_site Write write 2 Register a new website for tracking in Plausible Analytics.
plausible.plausible_delete_site Write write 1 Remove a website from Plausible Analytics tracking. This deletes all associated data.
plausible.plausible_list_goals Read read 1 List all goals (conversion tracking) configured for a website in Plausible.
plausible.plausible_create_goal Write write 3 Create a conversion goal for a website in Plausible. Goals can track pageviews to specific pages or custom events.
plausible.plausible_delete_goal Write write 2 Delete a conversion goal from a website in Plausible.