Blog Post

Why Your AI Agent Needs Subscription Analytics

Building a RevenueCat Charts API MCP Server that gives AI agents direct access to your subscription metrics

๐Ÿ“Š
RevenueCat Charts MCP
March 2026 ยท 8 min read

The Problem: Agents Can't See Your Dashboard

You've built an AI agent that helps manage your subscription app. It can write code, review PRs, and analyze logs. But when you ask "What's our churn rate this month?", it goes blank.

The problem is simple: your agent can't see your RevenueCat dashboard. It doesn't have access to the subscription analytics that drive your business decisions. Every time you need a metric, you context-switch โ€” open the dashboard, find the chart, interpret the data, then manually relay it back to your agent conversation.

This is the "last mile" problem of agentic AI: agents are incredibly capable at reasoning, but they're blind to proprietary data behind authentication walls.

MCP connection concept

The Solution: MCP Server for Charts API

With RevenueCat's new Charts API v2 (released February 2026), we can now give agents direct, programmatic access to subscription analytics. And with the Model Context Protocol (MCP), we can package this as a tool that any AI agent can use.

MCP is an open standard that lets AI models discover and use external tools. Think of it as USB for AI โ€” a universal connector that works across Claude, GPT, and any MCP-compatible agent.

What the MCP Server provides:

Architecture

Architecture diagram
๐Ÿ‘ค
User
โ†’
๐Ÿค–
AI Agent
โ†’
๐Ÿ”Œ
MCP Server
โ†’
๐Ÿ“Š
Charts API v2

User โ†’ AI Agent โ†’ MCP Server โ†’ RevenueCat Charts API v2

AI agent conversation with subscription metrics

Real Conversation Example

Here's what a real interaction looks like once the MCP server is connected:

Claude Code Session
You: Compare our trial conversion rates across iOS and Android for Q1 2026
Agent:
Using: query_chart(trial_conversion, segment_by=platform, Q1 2026)
Trial Conversion โ€” Q1 2026 by Platform:

๐Ÿ“ฑ iOS: 52.3% avg (Jan: 49.1% โ†’ Mar: 55.8%)
๐Ÿค– Android: 41.7% avg (Jan: 39.2% โ†’ Mar: 44.1%)

iOS converts 25% better than Android. Both platforms are trending up โ€” iOS gained +6.7pp, Android +4.9pp. The gap is narrowing as your Android paywall improvements take effect.

Why This Matters for Agent Developers

The agent ecosystem is moving fast. We've solved code generation, web search, and file manipulation. But the real value unlock is connecting agents to proprietary business data.

โŒ Without MCP

  • Manual dashboard lookups
  • Copy-paste metrics into prompts
  • Stale data, human bottleneck
  • No automated reporting

โœ… With MCP

  • Real-time data access
  • Natural language queries
  • Automated trend analysis
  • Proactive alerting

5-Minute Quick Start

1. Get your API key

Go to RevenueCat Dashboard โ†’ Project Settings โ†’ API Keys โ†’ Create a new v2 secret key with charts_metrics:charts:read permission.

2. Configure your MCP client

// Claude Code: ~/.claude/mcp_servers.json
{
  "revenuecat-charts": {
    "command": "npx",
    "args": ["revenuecat-charts-mcp"],
    "env": {
      "REVENUECAT_API_KEY": "sk_your_key",
      "REVENUECAT_PROJECT_ID": "proj1ab2c3d4"
    }
  }
}

3. Try demo mode first

Don't have a RevenueCat account? No problem. Set DEMO_MODE=true and the server returns realistic mock data so you can explore the full API surface without credentials.

Try the Interactive Demo โ†’

Ready to Connect Your Agent?

Star the repo, try the demo, and give your AI agent subscription superpowers.

View Submission โ†’ Live Demo โ†’