Keen.io
Keen.io is an embedded analytics API that enables developers to collect, analyze, and visualize event data seamlessly.
Verdict
Common use cases
- Audit which events are being tracked
- Check property types before building queries
- Extract distinct user segments for analysis
- Review cached dataset definitions at standup
- Restore revoked API keys from chat
Integration
- Vendor
- Keen.io
- Category
- developer-tools
- Auth
- API_KEY
- Tools
- 6
- Composio slug
keen_io
Tools
- Inspect All Event Collections
Tool to retrieve schema info for all event collections. Use when you need to list collection names and optional property schema for a given project. Use include_schema to toggle schema details.
- Inspect Collection Property
Tool to return details for a specific property in an event collection. Use when you need to inspect a property's inferred type and resource URL.
- Inspect Single Event Collection
Tool to retrieve schema info for a single event collection. Use when you need the inferred property types for a specific collection in a project.
- List Cached Dataset Definitions
Tool to list cached dataset definitions for a project. Use when you need to page through dataset definitions.
- Select Unique
Tool to return unique values for a target property. Use when distinct property values are required for matching events with optional filters and timeframe constraints.
- Unrevoke Access Key
Tool to unrevoke (reactivate) a specific access key. Use when needing to restore a previously revoked API key.
Setup
Setup guide
- 11. In Switchy, open Settings and navigate to the Integrations page. 2. Find Keen.io in the MCP directory and click Connect. 3. You'll be prompted to paste your Keen.io API key — find this in your Keen.io project dashboard under Access Keys. 4. Choose a read-scoped key (not a write key) to limit what the MCP can do. 5. Paste the key into Switchy and click Authorize. 6. Open any Space and type '@Keen.io list all event collections' to confirm the connection works. 7. If you see collection names returned, the setup is complete. 8. To invoke a tool, @mention Keen.io in a message and describe what you need — for example, '@Keen.io show me unique user IDs in the signup collection'.
What teammates see: by default, memories from Keen.io are scoped to the Space (PROJECT visibility) - you can mark any memory PRIVATE or share it ORG-wide.
Works well with
Top models
Compatibility data appears once enough Spaces have used this MCP together with a given model.
How Switchy teams use it
Starter prompts
List All Collections
@Keen.io list all event collections in my project and include the schema for each oneOpen in a Space →
Inspect Property Type
@Keen.io inspect the 'user_id' property in the 'page_views' collection and tell me its typeOpen in a Space →
Get Unique Values
@Keen.io return all unique values for the 'plan_tier' property in the 'subscriptions' collectionOpen in a Space →
Review Cached Datasets
@Keen.io show me all cached dataset definitions for this projectOpen in a Space →
Reactivate Access Key
@Keen.io unrevoke the access key with ID 'abc123xyz' so the team can use it againOpen in a Space →
Example outputs
Illustrative - representative of the model's voice and quality, not literal recordings.
@keen list all event collections in our production project and show me the schema for each one
Found 4 event collections in your Keen project: 'user_signups' (properties: email [string], plan [string], timestamp [datetime]), 'page_views' (properties: url [string], user_id [string], duration_ms [number]), 'api_requests' (properties: endpoint [string], status_code [number], latency_ms [number]), and 'feature_flags' (properties: flag_name [string], enabled [boolean], user_segment [string]). Each collection includes inferred property types based on ingested events.
This example uses the Inspect All Event Collections tool with schema enabled. Requires a valid API key with read permissions. The schema shown reflects Keen's type inference from actual event data — if your events have inconsistent property types, the schema may show 'mixed' or the most recent type.
@keen show me all unique user segments that have triggered the 'checkout_completed' event in the last 7 days
Querying 'checkout_completed' collection for distinct 'user_segment' values from the past 7 days. Found 5 unique segments: 'enterprise', 'pro', 'starter', 'trial', and 'free'. This represents 2,847 total checkout events across these segments. The 'enterprise' segment accounts for 61% of completed checkouts in this timeframe.
This example demonstrates the Select Unique tool with timeframe filtering. Useful for segmentation analysis or building dynamic filters. Be aware of Keen's query limits — projects on lower tiers may have daily query caps, and results are constrained by your event retention window.
@keen analyze our 'api_requests' collection and summarize which endpoints have the highest error rates this month
Inspecting 'api_requests' collection schema shows 'endpoint' and 'status_code' properties. Querying events from the past 30 days: '/v1/auth/login' has a 12.3% error rate (status >= 400), '/v1/data/export' shows 8.7%, and '/v1/webhooks/receive' has 4.2%. The login endpoint's errors spiked on March 15th, suggesting a potential incident. Total API volume: 1.2M requests this month.
This example pairs Keen's schema inspection with the AI's analytical reasoning to surface actionable insights. The AI synthesizes data from multiple queries (schema + filtered aggregations). Requires read access and sufficient query quota. Error rate calculations assume your events include HTTP status codes.
Use-case deep-dives
When Keen.io wins for event tracking cleanup
A 5-person product team ships a new feature every two weeks and logs 40+ custom events to Keen.io. After six months, no one remembers which properties live in which collections or what types they expect. The Inspect All Event Collections tool surfaces every collection name and schema in one call, then Inspect Single Event Collection drills into the messy ones. This MCP is the right call if your team already uses Keen.io and needs to audit or document event schemas without opening the web console. If you're evaluating analytics platforms or your events live in Mixpanel or Amplitude, this MCP won't help. Use Switchy to run the audit once a quarter and paste the schema into your team wiki.
When this MCP helps debug user-reported issues
A 3-person support team fields tickets about missing data in a SaaS dashboard. The engineering team logs all user actions to Keen.io, but support can't query events without asking a developer. The Select Unique tool lets support agents pull distinct values for properties like user_id or session_id, filtered by timeframe, to confirm whether an event fired. This works if your support team already has read-only Keen.io API keys and the event volume is under 100k per day. Above that threshold, queries slow down and you need a dedicated BI tool. If your events live in a different analytics backend, this MCP won't connect. Use Switchy to let support run one-off queries during live troubleshooting calls.
When Keen.io MCP handles key rotation at scale
A 10-person engineering team rotates Keen.io API keys every quarter for compliance. Developers occasionally revoke keys by mistake, breaking staging environments until someone logs into the Keen.io console to unrevoke them. The Unrevoke Access Key tool restores a key in one call, and List Cached Dataset Definitions confirms which datasets still reference old keys. This MCP is the right call if your team manages more than five Keen.io projects and rotates keys on a schedule. If you only have one project or rotate keys once a year, the web console is faster. If your analytics platform isn't Keen.io, this MCP won't apply. Use Switchy to script key checks into your quarterly rotation runbook.
Frequently asked
What does the Keen.io MCP let me do in Switchy?
It connects Switchy to your Keen.io event analytics data. You can inspect collection schemas, query unique property values, list cached datasets, and manage access keys — all without leaving the AI workspace. Useful for debugging event pipelines or pulling analytics context into team conversations.
Do I need admin access to connect Keen.io?
You need a Keen.io API key with read permissions for the project you want to query. The MCP uses API_KEY auth, so whoever generates the key controls which projects and operations are available. Admin isn't strictly required unless you plan to unrevoke keys or modify datasets.
Can the Keen.io MCP write events or run custom queries?
No. The six tools focus on schema inspection, listing datasets, and retrieving unique property values. If you need to send events or run full Keen Query API calls, use Keen's REST API directly or build a custom MCP with those endpoints.
Why use this instead of the Keen.io dashboard?
The MCP brings event schema and dataset metadata into your AI workspace, so you can reference it mid-conversation without tab-switching. It's faster for quick lookups during debugging or when building queries. For deep analysis or visualisations, the dashboard still wins.
Who on the team should connect the Keen.io MCP?
Whoever owns your event analytics setup — typically a data engineer or backend developer. They'll have the API key and know which project to connect. Once linked, the whole Switchy workspace can query schemas and datasets without needing separate Keen credentials.