Hog
MCP server by PostHog Verified · npm:hog
Hog is PostHog's MCP server, which lets AI assistants query and act on product analytics, errors, replays and other PostHog data. It is for product teams and developers who want coding agents to diagnose problems and ship fixes.
Install Hog
Built from the published package, never by AI.
claude mcp add hog -- npx -y hogRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"hog": {
"args": [
"-y",
"hog"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"hog": {
"args": [
"-y",
"hog"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"hog": {
"args": [
"-y",
"hog"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add hog -- npx -y hog{
"mcpServers": {
"hog": {
"args": [
"-y",
"hog"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add hog npx -y hogGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the hog block.
About
PostHog ingests and stores analytics, errors, session replays, logs and business data. The remote MCP server at https://mcp.posthog.com/mcp gives agents access to that data so they can query it and act on it. When a user logs in, the server routes to the correct data region, US or EU.
The source says the server can be installed into Claude Code, Cursor, Codex, VS Code, Zed or PostHog Desktop with the command npx @posthog/wizard mcp add. The docs also mention MCP analytics, which shows how agents use an MCP server. It is aimed at product teams and developers who want coding agents to use product context when they investigate issues and make changes.
Written from the project's README and checked against it.
What you need
- A PostHog account, such as PostHog Cloud US or PostHog Cloud EU
- A supported MCP client such as Claude Code, Cursor, Codex, VS Code, Zed or PostHog Desktop
- Ubuntu with Docker and 8GB or more of memory, only for the self-hosted option
Try asking
- Which errors spiked in PostHog error tracking this week?
- Summarize product analytics events for signups over the last month
- Find session replays where users hit a checkout error
Good to know
- Open source self-hosted deployments should scale to about 100k events per month.
- PostHog does not provide customer support or guarantees for open source deployments.
Security check
B- Runs a script automatically when the package is installedIn
package.json:"postinstall":
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
What you can do with it
- Query product analytics from an AI assistant
- Diagnose errors using product context
- Review how agents use an MCP server
Alternatives to Hog
All alternatives →World Monitor is a real-time global intelligence dashboard covering conflict, markets, energy, trade, shipping and cyber. Its MCP server gives AI assistants access to that data, and it is aimed at analysts, agents and scripts.
Lets AI agents create and change Power BI semantic models through a local MCP server. Built for developers who want natural language modeling in Power BI Desktop, Fabric workspaces and PBIP files.
Seal Open Data serves French public datasets from data.gouv.fr to AI assistants. It covers topics such as territories, companies, housing and population. It is aimed at users who want to query French open data from clients like Claude.
OpenMetadata MCP server lets MCP-compatible assistants search metadata, inspect lineage, and manage data quality tests. It is for data teams and AI agents that need governed context about enterprise data.
Compiles, validates and renders semantic chart specs for AI assistants through the Model Context Protocol. It is for agents that need reliable, good-looking and interactive charts across several chart libraries.
Query PostHog analytics, manage feature flags and experiments, and investigate errors from your AI assistant. It suits product teams and developers who already use PostHog for analytics, replays, and error tracking.
Compare with World Monitor, Power BI Authoring MCP Server (Local) or Seal Open Data
Hog: common questions
Which AI clients can connect to the PostHog MCP server?
The source lists Claude Code, Cursor, Codex, VS Code, Zed and PostHog Desktop as clients that the server can be installed into.
Is PostHog free to use?
The source says each product has a monthly free tier and no card is required to start. It also says 97% of users pay $0.
How does the server handle data regions?
The remote MCP server routes to the correct data region, US or EU, when the user logs in.
How do I install Hog?
In Claude Code run claude mcp add hog -- npx -y hog. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Hog the official server?
Hog is published by npm:hog from its verified domain in the official MCP Registry.
Is Hog free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Hog safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (runs a script automatically when the package is installed). Review the code before you install. How grades work.
What are alternatives to Hog?
Similar MCP servers: World Monitor, Power BI Authoring MCP Server (Local), Seal Open Data, OpenMetadata.
Does Hog work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
