Connect to Grok Bot
Paste this into Grok Bot. It connects the Agent Analytics MCP server and pauses once for your sign-in.
Connect the Agent Analytics MCP server at https://mcp.agentanalytics.sh/mcp. When it asks me to sign in, wait for me. Then list my Agent Analytics projects and show me a 7 day overview for my main one.Grok Bot adds the server as a custom connector. When it first uses an Agent Analytics tool, it shows a connect card. Approve the Agent Analytics sign-in when Grok Bot asks, using the Google or GitHub identity that owns your projects. After you approve, Grok Bot can read your projects right away. No API key is needed.
Before you connect
Section titled “Before you connect”- An Agent Analytics account at app.agentanalytics.sh
- The Grok Bot desktop app
- The Google or GitHub identity that owns your Agent Analytics projects
Agent Analytics is not listed in the Grok Bot Connect Apps catalog. Grok Bot can connect to any remote MCP server by URL, so ask for it in chat as shown above.
Projects need real events before analytics can answer product questions. For a new project, follow Your first project and define events for the goals you want to measure.
Optional: follow-up prompts
Section titled “Optional: follow-up prompts”Which sources bring visitors who complete my activation event?Where do sessions drop off before signup?Where do users drop off between signup and purchase?
Replace project names with ones from the returned list. Available tools and analyses depend on account permissions and plan.
Optional: set up tracking with the CLI
Section titled “Optional: set up tracking with the CLI”Grok Bot also has its own computer with a shell, so it can run the official Agent Analytics CLI when you want it to set up tracking in a repo. Use this when Grok Bot is working on the project’s code:
Use the official Agent Analytics CLI (`npx --yes @agent-analytics/cli@0.5.41`) to set up tracking for this project. Start detached login, send me the approval link, and wait. I will sign in with Google or GitHub and reply with the finish code. Then find or create the matching project, ask me to confirm the main goal, add only the first events tied to that goal, and show me the first event arriving.The raw CLI order behind that prompt:
npx --yes @agent-analytics/cli@0.5.41 login --detachednpx --yes @agent-analytics/cli@0.5.41 create my-site --domain https://mysite.comnpx --yes @agent-analytics/cli@0.5.41 events my-site --event <first_useful_event> --days 7 --limit 20login --detached prints an approval URL and a follow-up login --auth-request ... --exchange-code ... command. Grok Bot sends you the link, you sign in, and you reply with the finish code so it can finish login. For command details, see the CLI reference.
Reference: connection details
Section titled “Reference: connection details”- MCP server URL:
https://mcp.agentanalytics.sh/mcp - This is the same hosted MCP server used by Claude Desktop / Cowork and ChatGPT.
- You do not need to pass an
X-API-Keyonce the sign-in succeeds. - The MCP connection provides analytics and supported project or experiment operations. Review and authorize requested write actions before they run.
Troubleshooting
Section titled “Troubleshooting”- No sign-in card: ask Grok Bot to list your Agent Analytics projects. The connect card appears when it first uses an Agent Analytics tool.
- No projects: confirm that you approved the sign-in with the Agent Analytics account that owns your projects. If the account is new, create a project and verify its first meaningful event.
- Plan restriction: use an available analysis or review your plan. Another connection method does not bypass account permissions or limits.
