Ask your stats in plain words #
The MCP server lets an AI assistant read your stats with one of your API keys: "which pages earned the most this week?", "did Google traffic drop since Monday?". It can only read. It cannot change settings, sites or alerts.
Connect Claude Code #
Make a key in Settings, under API keys, then run:
claude mcp add --transport http adlens https://adlens.adlens-trial.workers.dev/mcp --header "Authorization: Bearer adl_YOUR_KEY"Use double quotes, so a key kept in an environment variable is filled in. claude mcp list checks the connection.
Connect Cursor #
Add this to ~/.cursor/mcp.json, with your key in the ADLENS_KEY environment variable, then restart Cursor:
{"mcpServers":{"adlens":{"url":"https://adlens.adlens-trial.workers.dev/mcp","headers":{"Authorization":"Bearer ${env:ADLENS_KEY}"}}}}Any other client that lets you set a URL and an Authorization header works the same way. ChatGPT's connectors sign in with OAuth, which is not offered yet.
What it can do #
list_sites: your sites.get_report: any report the dashboard shows (overview, pages, countries, devices, sources, events, goals, ads, vitals, search, funnel, journeys), for today, 7, 30 or 90 days, with the same filters.compare_periods: a period against the one before, with the change in visitors, pageviews and revenue.
Each call counts toward the key's limit of 600 requests an hour. The numbers are the same as the dashboard's, estimates included.