Outlit MCP Server
Query customer intelligence data through 6 MCP tools covering customer and user profiles, revenue metrics, activity timelines, and raw SQL analytics access.
Quick Start
| What you need |
Tool |
| Browse/filter customers |
outlit_list_customers |
| Browse/filter users |
outlit_list_users |
| Single customer deep dive |
outlit_get_customer |
| Customer activity history |
outlit_get_timeline |
| Custom analytics / aggregations |
outlit_query (SQL) |
| Discover tables & columns |
outlit_schema |
Before writing SQL: Always call outlit_schema first to discover available tables and columns.
Common Patterns
Find at-risk customers:
{
"tool": "outlit_list_customers",
"billingStatus": "PAYING",
"noActivityInLast": "30d",
"orderBy": "mrr_cents",
"orderDirection": "desc"
}
Revenue breakdown (SQL):
{
"tool": "outlit_query",
"sql": "SELECT billing_status, count(*) as customers, sum(mrr_cents)/100 as mrr_dollars FROM customer_dimensions GROUP BY 1 ORDER BY 3 DESC"
}
MCP Setup
Get an API Key
Go to Settings > MCP Integration in the Outlit dashboard (app.outlit.ai).
Auto-Detection Setup
Detect the current environment and run the appropriate setup command:
Check for Claude Code — If running inside Claude Code (check if claude CLI is available), run:
claude mcp add outlit https://mcp.outlit.ai/mcp -- --header "Authorization: Bearer API_KEY"
Check for Cursor — If .cursor/mcp.json exists in the project or home directory, add to that file:
{
"mcpServers": {
"outlit": {
"url": "https://mcp.outlit.ai/mcp",
"headers": { "Authorization": "Bearer API_KEY" }
}
}
}
Check for Claude Desktop — If claude_desktop_config.json exists at ~/Library/Application Support/Claude/ (macOS) or %APPDATA%/Claude/ (Windows), add to that file:
{
"mcpServers": {
"outlit": {
"url": "https://mcp.outlit.ai/mcp",
"headers": { "Authorization": "Bearer API_KEY" }
}
}
}
Ask the user for their API key if not provided. Replace API_KEY with the actual key.
Verify Connection
Call outlit_schema to confirm the connection is working.
Tool Reference
outlit_list_customers
Filter and paginate customers.
| Key Params |
Values |
billingStatus |
NONE, TRIALING, PAYING, CHURNED |
hasActivityInLast / noActivityInLast |
7d, 14d, 30d, 90d (mutually exclusive) |
mrrAbove / mrrBelow |
cents (10000 = $100) |
search |
name or domain |
orderBy |
last_activity_at, first_seen_at, name, mrr_cents |
limit |
1-1000 (default: 20) |
cursor |
pagination token |
outlit_list_users
Filter and paginate users.
| Key Params |
Values |
journeyStage |
DISCOVERED, SIGNED_UP, ACTIVATED, ENGAGED, INACTIVE |
customerId |
filter by customer |
hasActivityInLast / noActivityInLast |
Nd, Nh, or Nm (e.g., 7d, 24h) — mutually exclusive |
search |
email or name |
orderBy |
last_activity_at, first_seen_at, email |
limit |
1-1000 (default: 20) |
cursor |
pagination token |
outlit_get_customer
Single customer deep dive. Accepts customer ID, domain, or name.
| Key Params |
Values |
customer |
customer ID, domain, or name (required) |
include |
users, revenue, recentTimeline, behaviorMetrics |
timeframe |
7d, 14d, 30d, 90d (default: 30d) |
Only request the include sections you need — omitting unused ones is faster.
outlit_get_timeline
Activity timeline for a customer.
| Key Params |
Values |
customer |
customer ID or domain (required) |
channels |
SDK, EMAIL, SLACK, CALL, CRM, BILLING, SUPPORT, INTERNAL |
eventTypes |
filter by specific event types |
timeframe |
7d, 14d, 30d, 90d, all (default: 30d) |
startDate / endDate |
ISO 8601 (mutually exclusive with timeframe) |
limit |
1-1000 (default: 50) |
cursor |
pagination token |
outlit_query
Raw SQL against ClickHouse analytics tables. SELECT only. See SQL Reference for ClickHouse syntax and security model.
| Key Params |
Values |
sql |
SQL SELECT query (required) |
limit |
1-10000 (default: 1000) |
Available tables: events, customer_dimensions, user_dimensions, mrr_snapshots.
outlit_schema
Discover tables and columns. Call with no params for all tables, or table: "events" for a specific table. Always call this before writing SQL.
Data Model
Billing status: NONE → TRIALING → PAYING → CHURNED
Journey stages: DISCOVERED → SIGNED_UP → ACTIVATED → ENGAGED → INACTIVE
Data formats:
- Monetary values in cents (divide by 100 for dollars)
- Timestamps in ISO 8601
- IDs with string prefixes (
cust_, contact_, evt_)
Pagination: All list endpoints use cursor-based pagination. Check pagination.hasMore before requesting more pages. Pass pagination.nextCursor as cursor for the next page.
Best Practices
- Call
outlit_schema before writing SQL — discover columns, don't guess
- Use customer tools for single lookups — don't use SQL for individual customer queries
- Filter at the source — use tool params and WHERE clauses, not post-fetch filtering
- Only request needed includes — omit unused
include options for faster responses
- Always add time filters to event SQL —
WHERE occurred_at >= now() - INTERVAL N DAY
- Convert cents to dollars — divide monetary values by 100 for display
- Use LIMIT in SQL — cap result sets to avoid large data transfers
Known Limitations
- SQL is read-only — no INSERT, UPDATE, DELETE
- Organization isolation — cannot query other organizations' data
- Timeline requires a customer — cannot query timeline across all customers
- MRR filtering is post-fetch — may be slower on large datasets in list_customers
- Event queries need time filters — queries without date ranges scan all data
- ClickHouse syntax — uses different functions than MySQL/PostgreSQL (see SQL Reference)
Tool Gotchas
| Tool |
Gotcha |
outlit_list_customers |
hasActivityInLast and noActivityInLast are mutually exclusive |
outlit_list_customers |
search checks name and domain only |
outlit_get_customer |
behaviorMetrics depends on timeframe — extend it if empty |
outlit_get_timeline |
timeframe and startDate/endDate are mutually exclusive |
outlit_query |
Use ClickHouse date syntax: now() - INTERVAL 30 DAY, not DATE_SUB() |
outlit_query |
properties column is JSON — use JSONExtractString(properties, 'key') |
References
| Reference |
When to Read |
| SQL Reference |
ClickHouse syntax, security model, query patterns |
| Workflows |
Multi-step analysis: churn risk, revenue dashboards, account health |
1---
2name: outlit-mcp
3description: Use when querying Outlit customer data via MCP tools (outlit_*). Triggers on customer analytics, revenue metrics, activity timelines, cohort analysis, churn risk assessment, SQL queries against analytics data, or any Outlit data exploration task.
4metadata:
5 source: https://skillmd.com/skills/modbender/outlit-mcp
6---
7
8# Outlit MCP Server
9
10Query customer intelligence data through 6 MCP tools covering customer and user profiles, revenue metrics, activity timelines, and raw SQL analytics access.
11
12## Quick Start
13
14| What you need | Tool |
15|---------------|------|
16| Browse/filter customers | `outlit_list_customers` |
17| Browse/filter users | `outlit_list_users` |
18| Single customer deep dive | `outlit_get_customer` |
19| Customer activity history | `outlit_get_timeline` |
20| Custom analytics / aggregations | `outlit_query` (SQL) |
21| Discover tables & columns | `outlit_schema` |
22
23**Before writing SQL:** Always call `outlit_schema` first to discover available tables and columns.
24
25### Common Patterns
26
27**Find at-risk customers:**
28```json
29{
30 "tool": "outlit_list_customers",
31 "billingStatus": "PAYING",
32 "noActivityInLast": "30d",
33 "orderBy": "mrr_cents",
34 "orderDirection": "desc"
35}
36```
37
38**Revenue breakdown (SQL):**
39```json
40{
41 "tool": "outlit_query",
42 "sql": "SELECT billing_status, count(*) as customers, sum(mrr_cents)/100 as mrr_dollars FROM customer_dimensions GROUP BY 1 ORDER BY 3 DESC"
43}
44```
45
46---
47
48## MCP Setup
49
50### Get an API Key
51
52Go to **Settings > MCP Integration** in the Outlit dashboard ([app.outlit.ai](https://app.outlit.ai)).
53
54### Auto-Detection Setup
55
56Detect the current environment and run the appropriate setup command:
57
581. **Check for Claude Code** — If running inside Claude Code (check if `claude` CLI is available), run:
59 ```bash
60 claude mcp add outlit https://mcp.outlit.ai/mcp -- --header "Authorization: Bearer API_KEY"
61 ```
62
632. **Check for Cursor** — If `.cursor/mcp.json` exists in the project or home directory, add to that file:
64 ```json
65 {
66 "mcpServers": {
67 "outlit": {
68 "url": "https://mcp.outlit.ai/mcp",
69 "headers": { "Authorization": "Bearer API_KEY" }
70 }
71 }
72 }
73 ```
74
753. **Check for Claude Desktop** — If `claude_desktop_config.json` exists at `~/Library/Application Support/Claude/` (macOS) or `%APPDATA%/Claude/` (Windows), add to that file:
76 ```json
77 {
78 "mcpServers": {
79 "outlit": {
80 "url": "https://mcp.outlit.ai/mcp",
81 "headers": { "Authorization": "Bearer API_KEY" }
82 }
83 }
84 }
85 ```
86
87Ask the user for their API key if not provided. Replace `API_KEY` with the actual key.
88
89### Verify Connection
90
91Call `outlit_schema` to confirm the connection is working.
92
93---
94
95## Tool Reference
96
97### outlit_list_customers
98
99Filter and paginate customers.
100
101| Key Params | Values |
102|------------|--------|
103| `billingStatus` | NONE, TRIALING, PAYING, CHURNED |
104| `hasActivityInLast` / `noActivityInLast` | 7d, 14d, 30d, 90d (mutually exclusive) |
105| `mrrAbove` / `mrrBelow` | cents (10000 = $100) |
106| `search` | name or domain |
107| `orderBy` | last_activity_at, first_seen_at, name, mrr_cents |
108| `limit` | 1-1000 (default: 20) |
109| `cursor` | pagination token |
110
111### outlit_list_users
112
113Filter and paginate users.
114
115| Key Params | Values |
116|------------|--------|
117| `journeyStage` | DISCOVERED, SIGNED_UP, ACTIVATED, ENGAGED, INACTIVE |
118| `customerId` | filter by customer |
119| `hasActivityInLast` / `noActivityInLast` | Nd, Nh, or Nm (e.g., 7d, 24h) — mutually exclusive |
120| `search` | email or name |
121| `orderBy` | last_activity_at, first_seen_at, email |
122| `limit` | 1-1000 (default: 20) |
123| `cursor` | pagination token |
124
125### outlit_get_customer
126
127Single customer deep dive. Accepts customer ID, domain, or name.
128
129| Key Params | Values |
130|------------|--------|
131| `customer` | customer ID, domain, or name (required) |
132| `include` | `users`, `revenue`, `recentTimeline`, `behaviorMetrics` |
133| `timeframe` | 7d, 14d, 30d, 90d (default: 30d) |
134
135Only request the `include` sections you need — omitting unused ones is faster.
136
137### outlit_get_timeline
138
139Activity timeline for a customer.
140
141| Key Params | Values |
142|------------|--------|
143| `customer` | customer ID or domain (required) |
144| `channels` | SDK, EMAIL, SLACK, CALL, CRM, BILLING, SUPPORT, INTERNAL |
145| `eventTypes` | filter by specific event types |
146| `timeframe` | 7d, 14d, 30d, 90d, all (default: 30d) |
147| `startDate` / `endDate` | ISO 8601 (mutually exclusive with timeframe) |
148| `limit` | 1-1000 (default: 50) |
149| `cursor` | pagination token |
150
151### outlit_query
152
153Raw SQL against ClickHouse analytics tables. **SELECT only.** See [SQL Reference](references/sql-reference.md) for ClickHouse syntax and security model.
154
155| Key Params | Values |
156|------------|--------|
157| `sql` | SQL SELECT query (required) |
158| `limit` | 1-10000 (default: 1000) |
159
160Available tables: `events`, `customer_dimensions`, `user_dimensions`, `mrr_snapshots`.
161
162### outlit_schema
163
164Discover tables and columns. Call with no params for all tables, or `table: "events"` for a specific table. Always call this before writing SQL.
165
166---
167
168## Data Model
169
170**Billing status:** NONE → TRIALING → PAYING → CHURNED
171
172**Journey stages:** DISCOVERED → SIGNED_UP → ACTIVATED → ENGAGED → INACTIVE
173
174**Data formats:**
175- Monetary values in cents (divide by 100 for dollars)
176- Timestamps in ISO 8601
177- IDs with string prefixes (`cust_`, `contact_`, `evt_`)
178
179**Pagination:** All list endpoints use cursor-based pagination. Check `pagination.hasMore` before requesting more pages. Pass `pagination.nextCursor` as `cursor` for the next page.
180
181---
182
183## Best Practices
184
1851. **Call `outlit_schema` before writing SQL** — discover columns, don't guess
1862. **Use customer tools for single lookups** — don't use SQL for individual customer queries
1873. **Filter at the source** — use tool params and WHERE clauses, not post-fetch filtering
1884. **Only request needed includes** — omit unused `include` options for faster responses
1895. **Always add time filters to event SQL** — `WHERE occurred_at >= now() - INTERVAL N DAY`
1906. **Convert cents to dollars** — divide monetary values by 100 for display
1917. **Use LIMIT in SQL** — cap result sets to avoid large data transfers
192
193## Known Limitations
194
1951. **SQL is read-only** — no INSERT, UPDATE, DELETE
1962. **Organization isolation** — cannot query other organizations' data
1973. **Timeline requires a customer** — cannot query timeline across all customers
1984. **MRR filtering is post-fetch** — may be slower on large datasets in list_customers
1995. **Event queries need time filters** — queries without date ranges scan all data
2006. **ClickHouse syntax** — uses different functions than MySQL/PostgreSQL (see [SQL Reference](references/sql-reference.md))
201
202---
203
204## Tool Gotchas
205
206| Tool | Gotcha |
207|------|--------|
208| `outlit_list_customers` | `hasActivityInLast` and `noActivityInLast` are mutually exclusive |
209| `outlit_list_customers` | `search` checks name and domain only |
210| `outlit_get_customer` | `behaviorMetrics` depends on timeframe — extend it if empty |
211| `outlit_get_timeline` | `timeframe` and `startDate`/`endDate` are mutually exclusive |
212| `outlit_query` | Use ClickHouse date syntax: `now() - INTERVAL 30 DAY`, not `DATE_SUB()` |
213| `outlit_query` | `properties` column is JSON — use `JSONExtractString(properties, 'key')` |
214
215---
216
217## References
218
219| Reference | When to Read |
220|-----------|--------------|
221| [SQL Reference](references/sql-reference.md) | ClickHouse syntax, security model, query patterns |
222| [Workflows](references/workflows.md) | Multi-step analysis: churn risk, revenue dashboards, account health |