CleverTap MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@CleverTap MCPwhat is the daily active users trend for the past week?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
CleverTap MCP
Read-only AI analytics assistant for CleverTap over the Model Context Protocol. Live public CleverTap APIs only — no mocks, no write endpoints.
Stack
Bun + TypeScript + Zod
@modelcontextprotocol/sdk(stable, Cursor-fit)@modelcontextprotocol/ext-apps(Claude.ai in-chat chart widgets)Dual transport: stdio (Cursor) and Streamable HTTP
/mcp(hosted Claude.ai / remote Cursor)
Related MCP server: Sprinklr MCP Server
Setup
bun install
cp .env.example .env
# Fill CLEVERTAP_ACCOUNT_ID, CLEVERTAP_PASSCODE, CLEVERTAP_REGIONRegions: in1 | us1 | sg1 | eu1 | aps3 | mec1 | eu
Cursor (local stdio)
Copy .cursor/mcp.json.example to .cursor/mcp.json and set your credentials:
{
"mcpServers": {
"clevertap": {
"command": "bun",
"args": ["run", "D:/clevertap/src/index.ts"],
"env": {
"CLEVERTAP_ACCOUNT_ID": "YOUR_ACCOUNT_ID",
"CLEVERTAP_PASSCODE": "YOUR_PASSCODE",
"CLEVERTAP_REGION": "in1",
"MCP_TRANSPORT": "stdio"
}
}
}
}Restart Cursor MCP (or reload the window). Tools appear under the CleverTap server. Chart tools return markdown tables in Cursor.
Hosted /mcp (Claude.ai / remote Cursor)
MCP_TRANSPORT=http PORT=3000 bun run src/index.ts
# optional: MCP_AUTH_TOKEN=secretMCP endpoint:
http://HOST:3000/mcpHealth:
http://HOST:3000/health
Point Claude.ai custom MCP / remote Cursor at that URL. Same tool surface as stdio. On Claude.ai, tools with _meta.ui.resourceUri render MCP App chart widgets in chat.
Tool groups
Group | Examples |
workspace |
|
events |
|
profiles |
|
properties |
|
campaigns |
|
realtime |
|
query |
|
metadata |
|
charts |
|
APIs used: /1/counts/events.json, /1/counts/trends.json, /1/counts/top.json, /1/counts/profiles.json, /1/events.json, /1/profiles.json, /1/profile.json, /1/message/report.json, /1/now.json.
Scripts
bun run start # stdio
bun run start:http # HTTP /mcp
bun run typecheckNotes
Read-only: no upload, campaign create, or segment write tools.
Some named tools (e.g.
returning_users,top_events) are honest proxies over public endpoints — they error clearly when CleverTap cannot return the metric.Internal queue / poll / pagination are shared client helpers, not separate MCP tools.
Related MCP Connectors
Query your org's data in natural language — read-only MCP access to SQL, NoSQL, files & warehouses.
Query your warehouse or a CSV with Claude/ChatGPT over MCP, governed by table-level ACL + audit.
Read-only analytics for Convex apps, queryable via MCP from Claude, Cursor, and other clients.
Analytics your AI agent can actually use. Track, experiment, and optimize via MCP.
Related MCP Servers
- FlicenseAqualityCmaintenanceAn MCP server that enables AI assistants to interact with the CleverTap REST API to manage user profiles, events, campaigns, and reports. It supports multi-project configurations and provides tools for data analysis and campaign management through natural language.106-
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants read-only access to Sprinklr data via MCP, allowing querying reports, searching cases, and calling Sprinklr API endpoints.4 npmISC
- AlicenseAqualityDmaintenanceSafe, read-only SQL analytics for AI agents over MCP, enabling exploration, profiling, and querying of data without mutation risk.5MIT
- FlicenseNot gradedqualityCmaintenanceRead-only AI analytics assistant for CleverTap over the Model Context Protocol, providing tools for events, profiles, campaigns, insights, and realtime data via live public APIs.0-