The short answer
Open the DuckDive install link for VS Code. VS Code opens with the server details filled in. Install it, then continue with Google when asked. After that your editor can read GA4, Search Console, Google Ads, Local Services Ads, Yext and Local Falcon data for the websites your DuckDive account can see.
- The link fills in the name
duckdiveand the URLhttps://api.duckdive.ai/mcp. - There is no API key or token to paste; sign-in is OAuth.
- The install link needs VS Code on your computer to handle the redirect.
Set up DuckDive in VS Code
You do not need a DuckDive account first. Connecting opens a DuckDive page, and Continue with Google creates your account. DuckDive is free for 2 sites.
-
Open the install link
Select Add to VS Code. Your browser hands the request to VS Code.
-
Review and install
VS Code shows DuckDive with an HTTP server at the URL above. Install it.
-
Continue with Google
When VS Code asks you to sign in, a DuckDive page opens. Continue with Google. New users get an account from that one click.
-
Ask a first question
Open a chat in VS Code and ask which DuckDive websites it can see. If it lists your sites, you are connected.
Prefer to type it in
If the link does not open VS Code, add a remote MCP server by hand using the URL above and check the connector docs. Menu names change between versions, so look for MCP in VS Code.
Already have DuckDive and want your agent to do the rest? Paste the setup prompt into it and it adds your site and links your Google data. The walkthrough of agent self-setup shows each step.
Paste into your agentSet up DuckDive for my website. Follow https://analytics.duckdive.ai/agents.md
Ask your agent: four first questions
Each prompt below names the DuckDive tools VS Code should call, so you can check it is reading your data and not guessing. Data tools use fixed windows of 7, 14, 30 and 90 days, 6 months and 12 months.
Ask your agentWhich websites can you see in DuckDive? For each one, tell me whether Google Analytics 4 and Search Console have finished importing.
Tools it calls list_websites get_sync_status
Ask your agentHow did organic traffic to my site change over the last 30 days compared with the 30 days before? Break it down by channel.
Tools it calls list_websites get_ga4_channels
Ask your agentWhat are my top Google search queries over the last 90 days, and which pages earn the most clicks?
Tools it calls get_search_console_keywords get_search_console_pages
Ask your agentWhich landing pages in the last 90 days had the most sessions and the lowest conversions? Then open the matching files in this project.
Tools it calls list_websites get_ga4_landing_pages
Permissions: read-only or allow actions
DuckDive shows a permission page when you connect. The choice is yours.
- Read-only. Leave actions off. The agent can list your websites, check import status and read GA4, Search Console, Google Ads, Local Services Ads, Yext and Local Falcon summaries. Anyone who is not an admin gets this by default.
- Allow actions. Admin accounts can also let the agent add a website, connect its sources, queue a data refresh (at most once per website every 15 minutes) and create a scheduled report. Reports are always emailed to your own account address.
- What it can never do. Delete data, connect or disconnect your Google account, or send email to anyone but you.
The agent sees only the websites your DuckDive account can already see, with your role's permissions. Sign-in uses OAuth, so VS Code receives a DuckDive access token and never your password. Disconnect any time in DuckDive under AI Connectors.
Troubleshooting
- The link does nothing: make sure VS Code is installed, then try again, or add the server by hand with the URL above.
- Sign-in loops or fails: sign in to DuckDive in the same browser first, then connect again.
- No websites found: ask the agent to help you set up DuckDive, or add a website after signing in to DuckDive.
- Tools missing: check that DuckDive is enabled in VS Code and that you finished the Google sign-in.
Still stuck? See the connector docs for every app's steps.
What to expect: limits
- History. DuckDive holds the last 12 months of data at most.
- Fixed ranges. 7, 14, 30 and 90 days, 6 months and 12 months. No custom dates.
- Imported data. Answers come from data DuckDive has imported. Ask for the data sync status if numbers look old or empty.
- Row limits. Landing page results top out at 100 pages ranked by sessions, so a missing page had fewer sessions than the last one listed.
- Read, not edit. DuckDive does not change GA4 settings, add tracking or edit your ads.
Questions about VS Code and DuckDive
Is there a one-click install for VS Code?
Yes. The Add to VS Code link on this page fills in the name and URL, so you only install it and continue with Google.
Does DuckDive see my code?
No. DuckDive only answers the tool calls your editor makes, such as a request for landing pages. Reading files happens in VS Code.
Can VS Code change anything in my accounts?
Reading is always available. Actions such as adding a website need an admin account and your approval when you connect. It cannot delete data or email anyone but you.
What does it cost?
DuckDive is free for 2 sites. Check your editor's AI features for their own limits.
How do I remove it?
Remove the server in VS Code, or disconnect it in DuckDive under AI Connectors. Access stops immediately.
Bring your traffic data into the editor
Sign in with Google once and add DuckDive to VS Code from one link.
Free for 2 sites · No credit card
Last reviewed . VS Code and Microsoft are named to describe compatibility only; this page is not endorsed by Microsoft.
