PostHog MCP Server with Zero-Key Team Vault

Team appAuth: api_key

Connect your team's PostHog account once in Duang's encrypted vault and give Claude Code, Cursor, Codex, or any MCP/CLI agent access to 540 operations without exposing API keys or OAuth tokens to models.

Local PostHog MCP setup

Plaintext keys on every machine

  • Raw PostHog tokens copied into local configs
  • Re-install and configure on every laptop
  • Dozens of tool schemas loaded in every prompt
PostHog via Duang Vault

Connect once, revoke in one click

  • Per-team envelope encryption in one vault
  • Zero raw keys on disk or in LLM prompts
  • One remote MCP URL shared across your team
Chat promptPaste into Claude Code, OpenClaw, OpenCode, Grok Bot, Antigravity, Hermes, or Pi

set up https://duang.ai/SKILL.md

Operations (540)

OperationPrice
GET us.posthog.com/api/projects/{project_id}/actions/

GET /api/projects/{project_id}/actions/

Own key
POST us.posthog.com/api/projects/{project_id}/actions/

POST /api/projects/{project_id}/actions/

Own key
GET us.posthog.com/api/projects/{project_id}/actions/{id}/

GET /api/projects/{project_id}/actions/{id}/

Own key
PUT us.posthog.com/api/projects/{project_id}/actions/{id}/

PUT /api/projects/{project_id}/actions/{id}/

Own key
PATCH us.posthog.com/api/projects/{project_id}/actions/{id}/

PATCH /api/projects/{project_id}/actions/{id}/

Own key
DELETE us.posthog.com/api/projects/{project_id}/actions/{id}/

Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true

Own key
GET us.posthog.com/api/projects/{project_id}/actions/{id}/references/

GET /api/projects/{project_id}/actions/{id}/references/

Own key
POST us.posthog.com/api/projects/{project_id}/actions/bulk_update_tags/

Bulk update tags on multiple objects.

Own key
GET us.posthog.com/api/projects/{project_id}/alerts/

GET /api/projects/{project_id}/alerts/

Own key
POST us.posthog.com/api/projects/{project_id}/alerts/

POST /api/projects/{project_id}/alerts/

Own key
GET us.posthog.com/api/projects/{project_id}/alerts/{id}/

GET /api/projects/{project_id}/alerts/{id}/

Own key
PUT us.posthog.com/api/projects/{project_id}/alerts/{id}/

PUT /api/projects/{project_id}/alerts/{id}/

Own key
PATCH us.posthog.com/api/projects/{project_id}/alerts/{id}/

PATCH /api/projects/{project_id}/alerts/{id}/

Own key
DELETE us.posthog.com/api/projects/{project_id}/alerts/{id}/

DELETE /api/projects/{project_id}/alerts/{id}/

Own key
GET us.posthog.com/api/projects/{project_id}/alerts/{id}/destinations/

This alert's notification destinations, one entry per destination, with credential-bearing URL components removed. Subscribers are listed o…

Own key
POST us.posthog.com/api/projects/{project_id}/alerts/{id}/destinations/

Send this alert to a Slack channel as well as by email. The workspace must already be connected to the project. The returned IDs identify t…

Own key
POST us.posthog.com/api/projects/{project_id}/alerts/{id}/destinations/delete/

Stop sending this alert to a destination. The alert keeps its email recipients.

Own key
POST us.posthog.com/api/projects/{project_id}/alerts/{id}/destinations/pagerduty/

Open a PagerDuty incident when this alert starts firing, and resolve it when the alert stops. Only an alert whose pagerduty_available is tr…

Own key
POST us.posthog.com/api/projects/{project_id}/alerts/{id}/destinations/webhook/

Send this alert's firings to a Discord or Microsoft Teams channel, or to any webhook. The returned IDs identify the destination.

Own key
POST us.posthog.com/api/projects/{project_id}/alerts/{id}/take_ownership/

Make the requesting user the owner of this alert and enable it. Checks run with the owner's access, so this is how an alert continues after…

Own key
POST us.posthog.com/api/projects/{project_id}/alerts/{id}/test-delivery/

Send a synthetic test notification to subscribed users and every active destination on this alert.

Own key
GET us.posthog.com/api/projects/{project_id}/alerts/pagerduty_availability/

Whether a new alert with these settings could open PagerDuty incidents once it is created.

Own key
POST us.posthog.com/api/projects/{project_id}/alerts/simulate/

Simulate a detector on an insight's historical data. No AlertCheck records are created. The AI detector makes a real model call, so that mo…

Own key
GET us.posthog.com/api/projects/{project_id}/annotations/

