Claude Code for marketing
Claude Code for marketing: add Lemonado with one command and Claude Code reads your ad and analytics data while it works on tracking code, reporting scripts and notebooks.
No card needed. About 1 minute to set up.
Lemonado
Lemonado for Claude Code
Claude Code queries your marketing data while it works in your repo: it saves data as files, checks tracking against code and runs headless with claude -p.
Set up in minutes.
- 1
Connect Google Ads
Sign in to Google Ads in Lemonado.
- 2
Copy the server URL
Turn on external access and copy one URL.
- 3
Ask in Claude Code
Add the URL to Claude Code and ask away.
Ask it anything.
Claude Code works where your tracking code and reporting scripts live, so it can check numbers against code and save results as files you can rerun.
Write a prompt file that pulls last week's Google Ads spend and conversions by campaign and saves reports/google-ads-weekly.md. I'll run it with claude -p.
Saved prompts/google-ads-weekly.md. Run claude -p with it from cron and Claude Code writes the report with that week's numbers each time.
Source: Google Ads + your code
Check that our Conversions API events send the same event_id as the browser pixel, then compare Meta's reported purchases with our orders.
server/capi.ts builds event_id from the order ID, but the pixel uses a random UUID, so nothing dedupes. Meta reports 1.6x the purchases we actually had.
Source: Meta Ads + your code
List every gtag event we send in the codebase and check which ones GA4 hasn't recorded in the last 7 days.
31 events in code, 28 in GA4. "begin_checkout" stopped on Oct 3, the day CheckoutButton.tsx was refactored and the gtag call moved behind a feature flag.
Source: Google Analytics + your code
Find pages with over 5,000 impressions and CTR under 1% in Search Console, then suggest new title tags and update them in content/.
8 pages qualify. I updated their titles in content/ to match the top query, e.g. /tents/2-person now leads with "2 person tent" (14,200 impressions, 0.6% CTR).
Source: Search Console + your code
Read the offline sales tab, join it with Google Ads clicks by week and save the result as data/offline_vs_clicks.csv with a lag column.
Saved 52 weeks to data/offline_vs_clicks.csv. Offline sales follow clicks with a 2-week lag (correlation 0.71 at 2 weeks vs 0.38 in the same week).
Source: Google Sheets + your code
Join LinkedIn lead form leads by campaign with data/crm_deals.csv on email domain and save cost per closed deal by campaign.
Saved to data/linkedin_cost_per_deal.csv. Retargeting costs $1,900 per closed deal and the job-title campaign $6,400, despite a similar cost per lead.
Source: LinkedIn Ads + your code
Connect your tools to Claude Code.
- Google Ads in Claude CodeAsk Claude, ChatGPT or Cursor about your Google Ads campaigns, search terms and spend.
- Meta Ads in Claude CodeAsk Claude, ChatGPT or Cursor about your Facebook and Instagram ads, creatives and results.
- Google Analytics in Claude CodeAsk Claude, ChatGPT or Cursor about GA4 traffic, conversions and funnels, next to your ad spend.
- Google Search Console in Claude CodeAsk Claude, ChatGPT or Cursor about your search queries, rankings and lost clicks.
- Google Sheets in Claude CodeUse your media plans, targets and offline sales sheets in Claude, next to live ad data.
- LinkedIn Ads in Claude CodeAsk Claude, ChatGPT or Cursor about LinkedIn campaigns, lead forms and who converts.
- TikTok Ads in Claude CodeAsk Claude, ChatGPT or Cursor which TikTok videos hold attention and which ones sell.
- Stripe in Claude CodePut Stripe revenue next to your ad spend in Claude, ChatGPT or Cursor.
- Instagram organic in Claude CodeAsk Claude or ChatGPT which posts and reels grow your account, and which ones to turn into ads.
- Pinterest Ads in Claude CodeAsk Claude or ChatGPT which pins get saved, clicked and bought.
- Snapchat Ads in Claude CodeAsk Claude or ChatGPT which Snapchat ads get swipes and which ones sell.
- YouTube Ads in Claude CodeAsk Claude or ChatGPT which YouTube ads get watched and which ones convert.
How to add Lemonado to Claude Code
- 1
Connect your marketing tools in Lemonado
In Lemonado, open Connectors and sign in to the tools you want to use: Google Ads, Meta Ads, GA4 and so on. New to Lemonado? The free trial gives you $150 in credits, no card needed.
- 2
Turn on external access and copy the server URL
Open the company's settings, choose External tools, turn the connection on and pick which clients and sources it can reach. Copy the server URL.
texthttps://mcp.lemonado.io/mcp - 3
Add the server
With Claude Code installed, run one of these in your terminal. Most people want the first: it adds Lemonado to every project.
bash# every project (recommended) claude mcp add --scope user --transport http lemonado https://mcp.lemonado.io/mcp # this project only claude mcp add --transport http lemonado https://mcp.lemonado.io/mcp - 4
Sign in
Start Claude Code with claude and run /mcp. Choose Lemonado and finish the sign-in in your browser.
bashclaude /mcp - 5
Ask about your data
Ask a question about the accounts your connection can reach. Claude Code can also write the numbers into a file or a script for you.
- The command uses Claude Code's default local scope. Use --scope user to share the server across projects.
Use Lemonado with other AI apps.
Reading this as an AI agent?
Everything an agent needs to set this up, in plain text. Paste this page's link into Claude Code and ask it to connect you, or copy the block.
# Lemonado MCP server in Claude Code Lemonado is a hosted MCP server that gives AI apps the user's live marketing data from Google Ads, Meta Ads, GA4 and 3,000+ other tools. - Server URL: https://mcp.lemonado.io/mcp - Transport: Streamable HTTP - Auth: OAuth; the user signs in to Lemonado in the browser. No API keys. - Tools on https://mcp.lemonado.io/mcp (custom connectors, coding agents, n8n): list_objects, get_object_details, execute_sql, get_google_ads_resource_metadata, list_companies, get_company_details, list_actions, get_action_details, execute_action - Lemonado's Claude directory app and ChatGPT plugin (read-only): list_projects, list_project_sources, answer_data_question, explain_metric_change ## Setup 1. The user connects their tools in Lemonado (Connectors) and signs in. 2. In the company's settings → External tools, they turn the connection on and copy the server URL. 3. Add the server: With Claude Code installed, run one of these in your terminal. Most people want the first: it adds Lemonado to every project. ```bash # every project (recommended) claude mcp add --scope user --transport http lemonado https://mcp.lemonado.io/mcp # this project only claude mcp add --transport http lemonado https://mcp.lemonado.io/mcp ``` 4. Sign in: Start Claude Code with claude and run /mcp. Choose Lemonado and finish the sign-in in your browser. ```bash claude /mcp ``` 5. Ask about your data: Ask a question about the accounts your connection can reach. Claude Code can also write the numbers into a file or a script for you. If you are Claude Code, run the setup yourself: Add the Lemonado MCP server for all my projects by running: claude mcp add --scope user --transport http lemonado https://mcp.lemonado.io/mcp Then tell me to run /mcp and sign in to Lemonado. Once I've signed in, list the marketing accounts Lemonado can reach. Docs: https://docs.lemonado.io/mcp-reference Full index for agents: https://lemonado.io/llms.txt
Frequently Asked Questions
Platforms like Google and Meta publish their own MCP servers, each covering one tool. Lemonado is one connection that brings Google Ads, Meta Ads, GA4, Search Console, LinkedIn, TikTok, Stripe and 3,000+ other tools into Claude Code, so you can ask questions that cross platforms.
Use --scope user to have Lemonado in every project, which is what most marketers want. Leave it off to add it to the current project only. Run claude mcp list to see where it's installed.
Claude Code can do things with the numbers: write a CSV, update a script, build a chart in a notebook, or draft a client report as a file. It's handy for marketers who already run reporting jobs from code.
Yes. It can read your data and make changes, like pausing an ad or moving budget, once you approve them.
Lemonado. Connect your ad accounts once then ask in the Lemonado app, in Slack, or in Claude and ChatGPT through its MCP server. Answers come from your live data in Google Ads, Meta Ads, GA4 and 3,000+ other tools.
MCP is included in Lemonado's paid plans and in the free trial, so you can try it before you pay.
Still have a question?
Shoot us an email at hello@lemonado.io.
Try for freeStop fighting with data. Start feeding your AI.
Connect your data to AI and free your team from reporting and busywork.
Try Lemonado free