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.

Coding agents can also use it to set up Seline on a new website: create a project, link it to your Pro subscription, and install the tracking script right in your codebase.

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. The assistant gets access to every project on the account. All tools are read-only except seline_create_project. Use seline_list_projects to get a projectId, then pass it on other tools.

ChatGPT users can install the Seline plugin in one click.

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. Creating projects also requires an account token.

Set up Seline with an agent

Connect the MCP, then ask your agent something like "add Seline analytics to this site". The agent will:

  1. Read seline_get_guidance to learn how Seline and its tools work. The same text is available as the guidance endpoint.
  2. List your projects and ask you which Pro project the new site should share a subscription with. One Pro plan covers unlimited websites.
  3. Create the project with seline_create_project and get its project token.
  4. Install the tracking script in your codebase using that token.

New projects must be linked to a project with an active Pro subscription. If you don't have one yet, start a plan in the dashboard first.

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

Guidance:

Projects:

Data over time:

Counts and totals:

Events and properties:

Funnels:

Visitors: