Skip to content

TypeScript MCP server that exposes WireLog as native tools for AI agents. Uses stdio transport.

GitHub: github.com/wirelogai/wirelog-mcp Package: @wirelogai/mcp on npm

Install

Terminal window
npm install -g @wirelogai/mcp

Or run without installing:

Terminal window
npx @wirelogai/mcp

Configuration

VariableRequiredDefaultDescription
WIRELOG_API_KEYYessk_ or aat_ key with query + track scope
WIRELOG_HOSTNohttps://api.wirelog.aiAPI base URL

Claude Desktop setup

Add to claude_desktop_config.json:

{
"mcpServers": {
"wirelog": {
"command": "npx",
"args": ["@wirelogai/mcp"],
"env": {
"WIRELOG_API_KEY": "sk_YOUR_SECRET_KEY"
}
}
}
}

Restart Claude Desktop. The four WireLog tools appear in the tool list.

Tools

wirelog_query

Run a pipe DSL query. Returns Markdown by default.

ParameterTypeRequiredDescription
qstringYesPipe DSL query string
format"llm" | "json" | "csv"NoOutput format. Default "llm" (Markdown).
limitnumberNoMax rows. Default 100, max 10000.
Example: {"q": "signup | last 30d | count by day", "format": "llm"}

wirelog_track

Track an analytics event.

ParameterTypeRequiredDescription
event_typestringYesEvent name
user_idstringNoUser identifier
device_idstringNoDevice identifier
event_propertiesobjectNoArbitrary event properties
user_propertiesobjectNoUser properties sent with the event

wirelog_identify

Bind a device to a user and/or set profile properties.

ParameterTypeRequiredDescription
user_idstringYesUser identifier
device_idstringNoDevice to bind (recommended for stitching)
user_propertiesobjectNoFlat key-value properties (behaves like $set)
user_property_opsobjectNoGranular ops: $set, $set_once, $add, $unset

wirelog_list_events

Discover tracked event types. Takes no parameters. Runs:

* | last 30d | count by event_type | top 50

Returns a Markdown table of event names and counts.

Usage pattern

The agent should call wirelog_list_events first to discover what events exist, then write targeted queries with wirelog_query. Do not guess event names.

Agent: wirelog_list_events
-> | event_type | count |
|-------------|-------|
| page_view | 12340 |
| signup | 890 |
| purchase | 210 |
Agent: wirelog_query {"q": "funnel signup -> purchase | last 30d"}
-> | step | count | rate |
|----------|-------|--------|
| signup | 890 | 100.0% |
| purchase | 210 | 23.6% |

Next steps