AI chat integration
Asemic exposes an MCP server (Model Context Protocol, the open standard AI assistants use to call external tools). Connect it once, and you can ask analytics questions in the AI chat you already use:
“What was ARPDAU by payment segment last week, and how does it compare to the week before?”
The AI discovers your project’s metrics and dimensions, runs the query through Asemic, and narrates the result. It can render charts, find and read existing dashboards and stories, hand you a link to open them in Asemic, and, when your role allows it, build and edit dashboards and add annotations from the conversation.
The reason the answers are trustworthy: the AI does not write SQL against raw tables. It queries the named, versioned metric definitions in your semantic layer, so the numbers in chat match the numbers on your dashboards, whoever asks.
Works with claude.ai (custom connectors), Claude Desktop, Claude Code, ChatGPT (Developer mode), Gemini CLI, and any MCP-capable client.
The same instructions live in the product: open Settings, then the “Connect AI” tab. It shows your server URL ready to copy, setup steps per assistant (Claude, ChatGPT, Gemini), and your personal access tokens.
Connect from claude.ai or Claude Desktop
- In claude.ai, open Settings, then Connectors, then select “Add custom connector”.
- Paste the server URL:
https://app.asemicanalytics.com/mcp - The browser opens Asemic’s sign-in (your regular Asemic credentials or Google sign-in), followed by a permission screen listing what the connection may do:
- “Discover metrics and dashboards, run analytics queries, render charts”
- “Create and edit dashboards and stories”
- Select “Authorize”. The chat can now use the Asemic tools.
A few things worth knowing:
- No API key is created or pasted anywhere in this flow; registration and sign-in are automatic (OAuth).
- Access is per user: the AI sees exactly the projects you can see, and its write tools follow your role: any member’s assistant can create private dashboards, while publishing and annotating require Editor or above.
- After Asemic adds a tool or changes a tool’s inputs, claude.ai can keep serving its cached tool list. Remove the connector and add it again to refresh it; disconnecting and reconnecting is not enough, because the cached list survives a reconnect.
Connect from ChatGPT
ChatGPT supports custom MCP connectors on paid plans (Plus, Pro, Business, Enterprise, Edu) with Developer mode enabled:
- In ChatGPT on the web, open Settings, then Apps, then “Advanced settings”, and enable “Developer mode”.
- Back in Apps, select the create option and give the connector a name, for example “Asemic”.
- Enter the server URL:
https://app.asemicanalytics.com/mcp - Under Authentication, choose OAuth. ChatGPT discovers Asemic’s sign-in automatically; the same Asemic permission screen appears as in the claude.ai flow.
- Authorize, then enable the connector in the conversations where you want it.
OpenAI moves this UI around occasionally; if the menus differ, look for the custom connector or app creation option behind Developer mode.
Connect from Gemini CLI
The consumer Gemini app does not accept custom MCP connectors today; Google’s supported path is Gemini CLI. Add Asemic to ~/.gemini/settings.json:
{
"mcpServers": {
"asemic": {
"httpUrl": "https://app.asemicanalytics.com/mcp",
"oauth": { "enabled": true }
}
}
}
Gemini CLI discovers Asemic’s OAuth configuration automatically and opens the sign-in in your browser. If sign-in does not start on its own, run /mcp auth asemic inside the CLI. A personal access token also works instead of OAuth: replace the oauth entry with "headers": { "Authorization": "Bearer <your-token>" }.
Connect from Claude Code
Power users connect with a personal access token instead of the OAuth flow:
- In Asemic, create a token under “Personal access tokens” (in Settings, “Connect AI” tab, or in your profile settings): give it a name and select “Create token”. The token is shown only once, so copy it straight away.
- Add the server:
claude mcp add --transport http asemic https://app.asemicanalytics.com/mcp \
--header "Authorization: Bearer <your-token>"
Tokens are revocable from the same settings page. The same token works for any MCP client that accepts an Authorization: Bearer header but has no native connector flow, and for scripts and the CLI. A token authenticates as you, so treat it like a password.
What you can ask
- “What metrics do we track?”
- “Show DAU for the last 30 days, split by platform.”
- “Compare ARPDAU this month vs last month for payers only.”
- “What does our retention curve look like for the June cohorts?”
- “Do we have a dashboard about monetization? Link me to it.”
Shape it to your team
The assistant works out of the box, but you can make it speak your team’s language and run your team’s recurring analyses. Custom instructions (“when I say active users, use DAU”) and saved prompts (“run the weekly monetization check”) are set on the “AI Assistant” settings tab, scoped to you, a project, or the whole workspace. See Customize the assistant.
Tool reference
These names appear in your chat client’s tool list:
| Tool | What it does |
|---|---|
whoami | Reports who the connection is signed in as: your user and workspace, the projects you can reach with your role on each, whether the connection can read and write, and whether it authenticated through the OAuth connector or a personal access token. Useful for explaining an access error. |
list-projects | Lists the projects you can query. |
list-metrics | Lists a project’s metrics with descriptions and units, and whether each plots over calendar dates, days since install (cohort), or both. |
list-dimensions | Lists the user properties available for grouping and filtering. Given a metric, it also lists that metric’s event-level dimensions: columns of the event the metric is computed from (a level, a store, a game mode), with ids written <event>.<column>. |
get-dimension-values | Lists the distinct values of one dimension (for exact filters). |
run-query | Runs a query: one or more metrics over a date range, optionally grouped by dimensions, filtered, and compared against the previous period. x_axis takes the metric’s kind, daily or cohort (the older date and cohort_day are still accepted). Returns a compact table plus totals. |
chart-query | Same inputs as run-query, but returns a finished, Asemic-styled interactive chart the assistant can present. |
list-dashboards | Lists dashboards and stories in a project, with links. |
get-dashboard | Reads one dashboard or story: its charts, settings, and story text. |
render-chart / render-dashboard | Renders an existing chart or dashboard to an image, pixel-identical to the app. |
list-annotations | Reads the annotations in a date range. |
data-health | Reports whether each event is still arriving: when it was last received, the rows on the last complete day against its recent median, and a severity (critical, warning, healthy, or unknown). It reads the cached results of the daily event health check and never queries your warehouse. |
list-saved-prompts / run-saved-prompt | Lists and runs your team’s saved prompts: reusable, named analyses. |
Write tools, gated by role:
| Tool | What it does |
|---|---|
create-dashboard / clone-dashboard | Creates a dashboard, or clones one you can view. New content starts private to you. |
update-dashboard / delete-dashboard | Edits or deletes dashboards you are allowed to manage. |
add-chart / update-chart / remove-chart | Edits the charts on a dashboard. |
add-text-block / update-text-block | Edits a dashboard’s text blocks. |
set-dashboard-sharing | Publishes or unpublishes a dashboard (Editor and above). |
create-annotation | Adds a release, campaign, or incident annotation (Editor and above). |
How the AI behaves
- Results are capped by size.
run-queryreturns up to 2,000 data points and 500 rows (200 rows by default). A data point is one number in the table, so each extra metric, and comparing against the previous period, uses up the budget faster and lowers the row cap. Every response opens with asizeblock: how many rows and data points came back, whether the result was cut, and what to narrow. When a result is cut, the AI narrows the query (filters, a shorter range, a coarser time grain) instead of paging, so you may see it refine its own query; that is expected. - Daily metrics plot over calendar dates; cohort metrics plot over days since install. The AI is told which is which, so questions like the retention example work naturally.
- Before explaining a surprising drop, the AI is instructed to check
data-health. A KPI that fell because an event stopped arriving is a tracking problem, not a change in player behavior, and the two call for opposite responses. - A user-level metric can be broken down or filtered by a column of the event it is computed from, for example win rate by level. The query is then computed from the event rows, and the result carries a note saying so. For metrics that count distinct players, the note also says the groups can overlap (a player who played several levels counts under each), so they do not add up to the total, and the AI is told to say that when it presents the numbers.
- If a query is invalid (unknown metric, bad filter), the AI receives a precise error and corrects itself. This is normal and visible in the chat’s tool log.
Security and privacy
- Sign-in uses your existing Asemic account, and the permission screen is shown before any access.
- The AI cannot change the data model, warehouse connections, or settings through this integration. Dashboard and annotation writes follow the same role rules as the app: nothing the assistant does exceeds what its user could do by hand.
- Queries run on demand against the project’s published model; raw event data is not copied to the AI provider beyond the query results shown in chat.
- Access tokens expire and refresh automatically (OAuth), or are revocable personal tokens on the Claude Code path.