# Livesession — how to use (mcp.ai)

Connect your Livesession account and use 1 tools for analytics straight from your AI agent. Connect with your own API key. LiveSession is a session replay and user behavior analytics tool that helps you understand how users interact with your website.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_livesession?ms=1787291280000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `livesession_list_sessions`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/livesession`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/livesession/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/livesession/list/sessions` — Tool to list live sessions. Use when you need paginated session data filtered by criteria after authentication.
  - body: { page?: integer, size?: integer }

## Example prompts
- "What can I do in Livesession?"
- "Show me a summary of my Livesession account"

## More
- Page: https://mcp.ai/livesession
- Agent spec (llms.txt): https://mcp.ai/livesession/llms.txt
- Postman collection: https://mcp.ai/livesession/postman.json
