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.

Hosted MCP

ChatGPT, Claude, and other remote MCP clients connect to:

https://api.seline.com/mcp
Click anywhere to copy

Sign in with your Seline account when the assistant asks you to connect. Access is read-only across every project on the account. Use seline_list_projects to get a projectId, then pass it on other tools.

Local MCP

Cursor, Claude Code, and Codex can also run the local stdio server with 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.

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: