Documentation menuMCP clients: Cursor

MCP clients

Connect Cursor to Loogika with MCP

You connect Cursor to Loogika by adding the address https://app.loogika.com/api/mcp and an API key to the mcp.json file of Cursor. The agent in Cursor can then read your reports while you code. It can also set up goals and funnels for a feature you are building.

Last updated .

What do you need before you start?

You need a Loogika API key. API keys are available on the Business and Agency plans. The API getting started page shows where you create one, and Loogika shows a new key one time only.

How do you add the Loogika server to Cursor?

Add the server to one of two files. The file ~/.cursor/mcp.json is global and makes Loogika available in all your projects. The file .cursor/mcp.json inside a project applies to that project alone.

{
  "mcpServers": {
    "loogika": {
      "url": "https://app.loogika.com/api/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}

Replace YOUR_API_KEY with your own key. Cursor sends the key in the Authorization header with every request to Loogika.

Which mcp.json file should hold the key?

Use the global file for a personal key. The global file sits in your home folder and not in the project, so the key stays out of the commits of that project.

A project file needs more care. Do not commit .cursor/mcp.json while it contains a key, because everyone who can read the repository can then use the key. Give each developer a key of their own, with scopes that cover only what the agent needs.

How do you check that Cursor is connected?

Open Cursor Settings, then MCP. The loogika server shows as connected, with its list of tools and a switch that turns it on or off. Next, put a question about your data to the agent, for example:

List my Loogika sites and summarize last week's traffic for each.

The agent answers with the Loogika tools. The MCP overview lists every tool and marks the ones that change or delete data.