Amplitude MCP by usefulapi
Read events, funnels, retention, users and revenue from one project in Amplitude.
¿Debería usar esto?
Calidad y seguridad
Hallazgos (2)
- LOWen amplitude_session_length_distribution
- LOWen amplitude_average_session_length
Basado en el análisis automatizado de las definiciones de herramientas y el cumplimiento del protocolo.
Costo de contexto
Este es el número aproximado de tokens que se consumen cada vez que las herramientas del servidor se cargan en el contexto de un modelo. Los recuentos más altos reducen la atención disponible para otras tareas.
Instalar
Instalación con un clic
Agrega esto a tu archivo `claude_desktop_config.json`:
{
"mcpServers": {
"amplitude": {
"url": "https://amplitude.usefulapi.io/mcp"
}
}
}Puntos de conexión remotos
https://amplitude.usefulapi.io/mcpstreamable-httpQué puede hacer
Inventario de herramientas
Herramientas (12)
🟢amplitude_list_events
List the event types of the project, with whether each is marked inactive. Good first call to find event names for the other tools. Dashboard REST API: GET /api/2/events/list.
Esquema de entrada
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢amplitude_event_segmentation(e, e2, m, n, start, ...)
Count an event (or compare two events) over a date range, optionally segmented and grouped. Metrics: uniques, totals, pct_dau, average, histogram, sums, value_avg. Dashboard REST API: GET /api/2/events/segmentation.
Esquema de entrada
{
"type": "object",
"properties": {
"e": {
"type": "object",
"properties": {
"event_type": {
"type": "string",
"minLength": 1,
"description": "Event name. Custom events: prefix with ce: (for example ce:Play Song). Special: _active, _all, revenue_amount."
},
"filters": {
"description": "Property filters on this event.",
"type": "array",
"items": {
"type": "object",
"properties": {
"subprop_type": {
"type": "string",
"enum": [
"event",
"user"
]
},
"subprop_key": {
"type": "string",
"description": "Property name. Custom user properties: prefix with gp: (for example gp:SignUpDate)."
},
"subprop_op": {
"type": "string",
"enum": [
"is",
"is not",
"contains",
"does not contain",
"less",
"less or equal",
"greater",
"greater or equal",
"set is",
"set is not"
]
},
"subprop_value": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"subprop_type",
"subprop_key",
"subprop_op",
"subprop_value"
]
}
},
"group_by": {
"description": "Up to two properties to group by.",
"maxItems": 2,
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"event",
"user"
]
},
"value": {
"type": "string"
}
},
"required": [
"type",
"value"
]
}
}
},
"required": [
"event_type"
],
"description": "One event: its type, optional property filters and up to two group-by properties."
},
"e2": {
"description": "Optional second event to compare.",
"type": "object",
"properties": {
"event_type": {
"type": "string",
"minLength": 1,
"description": "Event name. Custom events: prefix with ce: (for example ce:Play Song). Special: _active, _all, revenue_amount."
},
"filters": {
"description": "Property filters on this event.",
"type": "array",
"items": {
"type": "object",
"properties": {
"subprop_type": {
"type": "string",
"enum": [
"event",
"user"
]
},
"subprop_key": {
"type": "string",
"description": "Property name. Custom user properties: prefix with gp: (for example gp:SignUpDate)."
},
"subprop_op": {
"type": "string",
"enum": [
"is",
"is not",
"contains",
"does not contain",
"less",
"less or equal",
"greater",
"greater or equal",
"set is",
"set is not"
]
},
"subprop_value": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"subprop_type",
"subprop_key",
"subprop_op",
"subprop_value"
]
}
},
"group_by": {
"description": "Up to two properties to group by.",
"maxItems": 2,
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"event",
"user"
]
},
"value": {
"type": "string"
}
},
"required": [
"type",
"value"
]
}
}
},
"required": [
"event_type"
]
},
"m": {
"description": "Metric (default uniques). histogram, sums and value_avg need a group by on e.",
"type": "string",
"enum": [
"uniques",
"totals",
"pct_dau",
"average",
"histogram",
"sums",
"value_avg"
]
},
"n": {
"description": "Which users to count: any or active (default any).",
"type": "string",
"enum": [
"any",
"active"
]
},
"start": {
"type": "string",
"pattern": "^\\d{8}$",
"description": "First date included, formatted YYYYMMDD (for example 20261001)."
},
"end": {
"type": "string",
"pattern": "^\\d{8}$",
"description": "Last date included, formatted YYYYMMDD (for example 20261031)."
},
"i": {
"description": "Count interval: -300000 = real-time, -3600000 = hourly, 1 = daily, 7 = weekly, 30 = monthly (default 1).",
"anyOf": [
{
"type": "number",
"const": -300000
},
{
"type": "number",
"const": -3600000
},
{
"type": "number",
"const": 1
},
{
"type": "number",
"const": 7
},
{
"type": "number",
"const": 30
}
]
},
"s": {
"description": "Segment definitions: {prop, op, values} for a property, or {type: 'event', op, event_type, ...} for a 'who performed' filter.",
"type": "array",
"items": {
"anyOf": [
{
"type": "object",
"properties": {
"prop": {
"type": "string",
"minLength": 1
},
"op": {
"type": "string",
"minLength": 1
},
"values": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"prop",
"op",
"values"
],
"additionalProperties": {}
},
{
"type": "object",
"properties": {
"op": {
"type": "string",
"minLength": 1
},
"type": {
"type": "string",
"const": "event"
},
"event_type": {
"type": "string",
"minLength": 1
}
},
"required": [
"op",
"type",
"event_type"
],
"additionalProperties": {}
}
]
}
},
"g": {
"description": "Up to two properties to group by.",
"maxItems": 2,
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"e",
"start",
"end"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢amplitude_funnel_analysis(e, start, end, mode, n)
Conversion through an ordered list of events (2 or more steps) over a date range. mode: ordered, unordered or sequential. Dashboard REST API: GET /api/2/funnels.
Esquema de entrada
{
"type": "object",
"properties": {
"e": {
"minItems": 2,
"type": "array",
"items": {
"type": "object",
"properties": {
"event_type": {
"type": "string",
"minLength": 1,
"description": "Event name. Custom events: prefix with ce: (for example ce:Play Song). Special: _active, _all, revenue_amount."
},
"filters": {
"description": "Property filters on this event.",
"type": "array",
"items": {
"type": "object",
"properties": {
"subprop_type": {
"type": "string",
"enum": [
"event",
"user"
]
},
"subprop_key": {
"type": "string",
"description": "Property name. Custom user properties: prefix with gp: (for example gp:SignUpDate)."
},
"subprop_op": {
"type": "string",
"enum": [
"is",
"is not",
"contains",
"does not contain",
"less",
"less or equal",
"greater",
"greater or equal",
"set is",
"set is not"
]
},
"subprop_value": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"subprop_type",
"subprop_key",
"subprop_op",
"subprop_value"
]
}
},
"group_by": {
"description": "Up to two properties to group by.",
"maxItems": 2,
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"event",
"user"
]
},
"value": {
"type": "string"
}
},
"required": [
"type",
"value"
]
}
}
},
"required": [
"event_type"
],
"description": "One event: its type, optional property filters and up to two group-by properties."
},
"description": "The funnel steps, in order: one event per step."
},
"start": {
"type": "string",
"pattern": "^\\d{8}$",
"description": "First date included, formatted YYYYMMDD (for example 20261001)."
},
"end": {
"type": "string",
"pattern": "^\\d{8}$",
"description": "Last date included, formatted YYYYMMDD (for example 20261031)."
},
"mode": {
"description": "Funnel mode (default ordered).",
"type": "string",
"enum": [
"ordered",
"unordered",
"sequential"
]
},
"n": {
"description": "Which users to count: new or active (default active).",
"type": "string",
"enum": [
"new",
"active"
]
}
},
"required": [
"e",
"start",
"end"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢amplitude_retention_analysis(se, re, start, end, rm, ...)
Share of users who return after a start action (for example first use). Use _new or _active as the start, _all or _active as the return. rm: nday, rolling, bracket or nday_or_before. Dashboard REST API: GET /api/2/retention.
Esquema de entrada
{
"type": "object",
"properties": {
"se": {
"anyOf": [
{
"type": "string",
"enum": [
"_new",
"_active"
]
},
{
"type": "object",
"properties": {
"event_type": {
"type": "string",
"minLength": 1,
"description": "Event name. Custom events: prefix with ce: (for example ce:Play Song). Special: _active, _all, revenue_amount."
},
"filters": {
"description": "Property filters on this event.",
"type": "array",
"items": {
"type": "object",
"properties": {
"subprop_type": {
"type": "string",
"enum": [
"event",
"user"
]
},
"subprop_key": {
"type": "string",
"description": "Property name. Custom user properties: prefix with gp: (for example gp:SignUpDate)."
},
"subprop_op": {
"type": "string",
"enum": [
"is",
"is not",
"contains",
"does not contain",
"less",
"less or equal",
"greater",
"greater or equal",
"set is",
"set is not"
]
},
"subprop_value": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"subprop_type",
"subprop_key",
"subprop_op",
"subprop_value"
]
}
},
"group_by": {
"description": "Up to two properties to group by.",
"maxItems": 2,
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"event",
"user"
]
},
"value": {
"type": "string"
}
},
"required": [
"type",
"value"
]
}
}
},
"required": [
"event_type"
],
"description": "One event: its type, optional property filters and up to two group-by properties."
}
],
"description": "Start action: _new (new users), _active (all active users), or one event."
},
"re": {
"anyOf": [
{
"type": "string",
"enum": [
"_all",
"_active"
]
},
{
"type": "object",
"properties": {
"event_type": {
"type": "string",
"minLength": 1,
"description": "Event name. Custom events: prefix with ce: (for example ce:Play Song). Special: _active, _all, revenue_amount."
},
"filters": {
"description": "Property filters on this event.",
"type": "array",
"items": {
"type": "object",
"properties": {
"subprop_type": {
"type": "string",
"enum": [
"event",
"user"
]
},
"subprop_key": {
"type": "string",
"description": "Property name. Custom user properties: prefix with gp: (for example gp:SignUpDate)."
},
"subprop_op": {
"type": "string",
"enum": [
"is",
"is not",
"contains",
"does not contain",
"less",
"less or equal",
"greater",
"greater or equal",
"set is",
"set is not"
]
},
"subprop_value": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"subprop_type",
"subprop_key",
"subprop_op",
"subprop_value"
]
}
},
"group_by": {
"description": "Up to two properties to group by.",
"maxItems": 2,
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"event",
"user"
]
},
"value": {
"type": "string"
}
},
"required": [
"type",
"value"
]
}
}
},
"required": [
"event_type"
],
"description": "One event: its type, optional property filters and up to two group-by properties."
}
],
"description": "Return action: _all (any event), _active (any active event), or one event."
},
"start": {
"type": "string",
"pattern": "^\\d{8}$",
"description": "First date included, formatted YYYYMMDD (for example 20261001)."
},
"end": {
"type": "string",
"pattern": "^\\d{8}$",
"description": "Last date included, formatted YYYYMMDD (for example 20261031)."
},
"rm": {
"description": "Retention type (default nday).",
"type": "string",
"enum": [
"nday",
"rolling",
"bracket",
"nday_or_before"
]
},
"rb": {
"description": "Required when rm is bracket: the day ranges, formatted [[start,end]] (for example [[1,1],[2,7]]).",
"type": "string",
"pattern": "^\\[\\[\\d+,\\d+\\](,\\[\\d+,\\d+\\])*\\]$"
}
},
"required": [
"se",
"re",
"start",
"end"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢amplitude_active_user_counts(start, end, m, i, s, ...)
Number of active or new users per day, week or month over a date range, optionally segmented and grouped by one property. Dashboard REST API: GET /api/2/users.
Esquema de entrada
{
"type": "object",
"properties": {
"start": {
"type": "string",
"pattern": "^\\d{8}$",
"description": "First date included, formatted YYYYMMDD (for example 20261001)."
},
"end": {
"type": "string",
"pattern": "^\\d{8}$",
"description": "Last date included, formatted YYYYMMDD (for example 20261031)."
},
"m": {
"description": "Which users to count: new or active (default active).",
"type": "string",
"enum": [
"new",
"active"
]
},
"i": {
"description": "Count interval: 1 = daily, 7 = weekly, 30 = monthly (default 1).",
"anyOf": [
{
"type": "number",
"const": 1
},
{
"type": "number",
"const": 7
},
{
"type": "number",
"const": 30
}
]
},
"s": {
"description": "Segment definitions: {prop, op, values} for a property, or {type: 'event', op, event_type, ...} for a 'who performed' filter.",
"type": "array",
"items": {
"anyOf": [
{
"type": "object",
"properties": {
"prop": {
"type": "string",
"minLength": 1
},
"op": {
"type": "string",
"minLength": 1
},
"values": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"prop",
"op",
"values"
],
"additionalProperties": {}
},
{
"type": "object",
"properties": {
"op": {
"type": "string",
"minLength": 1
},
"type": {
"type": "string",
"const": "event"
},
"event_type": {
"type": "string",
"minLength": 1
}
},
"required": [
"op",
"type",
"event_type"
],
"additionalProperties": {}
}
]
}
},
"g": {
"description": "Property to group by (for example country or gp:plan).",
"type": "string"
}
},
"required": [
"start",
"end"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢amplitude_session_length_distribution(start, end, timeHistogramConfigBinTimeUnit, timeHistogramConfigBinMin, timeHistogramConfigBinMax, ...)
Number of sessions per length bucket over a date range. Custom buckets: set the time unit (seconds, minutes, hours, days), min, max and size. Dashboard REST API: GET /api/2/sessions/length.
Esquema de entrada
{
"type": "object",
"properties": {
"start": {
"type": "string",
"pattern": "^\\d{8}$",
"description": "First date included, formatted YYYYMMDD (for example 20261001)."
},
"end": {
"type": "string",
"pattern": "^\\d{8}$",
"description": "Last date included, formatted YYYYMMDD (for example 20261031)."
},
"timeHistogramConfigBinTimeUnit": {
"description": "Time unit of the buckets.",
"type": "string",
"enum": [
"seconds",
"minutes",
"hours",
"days"
]
},
"timeHistogramConfigBinMin": {
"description": "Lowest bucket value, in the time unit (for example 0).",
"type": "number"
},
"timeHistogramConfigBinMax": {
"description": "Highest bucket value, in the time unit (for example 600).",
"type": "number"
},
"timeHistogramConfigBinSize": {
"description": "Bucket size, in the time unit (for example 60).",
"type": "number"
}
},
"required": [
"start",
"end"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢amplitude_average_session_length(start, end)
Average session length per day over a date range. Dashboard REST API: GET /api/2/sessions/average.
Esquema de entrada
{
"type": "object",
"properties": {
"start": {
"type": "string",
"pattern": "^\\d{8}$",
"description": "First date included, formatted YYYYMMDD (for example 20261001)."
},
"end": {
"type": "string",
"pattern": "^\\d{8}$",
"description": "Last date included, formatted YYYYMMDD (for example 20261031)."
}
},
"required": [
"start",
"end"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢amplitude_revenue_ltv(m, start, end, i, s, ...)
Revenue per user (ARPU), revenue per paying user (ARPPU), total revenue or paying users over a date range. m: 0 = ARPU, 1 = ARPPU, 2 = total revenue, 3 = paying users. Dashboard REST API: GET /api/2/revenue/ltv.
Esquema de entrada
{
"type": "object",
"properties": {
"m": {
"description": "Metric: 0 ARPU (default), 1 ARPPU, 2 total revenue, 3 paying users.",
"anyOf": [
{
"type": "number",
"const": 0
},
{
"type": "number",
"const": 1
},
{
"type": "number",
"const": 2
},
{
"type": "number",
"const": 3
}
]
},
"start": {
"type": "string",
"pattern": "^\\d{8}$",
"description": "First date included, formatted YYYYMMDD (for example 20261001)."
},
"end": {
"type": "string",
"pattern": "^\\d{8}$",
"description": "Last date included, formatted YYYYMMDD (for example 20261031)."
},
"i": {
"description": "Count interval: 1 = daily, 7 = weekly, 30 = monthly (default 1).",
"anyOf": [
{
"type": "number",
"const": 1
},
{
"type": "number",
"const": 7
},
{
"type": "number",
"const": 30
}
]
},
"s": {
"description": "Segment definitions: {prop, op, values} for a property, or {type: 'event', op, event_type, ...} for a 'who performed' filter.",
"type": "array",
"items": {
"anyOf": [
{
"type": "object",
"properties": {
"prop": {
"type": "string",
"minLength": 1
},
"op": {
"type": "string",
"minLength": 1
},
"values": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"prop",
"op",
"values"
],
"additionalProperties": {}
},
{
"type": "object",
"properties": {
"op": {
"type": "string",
"minLength": 1
},
"type": {
"type": "string",
"const": "event"
},
"event_type": {
"type": "string",
"minLength": 1
}
},
"required": [
"op",
"type",
"event_type"
],
"additionalProperties": {}
}
]
}
},
"g": {
"description": "Property to group by (for example country or gp:plan).",
"type": "string"
}
},
"required": [
"start",
"end"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢amplitude_property_composition(start, end, p)
Breakdown of users by one property (for example country, platform, version or gp:plan) over a date range. Dashboard REST API: GET /api/2/composition.
Esquema de entrada
{
"type": "object",
"properties": {
"start": {
"type": "string",
"pattern": "^\\d{8}$",
"description": "First date included, formatted YYYYMMDD (for example 20261001)."
},
"end": {
"type": "string",
"pattern": "^\\d{8}$",
"description": "Last date included, formatted YYYYMMDD (for example 20261031)."
},
"p": {
"type": "string",
"minLength": 1,
"description": "Property to break down by (for example country, platform, or gp:plan)."
}
},
"required": [
"start",
"end",
"p"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢amplitude_search_users(user)
Find users by Amplitude ID, device ID, user ID, or a user ID prefix. Returns matching user summaries. Dashboard REST API: GET /api/2/usersearch.
Esquema de entrada
{
"type": "object",
"properties": {
"user": {
"type": "string",
"minLength": 1,
"description": "Amplitude ID, device ID, user ID, or a user ID prefix."
}
},
"required": [
"user"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢amplitude_user_activity(user, offset, limit, direction)
Event stream of one user, newest first by default. Use offset and limit to page. Dashboard REST API: GET /api/2/useractivity.
Esquema de entrada
{
"type": "object",
"properties": {
"user": {
"type": "string",
"minLength": 1,
"description": "Amplitude ID of the user (from amplitude_search_users)."
},
"offset": {
"description": "Zero-indexed offset from the most recent event (default 0).",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"limit": {
"description": "Number of events to return, up to 1000 (default 100).",
"type": "integer",
"minimum": 1,
"maximum": 1000
},
"direction": {
"description": "Start from the earliest or the latest event (default latest).",
"type": "string",
"enum": [
"earliest",
"latest"
]
}
},
"required": [
"user"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢amplitude_get_chart_results(chart_id)
Results of a saved chart in the project, by chart ID (the ID in the chart's web address). Dashboard REST API: GET /api/3/chart/:chart_id/query.
Esquema de entrada
{
"type": "object",
"properties": {
"chart_id": {
"type": "string",
"minLength": 1,
"description": "Chart ID from the chart's web address (for example abc123)."
}
},
"required": [
"chart_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}Comunidad
Evidencia