Connect Claude Code or your internal dashboard to your store’s Aimerce attribution data.

1. Create an API key

  1. Log in to the Aimerce Dashboard, or select Advanced Tools → Data API & MCP in the left sidebar.
  2. Confirm that the correct store is displayed, then click Enable access.
  3. Enter a key name, such as AimerceTestKey, and select an expiration period (90 days).
  4. Select Include connected Meta / Google ad spend to allow access to available advertising spend and ROAS.
  5. Click Create key, then Copy key. Save it securely—the full key is shown only once.

Each API key can access only the store where it was created.

image.png

2. Connect Claude Code

With Claude Code installed and signed in, add the following configuration to your project’s .mcp.json. If the file already exists, merge this entry into its mcpServers object:

{
  "mcpServers": {
    "aimerce-data": {
      "type": "http",
      "url": "https://aglb.aimerce.ai/data/mcp",
      "headers": {
        "Authorization": "Bearer ${AIMERCE_API_KEY}"
      }
    }
  }
}

In your project terminal, set your API key and start Claude Code:

export AIMERCE_API_KEY='YOUR_AIMERCE_API_KEY'
claude

Replace YOUR_AIMERCE_API_KEY with the key you copied. Inside Claude Code, run /mcp to check the connection and approve the project’s MCP configuration if prompted. This setup uses Claude Code’s supported MCP environment-variable configuration.

3. Query data and build a dashboard with Claude Code

Start with a connection check:

Use Aimerce MCP to confirm the connected store, timezone, and available permissions.

After confirming the store, request data: