Agent-Native Analytics MCP Server
io.github.BuilderIO/agent-native-analytics
Connect analytics data sources and generate charts with AI agents using Amplitude/Mixpanel integration.
What is the Agent-Native Analytics MCP server?
Agent-Native Analytics is an MCP server that integrates Amplitude and Mixpanel analytics platforms with AI agents. It enables agents to connect data sources, query analytics data, and generate charts through natural language prompts.
This MCP server bridges analytics platforms (Amplitude/Mixpanel) with AI agents, allowing them to autonomously explore data, answer questions about user behavior, and create visualizations. It's part of the Agent-Native framework, which pairs agent capabilities with purpose-built UIs for knowledge work.
How to install Agent-Native Analytics
Copy-paste configuration for popular MCP clients.
Tools & capabilities
Tools this server exposes to the agent.
Connect data sources— Connect to Amplitude or Mixpanel analytics accountsQuery analytics data— Execute queries against connected analytics data sourcesGenerate charts— Create visualizations and charts from analytics data based on agent prompts
Use cases
- Ask an AI agent to analyze user engagement trends and automatically generate dashboard charts
- Connect multiple analytics sources and have an agent synthesize insights across platforms
- Generate on-demand reports by prompting the agent with natural language questions about your data
- Build dashboards where an agent autonomously creates visualizations based on business questions
- Explore user behavior patterns without manual dashboard navigation
Agent-Native Analytics MCP server FAQ
It's an MCP server that connects AI agents to Amplitude and Mixpanel, enabling agents to query analytics data and generate charts through natural language prompts.
The server is available as a remote streamable-http endpoint at https://analytics.agent-native.com/mcp. Configure it in your MCP client (Cursor, Claude, etc.) to connect to this endpoint.
It integrates with Amplitude and Mixpanel analytics platforms.
Yes, you'll need valid credentials for your Amplitude or Mixpanel account to connect data sources through the MCP server.
Yes, as an MCP server it works with any MCP-compatible client including Claude and Cursor.
The MCP server itself is part of the open-source Agent-Native framework, but you'll need active Amplitude or Mixpanel subscriptions to use the analytics integrations.
README (reference)
Source of truth, from the repository.
Agent-Native
Agent-Native is an open-source TypeScript framework for building agents that pair autonomous work with a purpose-built UI. Define each capability once as an action: the agent uses it as a tool, and the UI calls it from code.
Quick start
npx --yes @agent-native/core@latest create my-agent --standalone --template chat
Follow the getting started guide for a full intro to the framework.
Why build agents with UIs?
Coding agents work with more than a text box. Their environment provides context, tools, files, tests, and previews that make their capabilities and results visible.
Knowledge work needs that same kind of environment. A UI shows what an agent can do and gives people familiar ways to inspect, edit, approve, and share its work.
How Agent-Native works
- Shared actions. The agent calls each capability as a tool, and the UI calls it from code. Both paths use the same validation, permissions, and implementation.
- Shared data. Work done by the agent appears in the UI, and work done in the UI is available to the agent.
- Shared application state. The agent receives relevant UI state, such as the current page, selected record, or active view.
The agent does not click through the UI. It works through the same action layer as the UI.
Example: a shared action
Create actions/hello.ts:
import { defineAction } from "@agent-native/core/action";
import { z } from "zod";
// One action powers every app surface: UI, agent, HTTP, MCP, A2A, and CLI.
export default defineAction({
description: "Return a friendly greeting.",
schema: z.object({
name: z.string().default("world").describe("Name to greet"),
}),
http: { method: "GET" },
run: async ({ name }) => {
return { message: `Hello, ${name}!` };
},
});
The agent receives hello as a tool. React calls the same function with useActionQuery("hello", { name: "Alex" }). Agent-Native also exposes it through HTTP, MCP, A2A, and the CLI.
Included
- Agent chat: Let people delegate work, ask questions, and review results in the same UI.
- Authentication and permissions: Control who can access and change shared work.
- Skills and memory: Give agents reusable expertise and persistent context.
- Automations: Run agent work on schedules or events.
- Agent teams: Delegate work to specialist agents in the same workspace or across connected agents.
- PostgreSQL backend: Use PostgreSQL in production and PGlite for local development on any Nitro-compatible host.
Example: edit a running app visually
Use /visual-edit in Claude Code to edit a running app on a canvas instead of
prompting for each small UI nudge. Compare live pages together, then ask Claude
to apply the chosen edits to your source. For example:
/visual-edit the onboarding flow, plus home at every breakpoint
Review the onboarding screens alongside Home at desktop, tablet, and mobile sizes, adjust a button's color or spacing directly, then ask Claude to apply the pending edits to your source. See the Visual Edit guide for the full walkthrough and sharing details.
Bring your LLM, SQL database, tools, and infrastructure. Everything you build stays yours.
See Agent-Native in action:
https://github.com/user-attachments/assets/ef51644b-6506-46d8-8083-0af7b7e5b65c
<br />Open-source agents
Start from one of these agents or use it as an example for your own.
<br /> <table> <tr> <td width="33%" align="center" valign="top"> <br />Clips
<a href="https://agent-native.com/apps/clips/"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F4dc9c87b9a224132855e1cb68cd89f9e?format=webp&width=800"> <img src="https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F462fdb643d5d403a8c54540c5c3292f6?format=webp&width=800" alt="Clips app screenshot" width="100%"> </picture> </a>Record and understand meetings, screens, and voice notes.
<br /> </td> <td width="33%" align="center" valign="top"> <br />Design
<a href="https://agent-native.com/apps/design/"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F072f66a3e360464fb48617670ceee46f?format=webp&width=800"> <img src="https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fc9f693f170294bde8ebc733cff368af9?format=webp&width=800" alt="Design app screenshot" width="100%"> </picture> </a>Generate and refine interactive designs.
<br /> </td> <td width="33%" align="center" valign="top"> <br />Slides
<a href="https://agent-native.com/apps/slides/"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F710f5b7586cc41deaa0e6f8de658a499?format=webp&width=800"> <img src="https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F6223a64717a04931a6f509696019f48b?format=webp&width=800" alt="Slides app screenshot" width="100%"> </picture> </a>Create and edit on-brand presentations.
<br /> </td> </tr> <tr> <td width="33%" align="center" valign="top"> <br />Analytics
<a href="https://agent-native.com/apps/analytics/"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fba632b39758d448594f7e5d2403e5d0f?format=webp&width=800"> <img src="https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F976ea93771b64b9e8c1b3eb12e606e07?format=webp&width=800" alt="Analytics app screenshot" width="100%"> </picture> </a>Ask questions of your data and build dashboards.
<br /> </td> <td width="33%" align="center" valign="top"> <br />Calendar
<a href="https://agent-native.com/apps/calendar/"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F91d4c18d256b49e6bca24c23ce90a4f2?format=webp&width=800"> <img src="https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F8d9d48bb2f1d498f9601ac28c64edd4c?format=webp&width=800" alt="Calendar app screenshot" width="100%"> </picture> </a>Find time, schedule events, and manage bookings.
<br /> </td> <td width="33%" align="center" valign="top"> <br />Prioritize email, draft replies, and follow up.
<br /> </td> </tr> <tr> <td width="33%" align="center" valign="top"> <br />Assets
<a href="https://agent-native.com/apps/assets/"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fde445dd867744e9bac5d3e5d04c903b2?format=webp&width=800"> <img src="https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fac5701f0871f4edbb06fa9cdb12b166e?format=webp&width=800" alt="Assets app screenshot" width="100%"> </picture> </a>Create and organize on-brand media.
<br /> </td> <td width="33%" align="center" valign="top"> <br />Content
<a href="https://agent-native.com/apps/content/"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fa9f30380b03b4fd1a7d2ab371ddfd798?format=webp&width=800"> <img src="https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F979f792c79834470a513a9d9b733dd84?format=webp&width=800" alt="Content app screenshot" width="100%"> </picture> </a>Draft, organize, and publish content.
<br /> </td> <td width="33%" align="center" valign="top"> <br />Plans
<a href="https://agent-native.com/apps/plan/"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fe89439e917044fc9ac9663737e35bf1f?format=webp&width=800"> <img src="https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F98427229c8c84c30afee56172503c294?format=webp&width=800" alt="Plans app screenshot" width="100%"> </picture> </a>Create and review visual plans with diagrams, wireframes, and prototypes.
<br /> </td> </tr> </table>Explore the full app gallery, or start with the framework guide.
Documentation and community
- Read the documentation.
- Join Discord to ask questions, share what you're building, and get help.
Contributing
Working on this repository itself? See DEVELOPMENT.md for local setup, workspace structure, and guard scripts.
License
MIT
Related MCP servers

Agent-Native Assets
Digital asset manager for agents—upload, organize, search, and generate on-brand images and videos

Agent-Native Brain
Access company knowledge from Slack, meetings, and transcripts as an AI agent tool.

Agent-Native Calendar
AI-powered Google Calendar management—schedule events, sync calendars, and enable public booking through agents.

Agent-Native Chat
Open-source TypeScript framework for building agents with purpose-built UIs and shared actions.

Agent-Native Clips
Record and understand meetings, screens, and voice notes with AI-powered analysis.

Agent-Native Content
Open-source TypeScript framework for building agents with purpose-built UIs and shared actions.