Lovable builds your app. anacraft gives you the numbers — who is visiting, what they look at, where they come from. Add GA4 to your Lovable project in one prompt, then ask your AI assistant anything. The data is real, the answers are instant, and you never leave the conversation.
You described an app, Lovable built it, and it is live. Now you need to know if anyone showed up. The GA4 console works, but it is a different tab, a different login, and a different language from where you are already working.
anacraft is a CLI that runs on your machine. It reads your GA4 data and serves it to any MCP-compatible AI client — Claude, ChatGPT, Cursor, VS Code. One install, one sign-in, and your assistant has the numbers.
Open your Lovable project and tell the agent:
Lovable will create a GA4 property and add the gtag snippet.
You get a G-XXXXXXX measurement ID back. If you
prefer to do it yourself, ask Lovable for the
index.html and paste the tag into
<head>.
Skip to step 2. If you set up analytics through the Google Analytics console instead of Lovable, you already have what you need.
One command downloads the binary. macOS, Linux, Windows.
This gives you the craft command. It is a single
binary with no dependencies — uninstall by deleting it.
Sign in with your Google account, then point anacraft at the GA4 property Lovable created.
craft props lists every GA4 property your account
can see. Pick the one Lovable made and set it as default with
craft use <id>.
anacraft speaks MCP over stdio — your client spawns it as a child process. No port, no server to run, no config file to babysit. The easiest way:
Or add it manually to your client's MCP config:
craft mcp --install)Restart the client after saving. The tools appear in your assistant's tool list automatically.
craft mcp --demo serves synthetic data — no
Google account, no subscription. It is the fastest way to
see the tools work. Live data requires an
Elite plan
($9.99/mo).
Open Claude, ChatGPT, or Cursor and ask about your site. The assistant reads live GA4 data and answers with real numbers.
anacraft exposes these tools to your AI client. All are read-only. All carry the date window they cover. All work with the property you configured.
Users, sessions, page views, key events, bounce rate, and session duration — with deltas and a daily trend. The "how are we doing" call.
Who is on the site right now, by country. Realtime, polled every 10 seconds.
Most-visited pages ranked by views.
Events ranked by count, with the previous period for comparison.
Source / medium pairs ranked by sessions.
Users by country, ranked.
Filter pages or events by a substring — "/blog", "purchase", "signup".
Switch between GA4 properties without leaving the conversation.
Each Lovable project gets its own GA4 property. anacraft reads all of them — switch between properties by name or ID without restarting anything.
anacraft is not just an MCP server. Run craft dash
in any terminal for a full-screen, live-updating dashboard with
ore-textured bars, sparklines, and achievement toasts when the
numbers move.
Install anacraft, connect your Lovable app's GA4 property, and ask your assistant anything about your traffic.