Custom analytics APIs for data collection and visualization.
## Keen IO MCP Server: Event Analytics Platform The **Keen IO MCP Server** integrates Keen's powerful event analytics infrastructure into Google Antigravity, enabling developers to collect, analyze, and visualize event data at scale through AI-assisted workflows. ### Why Keen IO MCP? - **Flexible Event Schema**: Collect any JSON event without predefined schemas - **Powerful Query API**: Run complex analyses with filters, funnels, and cohorts - **Real-Time Streaming**: Process and analyze events as they arrive - **Embeddable Dashboards**: Create white-labeled analytics for customer-facing products - **Infinite Retention**: Store event data indefinitely with no sampling ### Key Features #### 1. Event Collection and Querying ```javascript // Record custom events await keen.recordEvent("pageview", { url: document.location.href, referrer: document.referrer, user: { id: userId, plan: "premium" }, session: { id: sessionId, duration: 245 }, device: { type: "mobile", os: "iOS" } }); // Query with analysis const analysis = await keen.query({ analysis_type: "count_unique", event_collection: "pageview", target_property: "user.id", timeframe: "this_14_days", group_by: ["device.type"], filters: [{ property: "user.plan", operator: "eq", property_value: "premium" }] }); ``` #### 2. Funnel Analysis ```javascript // Analyze conversion funnels const funnel = await keen.funnelAnalysis({ steps: [ { event_collection: "signup_started", actor_property: "user.email" }, { event_collection: "email_verified", actor_property: "user.email" }, { event_collection: "first_project_created", actor_property: "user.email" }, { event_collection: "subscription_activated", actor_property: "user.email" } ], timeframe: "this_month" }); ``` ### Configuration ```json { "mcpServers": { "keen-io": { "command": "npx", "args": ["-y", "@anthropic/mcp-keen-io"], "env": { "KEEN_PROJECT_ID": "your-project-id", "KEEN_WRITE_KEY": "your-write-key", "KEEN_READ_KEY": "your-read-key" } } } } ``` ### Use Cases **Product Analytics**: Build custom analytics pipelines tailored to your product's specific metrics and KPIs. **IoT Data Analysis**: Collect and analyze high-volume sensor data with flexible schemas and real-time processing. **Customer-Facing Analytics**: Embed analytics dashboards in your product to provide users with insights about their own data. The Keen IO MCP Server provides the foundation for building custom analytics solutions at any scale.
{
"mcpServers": {
"keen-io": {}
}
}