Databuddy MCP server
133 operations0 webhooks
Cookieless product analytics on Databuddy: analytics reports and read-only SQL, custom events and identities, session replays, websites, feature flags and target groups, funnels, goals, annotations, short links, uptime monitors, alarms, status pages and incidents, and visitor-data export and deletion (133 operations).
Try Databuddy with your agent
Connect Databuddy, then paste this into Claude, ChatGPT or Cursor. For ideas from other apps, see the use cases.
Using Corsair, show me what you can do in Databuddy on my account, then run one read-only example and show me the result.
Databuddy tools and triggers
Tools are what your agent can do in Databuddy through Corsair's MCP server. Triggers are the Databuddy events a routine can start from.
Status Page
- Add MonitorWrite
Adds a monitor to a status page. Requires write:status_pages scope.
statusPage.addMonitor
- CreateWrite
Creates a status page. Requires write:status_pages scope.
statusPage.create
- Create Asset Upload UrlWrite
Returns a short-lived presigned URL for uploading a status page logo or favicon. Requires write:status_pages scope.
statusPage.createAssetUploadUrl
- Create IncidentDestructive
Creates a new status page incident. Requires write:status_pages scope. Publishes the incident on the public status page.
statusPage.createIncident
- Custom DomainRead-only
Returns the custom domain, the DNS records it needs, and whether each one is in place. Requires read:status_pages scope.
statusPage.customDomain
- DeleteDestructive
Deletes a status page. Requires write:status_pages scope.
statusPage.delete
- Delete IncidentDestructive
Deletes a status page incident. Requires write:status_pages scope.
statusPage.deleteIncident
- GetRead-only
Returns status page details including monitors. Requires read:status_pages scope.
statusPage.get
- Get By DomainRead-only
Get public status page by custom domain.
statusPage.getByDomain
- Get By SlugRead-only
Get public status page.
statusPage.getBySlug
- ListRead-only
Lists status pages for an organization. Requires read:status_pages scope.
statusPage.list
- List IncidentsRead-only
Lists incidents for a status page. Requires read:status_pages scope.
statusPage.listIncidents
- List PublicRead-only
List public status pages for sitemap generation.
statusPage.listPublic
- Remove MonitorWrite
Removes a monitor from a status page. Requires write:status_pages scope.
statusPage.removeMonitor
- Reorder MonitorsWrite
Sets the display order of every monitor on a status page. Requires write:status_pages scope.
statusPage.reorderMonitors
- Set Custom DomainWrite
Sets the hostname a status page should be served on, or removes it when null. The domain serves the page only after verifyCustomDomain reports it active. Requires write:status_pages scope.
statusPage.setCustomDomain
- TransferDestructive
Transfers a status page to another organization. Requires write:status_pages scope on source and target.
statusPage.transfer
- UpdateWrite
Updates status page details. Requires write:status_pages scope.
statusPage.update
- Update IncidentDestructive
Posts an update to a status page incident. Requires write:status_pages scope. Publishes the update on the public status page.
statusPage.updateIncident
- Update Monitor SettingsWrite
Updates visibility settings for a status page monitor. Requires write:status_pages scope.
statusPage.updateMonitorSettings
- Verify Custom DomainWrite
Checks the ownership TXT record and connects the custom domain. It goes live once its DNS points at Databuddy; until then the status is connecting. Requires write:status_pages scope.
statusPage.verifyCustomDomain
Websites
- Agent Install ProgressRead-only
Reads the latest install report a coding agent posted for a website, or for one setup session when setupSession is given. Requires website read permission.
websites.agentInstallProgress
- Check Agent SetupRead-only
Requests the website's homepage and llms.txt as GPTBot and reports whether each request was recorded through @databuddy/sdk/agents or a Vercel log drain, the HTTP status each request got, and which bot protection blocked it. Also reports the homepage status for a regular browser, so a bot rule can be told apart from a site that is down. Requires website read permission.
websites.checkAgentSetup
- Check Ai RobotsRead-only
Reads the website's robots.txt and reports, for each AI crawler user agent, whether it is allowed, partly blocked, or blocked, and since when a blocked crawler has been blocked. Requires website read permission.
websites.checkAiRobots
- CreateWrite
Creates a website. Requires organization create permission.
websites.create
- DeleteDestructive
Deletes a website. Requires delete permission.
websites.delete
- Export DownloadRead-only
Downloads analytics export. Requires read permission.
websites.exportDownload
- Get By IdRead-only
Returns a website by id. Requires website read permission.
websites.getById
- Get Public SummaryRead-only
Returns minimal public-overview metadata for a website (id, domain, name, status, reporting timezone). Public websites only.
websites.getPublicSummary
- Is Tracking SetupRead-only
Checks if tracking is set up for a website. Requires website read permission.
websites.isTrackingSetup
- ListRead-only
Returns websites for the active organization.
websites.list
- List With ChartsRead-only
Returns websites with chart data and active users.
websites.listWithCharts
- Setup StatusRead-only
What a website sent for each feature over the last 30 days: page views and how many came from identified visitors, Web Vitals, errors, custom events from browsers and from servers, outgoing link clicks, AI crawler reads reported by its server, payments and how many carry a visitor, session recordings, and accounts sent with group(). Requires website read permission.
websites.setupStatus
- Toggle PublicDestructive
Toggles website public/private. Requires update permission. Making a website public lets anyone read its overview analytics.
websites.togglePublic
- Tracking RequestsRead-only
What a website sent over the last 7 days: events counted, and event requests turned away (one request can carry several events), grouped by why: bots, excluded by its own rules, from another domain, outside its IP allowlist, unreadable data with the most common field problem, or other. Requires website read permission.
websites.trackingRequests
- TransferDestructive
Transfers a website to another organization.
websites.transfer
- Transfer To OrganizationDestructive
Transfers website to target organization.
websites.transferToOrganization
- UpdateWrite
Updates a website. Requires update permission.
websites.update
- Update SettingsWrite
Updates website settings. Requires update permission.
websites.updateSettings
Uptime
- Create ScheduleWrite
Creates an uptime monitor. Requires write:monitors scope.
uptime.createSchedule
- Delete ScheduleDestructive
Deletes an uptime schedule. Requires write:monitors scope.
uptime.deleteSchedule
- Get ScheduleRead-only
Returns schedule with BullMQ scheduler status. Requires read:monitors scope.
uptime.getSchedule
- Get Schedule By Website IdRead-only
Returns uptime schedule for a website with BullMQ scheduler status. Requires read:monitors scope.
uptime.getScheduleByWebsiteId
- List SchedulesRead-only
Returns uptime schedules for one organization or all accessible organizations. Requires read:monitors scope.
uptime.listSchedules
- Manual CheckWrite
Triggers an immediate uptime check for a monitor. Monitor must not be paused. Requires write:monitors scope.
uptime.manualCheck
- Pause ScheduleWrite
Pauses an uptime schedule. Requires write:monitors scope.
uptime.pauseSchedule
- Resume ScheduleWrite
Resumes an uptime schedule. Requires write:monitors scope.
uptime.resumeSchedule
- TransferDestructive
Transfers an uptime monitor to another organization. Requires write:monitors scope on source and target.
uptime.transfer
- Update ScheduleWrite
Updates an uptime schedule. Requires write:monitors scope.
uptime.updateSchedule
Flags
- CreateWrite
Creates a new feature flag. Requires feature flags plan and scope update permission.
flags.create
- DeleteDestructive
Soft-deletes a flag (archives it). Requires scope delete permission.
flags.delete
- Experiment ResultsRead-only
Compares goal conversion across a flag's variants for visitors the random split assigned, against the control arm, since the versions or their split last changed. With several variants, significance uses Holm's correction. Boolean flags have no random split and are never significant. Requires website read permission.
flags.experimentResults
- Get By IdRead-only
Returns a single flag by id. Requires scope read permission.
flags.getById
- Get By KeyRead-only
Returns a single active flag by key. Requires scope read permission.
flags.getByKey
- ListRead-only
Returns all flags for a website or organization. Requires scope read permission.
flags.list
- List ChangesRead-only
Returns a flag's latest 50 configuration changes, newest first, with who made each one and the flag's settings before and after. Requires scope read permission.
flags.listChanges
- StatsRead-only
Returns recent feature flag evaluation stats for a website. Requires scope read permission.
flags.stats
- UpdateWrite
Updates an existing flag. Requires scope update permission.
flags.update
Funnels
- Bulk AnalyticsRead-only
Returns conversion analytics for several funnels over one period. A funnel that can't be measured reports why instead of failing the rest. Requires website read permission.
funnels.bulkAnalytics
- CreateWrite
Creates a new funnel. Requires funnels feature and website update permission.
funnels.create
- DeleteDestructive
Soft-deletes a funnel. Requires website delete permission.
funnels.delete
- Get AnalyticsRead-only
Returns funnel conversion analytics. Requires website read permission.
funnels.getAnalytics
- Get Analytics By LinkRead-only
Returns funnel analytics for the visitors who arrived through one of the organization's short links: those whose landing page carried the source, medium and campaign UTMs the link's destination sets. A link whose destination sets none has no visitors to follow. Requires website read permission.
funnels.getAnalyticsByLink
- Get Analytics By ReferrerRead-only
Returns funnel analytics broken down by referrer. Requires website read permission.
funnels.getAnalyticsByReferrer
- Get By IdRead-only
Returns a single funnel by id; website is resolved from the funnel. Requires website read permission.
funnels.getById
- ListRead-only
Returns all funnels for a website. Requires website read permission.
funnels.list
- UpdateWrite
Updates an existing funnel. Requires website update permission.
funnels.update
Links
- Click CountsRead-only
Returns lifetime clicks and clicks in the last 7 days for up to 100 of the organization's links in one call. Links that aren't the organization's are left out. Requires read:links scope.
links.clickCounts
- ConversionsRead-only
For one short link and range: the visitors who arrived on the organization's website through it, matched on exactly the UTMs its destination sets (a visit carrying any UTM the link leaves unset doesn't match), and how many of them reached each active goal and each step of the most recently changed funnels. sameUtms lists the organization's other links to that website with the same UTMs, whose visitors can't be told apart and are counted here too. For revenue from the same visitors, read revenue_overview filtered by arrived_via_link with this link's ID. Status untagged means the destination sets no UTMs; elsewhere means it isn't one of the organization's websites. Requires read:links scope and website read permission.
links.conversions
- CreateWrite
Creates a new short link. To file it, pass folderId for an existing folder, or folder ({ name, slug? }) to use the folder with that slug and create it if missing; the slug defaults to one derived from name. Requires write:links scope.
links.create
- DeleteDestructive
Deletes a link by id. Requires write:links scope.
links.delete
- GetRead-only
Returns a single link by id; the organization is resolved from the link. Requires read:links scope.
links.get
- ListRead-only
Returns up to the 1000 most recent links for the organization. Optional organizationId defaults to the active organization from the session. Use the paginated endpoint for larger organizations. Requires read:links scope.
links.list
- PaginatedRead-only
Returns a page of links for the organization with server-side search, sort, type filter, and offset pagination. Set includeTotal only when an exact filtered count is needed. Requires read:links scope.
links.paginated
- UpdateWrite
Updates an existing link. Requires write:links scope.
links.update
Goals
- Bulk AnalyticsRead-only
Returns conversion analytics for multiple goals. Requires website read permission.
goals.bulkAnalytics
- CreateWrite
Creates a new conversion goal. Requires goals feature and website update permission.
goals.create
- DeleteDestructive
Soft-deletes a goal. Requires website delete permission.
goals.delete
- Get AnalyticsRead-only
Returns conversion analytics for a single goal. Requires website read permission.
goals.getAnalytics
- Get By IdRead-only
Returns a single goal by id; website is resolved from the goal. Requires website read permission.
goals.getById
- ListRead-only
Returns all goals for a website. Requires website read permission.
goals.list
- UpdateWrite
Updates an existing goal. Requires website update permission.
goals.update
Organizations
- Clear Expired InvitationsWrite
Deletes expired and accepted invitations for an organization.
organizations.clearExpiredInvitations
- Get Billing ContextRead-only
Returns billing context for the requested website or active organization, with a free-tier fallback.
organizations.getBillingContext
- Get Email Notification SettingsRead-only
Returns email notification settings for an organization.
organizations.getEmailNotificationSettings
- Get Pending InvitationsRead-only
Returns pending invitations for an organization.
organizations.getPendingInvitations
- Get Plan UsageRead-only
Returns the organization's usage against its plan limits: counted resources and projected monthly uptime checks. Null when billing is off.
organizations.getPlanUsage
- Update Avatar SeedWrite
Updates organization avatar seed. Requires org update permission.
organizations.updateAvatarSeed
- Update Email Notification SettingsWrite
Updates email notification settings for an organization. Requires org update permission.
organizations.updateEmailNotificationSettings
Annotations
- CreateWrite
Creates a new annotation. Requires website update permission.
annotations.create
- DeleteDestructive
Soft-deletes an annotation. Requires website delete permission.
annotations.delete
- Get By IdRead-only
Returns a single annotation added in Databuddy by id. GitHub markers have no saved copy, so their ids are refused with a bad request. Requires website read permission.
annotations.getById
- Github MarkersRead-only
Returns how far a website's GitHub chart markers reach, the production environments its linked repository deploys to, and the website's choice of environments and releases. Requires website read permission.
annotations.githubMarkers
- ListRead-only
Returns a website's annotations on a chart type, newest first, with the successful production deploys and published releases of its linked GitHub repository from the last 365 days, as far back as GitHub could be read (annotations.githubMarkers says how far). from, to and sources narrow the list; limit keeps the newest. GitHub markers are read-only. Requires website read permission.
annotations.list
- UpdateWrite
Updates an annotation. Members can update their own annotations; owners, admins and API keys can update any.
annotations.update
Alarms
- CreateWrite
Creates a new alarm with destinations.
alarms.create
- DeleteDestructive
Deletes an alarm and all its destinations.
alarms.delete
- ListRead-only
Returns alarms for the organization.
alarms.list
- TestDestructive
Sends a test notification to all configured channels.
alarms.test
- UpdateWrite
Updates an existing alarm and its destinations.
alarms.update
Replays
- EventsRead-only
Returns a page of download URLs for a session's recording. With allParts, pages run through the whole recording in playback order, with the session metadata on the first page: pass nextCursor as cursor until it is null. Without it, a page covers one part: select partId from parts and pass nextCursor as cursor within that part; metadataOnly returns status without download URLs. Requires website read permission and replay enabled. API key scope: read:data.
replays.events
- IssuesRead-only
Groups the last week's unanswered clicks in processed recordings by page and element, most widespread first. Requires website read permission and replay enabled for the website. API key scope: read:data.
replays.issues
- ListRead-only
Lists recordings by identified-user email, profile id, current traits, recording start time, and behavior. Requires website read permission (read:data for API keys) and replay enabled. Check hasMore and truncated before treating results as exhaustive.
replays.list
- RecordedRead-only
Returns the given session ids that have a processed recording, so other pages can link to the replay. Empty when session replay is off for the website. Requires website read permission. API key scope: read:data.
replays.recorded
- StatusRead-only
Returns a session recording's parts and how it ended, without download URLs or session metadata, so a viewer can tell when more footage has arrived. Requires website read permission and replay enabled. API key scope: read:data.
replays.status
Visitor Data
- DeleteDestructive
Erases everything stored about one visitor of a website: events, identity, traits, and replays. While earlier deletions are still being applied, answers 429 with Retry-After and records nothing; send the same request again then. Requires visitor data delete permission (delete:visitor_data or manage:websites for API keys).
visitorData.delete
- Delete GroupDestructive
Erases what was recorded for one group of a website, such as a deleted customer organization: page views, custom events, and outgoing link clicks whose group_<type> property is the key, the group's traits, and the account labels and review derived from them. The people in the group are not erased; delete each one's visitor data separately. An event carrying the key is erased whole, including any other group properties it has. While earlier deletions are still being applied, answers 429 with Retry-After and records nothing; send the same request again then. Requires visitor data delete permission (delete:visitor_data or manage:websites for API keys).
visitorData.deleteGroup
- Deletion StatusRead-only
Reports whether a visitor data deletion has finished. Completed means the reapply window closed and nothing the request covers remains. Requires visitor data delete permission (delete:visitor_data or manage:websites for API keys).
visitorData.deletionStatus
- ExportRead-only
Exports everything stored about one visitor of a website, for an access or portability request. Requires website delete permission. API key scope: manage:websites.
visitorData.export
- Group Deletion StatusRead-only
Reports whether a group data deletion has finished. Completed means the reapply window closed and nothing the request covers remains. Requires visitor data delete permission (delete:visitor_data or manage:websites for API keys).
visitorData.groupDeletionStatus
Analytics
- CompileRead-only
Validate and compile one analytics query without running it, returning the SQL it would run. API key scope: read:data.
analytics.compile
- List Query TypesRead-only
List the analytics query types (summary_metrics, top_pages, …), their allowed filters and the date presets.
analytics.listQueryTypes
- List WebsitesRead-only
List the websites this API key can query, with their IDs for analytics.query. API key scope: read:data.
analytics.listWebsites
- QueryRead-only
Run one analytics report, or a batch of up to 25, for a website, link, uptime monitor or organization, with a date range or preset, filters, granularity, sorting and page/limit pagination. Check each parameter’s success field: one can fail while the others succeed. API key scope: read:data.
analytics.query
Link Folders
- CreateWrite
Creates a folder used to organize short links. Requires write:links scope.
linkFolders.create
- DeleteDestructive
Deletes a link folder and moves contained links to Unfiled. Requires write:links scope.
linkFolders.delete
- ListRead-only
Returns folders used to organize short links inside an organization. Requires read:links scope.
linkFolders.list
- UpdateWrite
Updates a link folder. Requires write:links scope.
linkFolders.update
Target Groups
- CreateWrite
Creates a new target group. Requires feature flag update permission.
targetGroups.create
- DeleteDestructive
Soft-deletes a target group. Requires feature flag delete permission.
targetGroups.delete
- ListRead-only
Returns all target groups for a website. Requires feature flag read permission.
targetGroups.list
- UpdateWrite
Updates an existing target group. Requires feature flag update permission.
targetGroups.update
Api Keys
- Revoke SelfDestructive
Permanently revokes the API key sending the request, so an agent can discard a key it no longer needs or suspects has leaked. Any valid key can call this, whatever its scopes. This cannot be undone. The key that sends the request stops working at once, for every caller.
apiKeys.revokeSelf
- SelfRead-only
Returns the API key sending the request: its name, organization, scopes, website access, expiry and rate limit. Never returns the secret. Any valid key can call this, whatever its scopes.
apiKeys.self
- VerifyRead-only
Validates an API key (from header or body) and optionally checks scopes. Can be used without auth to test a key. Through this plugin the call still needs a configured key; pass the key to check as secret.
apiKeys.verify
Events
- GroupWrite
Set traits on an account such as a company or workspace (Basket /group). API key scope: track:events.
events.group
- IdentifyWrite
Link a visitor to your own user ID and set the profile’s traits (Basket /identify). API key scope: track:events.
events.identify
- TrackWrite
Record custom events through the Basket API (basket.databuddy.cc/track), one or many in one request. Events that fail validation come back in rejected; the others are stored. API key scope: track:events.
events.track
Sql
- QueryRead-only
Runs one read-only ClickHouse SELECT or WITH query over the selected websites. Pass websiteId or websiteIds. All sites must belong to one organization and the caller needs read permission for each (read:data for API keys). Returns up to limit rows (default 10000, at most 50000); truncated is true when the query had more. Queries stop after 20 seconds, 5 GB read, or a 10 MB result. GET /sql/schema lists the tables and columns.
sql.query
- SchemaRead-only
Lists the analytics tables and columns POST /sql/query can read, with column types and the counting rules for each table.
sql.schema
Tracker
- Get Current VersionsRead-only
Returns the current tracker script versions with SRI hashes.
tracker.getCurrentVersions
- List VersionsRead-only
Returns all tracker script versions.
tracker.listVersions
Autocomplete
- GetRead-only
Returns autocomplete suggestions for analytics filters.
autocomplete.get
Connect Databuddy to Claude, ChatGPT or Cursor
- 1
Connect Databuddy in Corsair
Add your Databuddy API key once in Corsair. Corsair stores the credential encrypted and makes the Databuddy API calls for your agent, so it never goes into a prompt or a config file. Connect Databuddy
If your link lets the agent add apps, you can skip this: it gives you a sign-in link the first time it needs Databuddy. On a ChatGPT personal plan, connect Databuddy here first.
- 2
Add Corsair's MCP server to your agent
Every client uses the same address:
https://mcp.corsair.dev/mcpOpen Plugins → Add → Add custom connector, name it Corsair, paste the address, select Continue, then Add.Add a custom MCP server with the address and choose OAuth. Personal plans get read tools only.Add to CursorOr add this to~/.cursor/mcp.json. Cursor opens Corsair to sign in the first time it connects.{ "mcpServers": { "corsair": { "url": "https://mcp.corsair.dev/mcp" } } }Run this, then run/mcpin Claude Code to sign in.claude mcp add --transport http corsair https://mcp.corsair.dev/mcpCodex, Gemini CLI, VS Code, Zed and other clients with OAuth sign-in work the same way. Clients without it, such as GitHub Copilot's coding agent, use a link's own address and an API key. Setup for every client
- 3
Sign in and choose what needs your approval
Your client opens Corsair to sign in. Pick a link: the apps your agent can use and a mode that decides what it may do without asking. In the default Cautious mode, Databuddy's read and write operations run right away and its 23 destructive operations wait for your approval. Strict mode asks before every write and refuses destructive operations, and Read mode allows reads only.
FAQ
Install corsair and @corsair-dev/databuddy, add the Databuddy plugin, and connect with an API key. Then call methods like corsair.databuddy.api.alarms.create() from your app. Corsair keeps each tenant isolated.
Yes. Databuddy requires an API key from your Databuddy account or developer dashboard. Create credentials with access that matches what you automate, then paste them into Corsair or connect through managed auth in Hub.
Yes. One Corsair client can hit Databuddy, GitHub, Notion, Stripe, and the rest. Trigger Databuddy from a webhook, push updates to Slack, or chain actions across plugins. Same tenant context across integrations, plain TypeScript.
Teams use Corsair for cookieless product analytics on Databuddy: analytics reports and read-only SQL, custom events and identities, session replays, websites, feature flags and target groups, funnels, goals, annotations, short links, uptime monitors, alarms, status pages and incidents, and visitor-data export and deletion (133 operations). Common builds include sync jobs, admin tooling, and agents that call Databuddy APIs from your backend.
The SDK is open source. Self-host and you pay Corsair nothing for the integration layer. Hub bills for hosted auth and execution, not per Databuddy API call. Hub has a generous free tier. For hobby projects you can probably run the whole thing on free. Paid plans start to matter with more tenants or heavier traffic.
We maintain @corsair-dev/databuddy in the open repo. When Databuddy ships API changes, upgrade the package. Your call sites stay typed. You should not need to rewrite the integration layer each time.
No. Corsair does not read your Databuddy data or hold individual access credentials. Credentials stay in your database. API calls run on your instance. We do not store Databuddy data on your behalf.
Yes. Add https://mcp.corsair.dev/mcp as a custom connector or MCP server in Claude, ChatGPT, Cursor, VS Code, Claude Code, Codex or any client that supports remote MCP servers with OAuth sign-in, then sign in to Corsair. On ChatGPT personal plans, custom servers currently get read tools only.
Yes. Put Databuddy on a link in Strict mode and every write waits for your approval, while destructive actions are refused. The default Cautious mode asks only before the 23 destructive Databuddy operations. You can change a link's mode at hub.corsair.dev/me.