PostHog MCP by usefulapi for LangChain
io.usefulapi/posthog
Read insights, dashboards, events, feature flags and error issues in PostHog.
client:LangChain
transport:streamable-http
tools:19
Install PostHog MCP by usefulapi in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"posthog": {
"transport": "streamable_http",
"url": "https://posthog.usefulapi.io/mcp",
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs
What LangChain can do once it is connected
- posthog_list_organizations
- posthog_list_projects
- posthog_list_insights
- posthog_get_insight
- posthog_list_dashboards
- posthog_get_dashboard
- posthog_list_events
- posthog_list_event_definitions
- posthog_list_persons
- posthog_get_person
- posthog_list_actions
- posthog_list_cohorts
- posthog_list_feature_flags
- posthog_get_feature_flag
- posthog_list_experiments
- posthog_list_surveys
- posthog_list_error_tracking_issues
- posthog_list_session_recordings
- posthog_list_annotations