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 use either:

  • A project API token from project settings → integrations (scoped to one project)
  • An account API token from project settings → integrations (access to all projects)

With an account token, the MCP can list projects via seline_list_projects and pass a projectId when querying analytics — so questions like "how many visitors did projectX get?" work across your account.

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

Projects:

Data over time:

Counts and totals:

Events and properties:

Funnels:

Visitors: