PostHog MCP Server
OfficialServidor MCP de PostHog 📊
Un servidor de Protocolo de Contexto de Modelo (MCP) para interactuar con PostHog. ¡Crea anotaciones y gestiona proyectos directamente desde Claude Desktop!
Características 🚀
Lista de proyectos : vea todos los proyectos PostHog disponibles en su organización
Crear anotaciones : agregue anotaciones a sus proyectos PostHog con marcas de tiempo opcionales [esta lista puede ser mucho más larga, básicamente cualquier cosa que nuestra API tenga...]
Related MCP server: Warpcast MCP Server
Configuración 🛠️
Prerrequisitos
Python 3.10 o superior
administrador de paquetes
uvClave API de PostHog con
annotation:writeyproject:readobtenidos de la configuración de su proyecto
Instalación
# clone the repo git clone git@github.com:PostHog/posthog-mcp.git # or if https, use: git clone https://github.com/PostHog/posthog-mcp.git cd posthog-mcp uv venv source .venv/bin/activate # Install dependencies uv pip install .Configuración
Cree un archivo
.enven la raíz del proyecto:PERSONAL_API_KEY=phx_your_posthog_api_key_here
Configuración del escritorio de Claude
Instalar Claude Desktop
Abra la configuración de Claude Desktop y haga clic en "Editar configuración". También puede abrir el archivo desde:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonVentanas:
%APPDATA%\Claude\claude_desktop_config.json
Agregue esto a su
claude_desktop_config.json(ajuste las rutas según su sistema):{ "mcpServers": { "posthog": { "command": "/path/to/uv", # Get this by running: which uv "args": [ "--directory", "/path/to/your/posthog-mcp", # Full path to this project "run", "posthog_mcp" ] } } }Consulte la documentación más reciente sobre la configuración de Claude Desktop como cliente MCP si encuentra algún problema.
Uso 💡
Tras la configuración, verás un icono de martillo 🔨 en Claude Desktop. Los siguientes comandos están disponibles:
Lista de proyectos
Pregúntale a Claude:
"List my PostHog projects"Obtenga y busque información
Pregúntale a Claude:
"Enumerar mis estadísticas de PostHog" o "Buscar estadísticas de ingresos en mi PostHog"
Búsqueda de documentación en línea
Puedes preguntar:
"¿Cómo puedo hacer un proxy inverso en nextjs en posthog?"
Crear anotación
Usando el ID del proyecto que obtienes de la lista de proyectos, pregúntale a Claude:
"Create a PostHog annotation in project 53497 saying 'Deployed v1.2.3'"
o con una fecha específica:
"Create a PostHog annotation in project 53497 for March 20th saying 'Started new marketing campaign'"Solución de problemas 🔍
Si el icono del martillo no aparece, reinicie Claude Desktop
Consulte los registros en
~/Library/Logs/Claude/mcp*.log(macOS) o%APPDATA%\Claude\logs(Windows)Verifique que su clave API de PostHog tenga los permisos correctos
Asegúrese de que todas las rutas en
claude_desktop_config.jsonsean rutas absolutas
Contribuyendo 🤝
¡No dudes en publicar problemas y solicitudes de colaboración! Seguimos las normas de contribución de PostHog.
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server for Claude Desktop that provides structured memory management across chat sessions, allowing Claude to maintain context and build a knowledge base within project directories.166MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that allows Claude to interact with Warpcast accounts, enabling actions like posting casts, reading content, searching by keywords, and managing channel interactions through natural language.3MIT
- AlicenseAqualityDmaintenanceA collection of Model Context Protocol servers that enable Claude Desktop to provide development assistance capabilities with filesystem, Git, shell command, and web search functionality without incurring API usage costs.219MIT
- AlicenseAqualityDmaintenanceA Model Context Protocol server that allows Claude Desktop to manage and execute tasks in a queue-based system, supporting planning, execution, and completion phases.101549MIT
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/PostHog/posthog-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server