Signups are closed. We're building something great. Talk soon.

MCP + CLI

Connect sessionvision to any MCP-compatible AI assistant. Query your analytics data, explore your schema, and run analyses directly from tools like Claude Code.

Setup

Add sessionvision as an MCP server with a single command:

claude mcp add --transport http sessionvision https://app.sessionvision.com/api/v1/mcp

On first use, an OAuth 2.0 PKCE flow will open in your browser to authenticate. Tokens are managed automatically after the initial authorization.

Available Tools

ToolDescription
queryExecute read-only SQL against ClickHouse
get_schemaGet database schema, tables, and columns
list_eventsList recent events with filters
get_event_definitionsGet all unique event names and counts
get_property_definitionsGet all property names used in events

Resources

URIDescription
sessionvision://schemaFull database schema resource

OAuth Scopes

ScopeDescription
mcp:query:readExecute read-only queries
mcp:events:readList and retrieve events
mcp:persons:readList and retrieve persons
mcp:sessions:readList and retrieve sessions
mcp:insights:readRun trends and funnel analyses
mcp:schema:readRead database schema
mcp:analytics:readBundle scope (all read operations)

Example Usage

Once connected, you can ask your AI assistant questions like:

# In Claude Code or any MCP-compatible tool:

"How many unique users visited the pricing page this week?"
"What are the top 10 most common events?"
"Show me the schema for the events table"
"List all events from user_123 in the last 24 hours"

The MCP endpoint uses JSON-RPC 2.0 over HTTP POST. It supports the standard MCP methods: initialize, tools/list, tools/call, resources/list, resources/read, and ping.