Skip to content

MCP server

Pulsark runs a remote Model Context Protocol server, so an AI assistant can look at your numbers directly — with the same metric definitions, tenant isolation and audit log as the REST API. All tools are read-only.

URL https://mcp.pulsark.org/mcp
Transport Streamable HTTP (stateless, JSON responses)
Auth Authorization: Bearer dak_… — a platform key with metrics:read

Create a dedicated key for each assistant with only metrics:read, optionally limited to one project:

Terminal window
curl -X POST -H "Authorization: Bearer $PULSARK_ADMIN_KEY" -H "Content-Type: application/json" \
-d '{"name": "claude-code", "scopes": ["metrics:read"]}' https://api.pulsark.org/api/v1/keys
Terminal window
claude mcp add --transport http pulsark https://mcp.pulsark.org/mcp \
--header "Authorization: Bearer $PULSARK_KEY"
~/.cursor/mcp.json
{
"mcpServers": {
"pulsark": {
"url": "https://mcp.pulsark.org/mcp",
"headers": { "Authorization": "Bearer ${env:PULSARK_KEY}" }
}
}
}
.vscode/mcp.json
{
"inputs": [{ "type": "promptString", "id": "pulsark-key", "description": "Pulsark key (metrics:read)", "password": true }],
"servers": {
"pulsark": {
"type": "http",
"url": "https://mcp.pulsark.org/mcp",
"headers": { "Authorization": "Bearer ${input:pulsark-key}" }
}
}
}

Claude Desktop and other clients without custom headers

Section titled “Claude Desktop and other clients without custom headers”

Use the mcp-remote bridge:

claude_desktop_config.json
{
"mcpServers": {
"pulsark": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://mcp.pulsark.org/mcp", "--header", "Authorization:${PULSARK_AUTH}"],
"env": { "PULSARK_AUTH": "Bearer dak_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" }
}
}
}

OAuth sign-in (so you can add Pulsark as a connector without handling keys) is planned.

Tool Arguments Returns
list_apps — Apps this key can see: app_id, name, package, profile, status
list_metrics — The metric catalog with units, caveats, dimensions and definition_url
query_metric metric, app_ids?, from?, to?, group_by?, filters? Daily rows, data_freshness, timezone, definition_url
compare_periods metric, from, to, app_ids?, previous_from?, previous_to? Mean daily value of both periods, change_pct, both series

Every result carries the query range, data_freshness and a link to the metric definition, so an assistant can cite where a number came from. The server also sends instructions telling the model that users are installations, days are Singapore days and revenue is estimated.

Which of my apps had the biggest drop in D1 retention last week compared with the week before?

Show estimated ARPDAU by country for the last 14 days and explain what’s driving the change.

Is today’s data complete yet?

Terminal window
curl -s https://mcp.pulsark.org/mcp \
-H "Authorization: Bearer $PULSARK_KEY" -H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"query_metric","arguments":{"metric":"dau"}}}'