Live survey315 models · 14 providers · 23,592 auditsAudited implement · SAFE →What changedHow we verifyllms.txt

MCP server · Org-owned · Audited from source

PostHog MCP server

by posthog/mcpMIT licenceAudited 7 Oct 2026 · source 1aeb7559b341

npm @posthog/agent-toolkit 0.2.2streamable-http★ 151
✕BLOCKGrade D · 69/100 · 7 Oct 2026 · 1aeb755

Is it safe? No — BLOCK, grade D (69/100). It exposes 3 tools: 3 read, 0 write and 0 destructive. The audit recorded 13 findings (0 critical, 2 high, 0 medium, 11 low). Maintainer's description: Official PostHog MCP Server 🦔

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
Cite

Cite this page

ModelsAtlas. “PostHog MCP server (posthog/mcp)”. Retrieved 7 Oct 2026. https://modelsatlas.com/mcp/posthog/posthog-1

Why this is BLOCK. The audit found 0 critical and 2 high findings; the most severe is Code injection at typescript/worker-configuration.d.ts:2222. Each finding is listed below with its file and line.

Why this page is still public. People search for this server by name. Hiding it would leave them with the README's word alone; here they see what the code does. We list it so you can decide, and we do not show connect commands for BLOCK servers.

Trust audit

Audit 0.4.1 · full source read 7 Oct 2026

Trust score69/100✕BLOCK D
0 critical2 high0 medium11 low0 info

13 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.

What the source does

  • FilesystemDeclared2 observations
  • NetworkDeclared5 observations
  • ShellDeclared3 observations
  • DependenciesNot pinnedSome ranges float
  • SecretsNone foundNo keys in source

Findings (13)

Sorted by severity

HIGHCode injectioncode.eval_exec · typescript/worker-configuration.d.ts:2222
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
exec(input?: (string | URLPatternInit), baseURL?: string): URLPatternResult | null;
Why
evaluates text as code
Fix
remove; use a parser or a dispatch table
HIGHCode injectioncode.eval_exec · typescript/worker-configuration.d.ts:4657
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
exec(query: string): Promise<D1ExecResult>;
Why
evaluates text as code
Fix
remove; use a parser or a dispatch table
LOWInventory / provenanceinv.hidden_file · .release-please-config.json
F-13 Inventory / provenanceCWE-1104Layer L0
.release-please-config.json
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWInventory / provenanceinv.hidden_file · .release-please-manifest.json
F-13 Inventory / provenanceCWE-1104Layer L0
.release-please-manifest.json
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWInventory / provenanceinv.hidden_file · typescript/.env.test.example
F-13 Inventory / provenanceCWE-1104Layer L0
.env.test.example
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWFilesystem / pathfs.traversal · typescript/scripts/generate-tool-schema.ts:10
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
const outputPath = path.join(__dirname, "../../schema/tool-inputs.json");
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · typescript/src/tools/toolDefinitions.ts:2
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
import toolDefinitionsJson from "../../../schema/tool-definitions.json";
Why
No further detail recorded for this rule.
Fix
—
LOWObfuscation / stealthobf.decode_call · typescript/worker-configuration.d.ts:207
F-07 Obfuscation / stealthCWE-506 · CWE-94Layer L1
atob(data: string): string;
Why
No further detail recorded for this rule.
Fix
—
LOWObfuscation / stealthobf.decode_call · typescript/worker-configuration.d.ts:293
F-07 Obfuscation / stealthCWE-506 · CWE-94Layer L1
declare function atob(data: string): string;
Why
No further detail recorded for this rule.
Fix
—
LOWSupply chainsupply.unpinned · examples/ai-sdk/package.json
F-08 Supply chainCWE-829 · CWE-1357Layer L1
@ai-sdk/openai, @posthog/agent-toolkit, ai, dotenv, zod, @types/node, tsx, typescript
Why
8 dependency range(s) float
Fix
pin exact versions or ship a lockfile
LOWSupply chainsupply.unpinned · examples/langchain-js/package.json
F-08 Supply chainCWE-829 · CWE-1357Layer L1
@langchain/core, @langchain/openai, @posthog/agent-toolkit, dotenv, langchain, zod, @types/node, tsx
Why
9 dependency range(s) float
Fix
pin exact versions or ship a lockfile
LOWSupply chainsupply.unpinned · package.json
F-08 Supply chainCWE-829 · CWE-1357Layer L1
husky, tsx
Why
2 dependency range(s) float
Fix
pin exact versions or ship a lockfile
LOWSupply chainsupply.unpinned · typescript/package.json
F-08 Supply chainCWE-829 · CWE-1357Layer L1
@modelcontextprotocol/sdk, agents, ai, posthog-node, uuid, zod, @langchain/core, @langchain/openai
Why
21 dependency range(s) float
Fix
pin exact versions or ship a lockfile

Tools it exposes

3 declared in source · 0 destructive

3 read0 write0 destructive
ToolWhat it doesRisk
button_clickButton click rateread
engagementUser engagement ratioread
purchaseAverage revenueread

Audit history

  1. ✕BLOCK D 69 / 100

    First audit · 1aeb7559b341

README badge

Badges show the current verdict, BLOCK included

ModelsAtlas: BLOCK DMODELSATLASBLOCK · D

A badge cannot be hidden by the maintainer while the verdict is BLOCK. Fix the findings, push, and the re-audit updates it.

Questions about PostHog MCP server

What is the PostHog MCP server?
Official PostHog MCP Server 🦔
What tools does PostHog expose?
3 in total: 3 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is PostHog safe to connect to an agent?
No — not without reading the findings first. The audit graded it D (69/100) and found 2 critical or high issues in the source. Each one is listed on this page with the file and line it is on.
What credentials does PostHog need?
It reads OPENAI_API_KEY, POSTHOG_PERSONAL_API_KEY and TEST_POSTHOG_PERSONAL_API_KEY from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does PostHog run?
It speaks streamable-http, so it runs as a service you connect to over the network. It is published on npm as @posthog/agent-toolkit at 0.2.2.
How current is this page?
The grade is for one exact copy of the source (1aeb7559b341), read on 2026-10-07. The repository is watched and re-audited when it changes.
I already installed PostHog. What should I do?
Remove it from your client's MCP configuration, then rotate any API keys and tokens that were in your environment while it ran.
Can the verdict change?
Yes. The repository is watched and re-audited when its source changes. If the findings are removed the verdict updates, and the history on this page shows it.

Sources

  • posthog/mcp on GitHub — the source we read, its licence, stars and activityObserved · 7 Oct 2026
  • ModelsAtlas trust audit — BLOCK verdict for commit 1aeb7559b341Observed · 7 Oct 2026

Spotted something wrong? Report a correction · Methodology

Keep going in your AI

Opens with this page as the source. We add nothing else to the prompt.