seline-logo
Public API
Endpoints
Data over time
Visits and pageviews
Charges
Counts and totals
Stats
Metrics
Custom events
Ingest data
Events

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"]
}
}
}
Click anywhere to copy

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
Click anywhere to copy

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"]
}
}
}
Click anywhere to copy

Then restart Codex and confirm the seline_* tools appear.

Tools

  • seline_get_data -> POST /api/v1/data
  • seline_get_charges -> POST /api/v1/charges
  • seline_get_visit_metrics -> POST /api/v1/visit-metrics
  • seline_get_custom_events -> POST /api/v1/custom-events
  • seline_get_top_visitors -> POST /api/v1/stats