Create, Read, Update and Delete annotations. [See docs](https://posthog.com/docs/data/annotations) for more information on annotations.

Own key
POST us.posthog.com/api/projects/{project_id}/annotations/

Create, Read, Update and Delete annotations. [See docs](https://posthog.com/docs/data/annotations) for more information on annotations.

Own key
GET us.posthog.com/api/projects/{project_id}/annotations/{id}/

Create, Read, Update and Delete annotations. [See docs](https://posthog.com/docs/data/annotations) for more information on annotations.

Own key
PUT us.posthog.com/api/projects/{project_id}/annotations/{id}/

Create, Read, Update and Delete annotations. [See docs](https://posthog.com/docs/data/annotations) for more information on annotations.

Own key
PATCH us.posthog.com/api/projects/{project_id}/annotations/{id}/

Create, Read, Update and Delete annotations. [See docs](https://posthog.com/docs/data/annotations) for more information on annotations.

Own key
DELETE us.posthog.com/api/projects/{project_id}/annotations/{id}/

Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true

Own key
GET us.posthog.com/api/projects/{project_id}/announcements/

GET /api/projects/{project_id}/announcements/

Own key
POST us.posthog.com/api/projects/{project_id}/announcements/

POST /api/projects/{project_id}/announcements/

Own key
GET us.posthog.com/api/projects/{project_id}/announcements/{short_id}/

GET /api/projects/{project_id}/announcements/{short_id}/

Own key
GET us.posthog.com/api/projects/{project_id}/announcements/channels/

Slack channels the SupportHog bot can post to, labeled by customer account name.

Own key
GET us.posthog.com/api/projects/{project_id}/cohorts/

GET /api/projects/{project_id}/cohorts/

Own key
POST us.posthog.com/api/projects/{project_id}/cohorts/

POST /api/projects/{project_id}/cohorts/

Own key
GET us.posthog.com/api/projects/{project_id}/cohorts/{id}/

GET /api/projects/{project_id}/cohorts/{id}/

Own key
PUT us.posthog.com/api/projects/{project_id}/cohorts/{id}/

PUT /api/projects/{project_id}/cohorts/{id}/

Own key
PATCH us.posthog.com/api/projects/{project_id}/cohorts/{id}/

PATCH /api/projects/{project_id}/cohorts/{id}/

Own key
DELETE us.posthog.com/api/projects/{project_id}/cohorts/{id}/

Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true

Own key
GET us.posthog.com/api/projects/{project_id}/cohorts/{id}/activity/

GET /api/projects/{project_id}/cohorts/{id}/activity/

Own key
PATCH us.posthog.com/api/projects/{project_id}/cohorts/{id}/add_persons_to_static_cohort/

PATCH /api/projects/{project_id}/cohorts/{id}/add_persons_to_static_cohort/

Own key
GET us.posthog.com/api/projects/{project_id}/cohorts/{id}/blocking_workflows/

Active workflows that block deleting this cohort or editing it so it stops updating in real time.

Own key
GET us.posthog.com/api/projects/{project_id}/cohorts/{id}/calculation_history/

GET /api/projects/{project_id}/cohorts/{id}/calculation_history/

Own key
GET us.posthog.com/api/projects/{project_id}/cohorts/{id}/persons/

GET /api/projects/{project_id}/cohorts/{id}/persons/

Own key
PATCH us.posthog.com/api/projects/{project_id}/cohorts/{id}/remove_person_from_static_cohort/

PATCH /api/projects/{project_id}/cohorts/{id}/remove_person_from_static_cohort/

Own key
GET us.posthog.com/api/projects/{project_id}/cohorts/{id}/used_in/

GET /api/projects/{project_id}/cohorts/{id}/used_in/

Own key
GET us.posthog.com/api/projects/{project_id}/cohorts/activity/

GET /api/projects/{project_id}/cohorts/activity/

Own key
GET us.posthog.com/api/projects/{project_id}/comments/

GET /api/projects/{project_id}/comments/

Own key
POST us.posthog.com/api/projects/{project_id}/comments/

Create a comment.

Own key
GET us.posthog.com/api/projects/{project_id}/comments/{id}/

GET /api/projects/{project_id}/comments/{id}/

Own key
PUT us.posthog.com/api/projects/{project_id}/comments/{id}/

PUT /api/projects/{project_id}/comments/{id}/

Own key
PATCH us.posthog.com/api/projects/{project_id}/comments/{id}/

PATCH /api/projects/{project_id}/comments/{id}/

Own key
DELETE us.posthog.com/api/projects/{project_id}/comments/{id}/

Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true

Own key
POST us.posthog.com/api/projects/{project_id}/comments/{id}/complete/

Mark a task-comment as complete. Sets completed_at and completed_by. 400 if the comment is not a task or is already complete.

Own key
POST us.posthog.com/api/projects/{project_id}/comments/{id}/reopen/

Reopen a completed task-comment. Clears completed_at and completed_by. 400 if the comment is not a task or is already open.

Own key
POST us.posthog.com/api/projects/{project_id}/comments/{id}/send_to_slack/

Mirror this discussion thread to a Slack channel. Posts the comment (and its existing replies) as a new Slack thread; later replies on eith…

Own key
GET us.posthog.com/api/projects/{project_id}/comments/{id}/thread/

GET /api/projects/{project_id}/comments/{id}/thread/

Own key
GET us.posthog.com/api/projects/{project_id}/comments/count/

GET /api/projects/{project_id}/comments/count/

Own key
GET us.posthog.com/api/projects/{project_id}/dashboard_templates/

GET /api/projects/{project_id}/dashboard_templates/

Own key
POST us.posthog.com/api/projects/{project_id}/dashboard_templates/

POST /api/projects/{project_id}/dashboard_templates/

Own key
Showing 60 of 540 operations — type above to search all.

Frequently asked questions

Does connecting PostHog to Duang cost anything?

No. Connecting your team's own PostHog account is free on Duang. Credentials are stored with per-team envelope encryption and never sent to AI models.

Why use Duang instead of a local PostHog MCP server?

A local MCP server requires storing plaintext tokens on every developer laptop and adds dozens of tool definitions to every prompt. Duang serves all 540 PostHog operations through one remote MCP endpoint with only 4 meta-tools and one-click token revocation.

What happens if my PostHog token or OAuth connection expires?

Duang pauses the call and returns a reconnect link for a human teammate. It never falls back to another account or charges your wallet.

Related team apps