PostHog MCP 与 API 接入

团队应用鉴权:api_key

团队 PostHog 产品分析:洞察分析、事件 SQL 查询、用户档案、功能开关、实验、问卷、录屏与错误追踪。

本地 PostHog MCP 配置

每台设备存放明文密钥

  • 原始 PostHog Token 被复制到本地配置文件
  • 每位成员在每台电脑都需要重复安装配置
  • 每次对话都要注入数十个工具 Schema 占满上下文
通过 Duang 金库接入 PostHog

一次连接,随时一键吊销

  • 每团队独立信封加密保存凭证
  • 本地磁盘与大模型提示词中零明文密钥
  • 全团队共享同一个远程 MCP 端点
发给 Agent 对话直接发给 Claude Code、OpenClaw、OpenCode、Grok Bot、Antigravity、Hermes 或 Pi

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

全部操作(540)

操作价格
GET us.posthog.com/api/projects/{project_id}/actions/

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

自备 Key
POST us.posthog.com/api/projects/{project_id}/actions/

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

自备 Key
GET us.posthog.com/api/projects/{project_id}/actions/{id}/

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

自备 Key
PUT us.posthog.com/api/projects/{project_id}/actions/{id}/

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

自备 Key
PATCH us.posthog.com/api/projects/{project_id}/actions/{id}/

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

自备 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

自备 Key
GET us.posthog.com/api/projects/{project_id}/actions/{id}/references/

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

自备 Key
POST us.posthog.com/api/projects/{project_id}/actions/bulk_update_tags/

Bulk update tags on multiple objects.

自备 Key
GET us.posthog.com/api/projects/{project_id}/alerts/

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

自备 Key
POST us.posthog.com/api/projects/{project_id}/alerts/

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

自备 Key
GET us.posthog.com/api/projects/{project_id}/alerts/{id}/

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

自备 Key
PUT us.posthog.com/api/projects/{project_id}/alerts/{id}/

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

自备 Key
PATCH us.posthog.com/api/projects/{project_id}/alerts/{id}/

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

自备 Key
DELETE us.posthog.com/api/projects/{project_id}/alerts/{id}/

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

自备 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…

自备 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…

自备 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.

自备 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…

自备 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.

自备 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…

自备 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.

自备 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.

自备 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…

自备 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.

自备 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.

自备 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.

自备 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.

自备 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.

自备 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

自备 Key
GET us.posthog.com/api/projects/{project_id}/announcements/

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

自备 Key
POST us.posthog.com/api/projects/{project_id}/announcements/

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

自备 Key
GET us.posthog.com/api/projects/{project_id}/announcements/{short_id}/

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

自备 Key
GET us.posthog.com/api/projects/{project_id}/announcements/channels/

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

自备 Key
GET us.posthog.com/api/projects/{project_id}/cohorts/

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

自备 Key
POST us.posthog.com/api/projects/{project_id}/cohorts/

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

自备 Key
GET us.posthog.com/api/projects/{project_id}/cohorts/{id}/

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

自备 Key
PUT us.posthog.com/api/projects/{project_id}/cohorts/{id}/

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

自备 Key
PATCH us.posthog.com/api/projects/{project_id}/cohorts/{id}/

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

自备 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

自备 Key
GET us.posthog.com/api/projects/{project_id}/cohorts/{id}/activity/

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

自备 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/

自备 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.

自备 Key
GET us.posthog.com/api/projects/{project_id}/cohorts/{id}/calculation_history/

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

自备 Key
GET us.posthog.com/api/projects/{project_id}/cohorts/{id}/persons/

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

自备 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/

自备 Key
GET us.posthog.com/api/projects/{project_id}/cohorts/{id}/used_in/

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

自备 Key
GET us.posthog.com/api/projects/{project_id}/cohorts/activity/

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

自备 Key
GET us.posthog.com/api/projects/{project_id}/comments/

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

自备 Key
POST us.posthog.com/api/projects/{project_id}/comments/

Create a comment.

自备 Key
GET us.posthog.com/api/projects/{project_id}/comments/{id}/

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

自备 Key
PUT us.posthog.com/api/projects/{project_id}/comments/{id}/

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

自备 Key
PATCH us.posthog.com/api/projects/{project_id}/comments/{id}/

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

自备 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

自备 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.

自备 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.

自备 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…

自备 Key
GET us.posthog.com/api/projects/{project_id}/comments/{id}/thread/

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

自备 Key
GET us.posthog.com/api/projects/{project_id}/comments/count/

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

自备 Key
GET us.posthog.com/api/projects/{project_id}/dashboard_templates/

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

自备 Key
POST us.posthog.com/api/projects/{project_id}/dashboard_templates/

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

自备 Key
已展示 60 / 540 个操作,在上方输入关键词可检索全部。

常见问题

如何在 Claude Code 或 Cursor 中接入 PostHog?

通过 Duang 远程 MCP 网关(https://api.duang.ai/mcp)一键连接,即可让 AI Agent 调用 PostHog 全部 540 个操作,无需本地维护 MCP 插件或明文密钥。

通过 Duang 接入 PostHog 需要额外付费吗?

团队应用接入永久 $0 平台费。凭证加密封存于团队金库,永不进入模型上下文。

我的 PostHog 密钥会暴露给大模型吗?

不会。密钥仅在 Duang 服务端出站请求时解密注入,本地配置文件与大模型上下文中均不包含明文密钥。

相关团队应用