MCP Server
The Model Context Protocol (MCP) is an open standard that lets AI assistants like Claude or Cursor interact with external tools and services. Seline MCP server allows you to access your analytics data from your favorite AI tools. It is based on the Seline public API and has tools for all of its endpoints. Currently, you can retrieve everything we have at the Dashboard: visit metrics, statistics, revenue data, custom events, and more.
Authentication
MCP server requires authentication using an API token. You can generate an API token in your project settings > integrations.
API tokens are per-project, meaning you'll be able to use them only for the project you generated them for.
Cursor setup
{"mcpServers": {"seline": {"command": "npx","args": ["-y", "@seline-analytics/mcp", "sln_your_api_key"]}}}
Then restart Cursor so it reconnects MCP servers.
Claude Code setup
Run this command:
claude mcp add seline -- npx -y @seline-analytics/mcp sln_your_api_key
Then restart Claude Code.
Codex setup
If your Codex client uses mcpServers JSON config, add:
{"mcpServers": {"seline": {"command": "npx","args": ["-y", "@seline-analytics/mcp", "sln_your_api_key"]}}}
Then restart Codex and confirm the seline_* tools appear.
Tools
seline_get_data->POST /api/v1/dataseline_get_charges->POST /api/v1/chargesseline_get_visit_metrics->POST /api/v1/visit-metricsseline_get_custom_events->POST /api/v1/custom-eventsseline_get_top_visitors->POST /api/v1/stats