How to Use the Google Ads MCP in LlamaIndex
Index live Google Ads metrics directly into your LlamaIndex vector stores for hallucination-free search.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Google Ads MCP to LlamaIndex
Create your Vinkius account to connect Google Ads to LlamaIndex and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Index Google Ads metrics with LlamaIndex
The `get_keyword_performance` tool extracts Google Ads search term metrics and loads them directly into your LlamaIndex document store. This LlamaIndex integration allows your RAG pipeline to query live Google Ads performance data instead of relying on outdated spreadsheets. Your LlamaIndex agent searches this index to answer complex questions about your current Google Ads search engine marketing. You build a unified LlamaIndex knowledge base by merging these live Google Ads metrics with your offline marketing strategy PDFs. When you query the LlamaIndex document store, the framework pulls the latest Google Ads keyword statistics to ground its answers. This LlamaIndex process eliminates hallucinations and keeps your strategic Google Ads planning tied to actual market performance.
Query campaign status semantically
The `get_change_status` tool tracks recent Google Ads modifications and indexes them for LlamaIndex semantic search. LlamaIndex uses this Google Ads data to let you ask natural language questions about who changed what in your campaigns. You get instant clarity on recent Google Ads optimizations without digging through change logs, thanks to LlamaIndex indexing. By using this Google Ads MCP Server, your LlamaIndex agent correlates performance dips with specific account changes. It searches the indexed LlamaIndex history to find the exact day a Google Ads ad group was paused or a budget was modified. This historical LlamaIndex context makes debugging Google Ads campaign performance incredibly fast.
Ground RAG agents in actual budget data
The `list_budgets` tool pulls current Google Ads spending limits and campaign caps directly into your LlamaIndex query engine. Your LlamaIndex agent uses this live Google Ads financial data to verify if your current run rate matches your quarterly marketing goals. It prevents the LLM from guessing your remaining Google Ads spend inside your LlamaIndex pipeline. You can filter these Google Ads tools using the LlamaIndex allowed_tools parameter to keep your agent focused only on financial metrics. Combining this with `get_campaign_details` gives your LlamaIndex pipeline a complete picture of your Google Ads account configuration. Your Google Ads reports remain accurate because your LlamaIndex RAG pipeline relies on structured, real-time API queries.
Set up Google Ads MCP in LlamaIndex
Prerequisites
- Python 3.10+ installed
-
llama-index-tools-mcppackage - Active Vinkius subscription with a valid endpoint token
- 1
Install dependencies
Run
pip install llama-index-tools-mcp llama-index-llms-openai. The MCP tools package providesBasicMCPClientandMcpToolSpec. - 2
Connect with BasicMCPClient
Point
BasicMCPClientto your Vinkius endpoint URL. Replace[YOUR_TOKEN_HERE]with your token from cloud.vinkius.com. Supports SSE and Streamable HTTP transports. - 3
Convert to LlamaIndex tools
Call
mcp_tool_spec.to_tool_list_async()to convert all Google Ads MCP tools into nativeFunctionToolobjects that any LlamaIndex agent can use. - 4
Run with any LLM
Create a
FunctionAgentwith the tools and your preferred LLM. SwapOpenAIforAnthropic,Gemini, or any LlamaIndex-supported provider.
from llama_index.tools.mcp import BasicMCPClient, McpToolSpec
from llama_index.core.agent.workflow import FunctionAgent
from llama_index.llms.openai import OpenAI
# Connect to the MCP
mcp_client = BasicMCPClient(
"https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
)
mcp_tool_spec = McpToolSpec(client=mcp_client)
# Convert MCP tools to LlamaIndex tools
tools = await mcp_tool_spec.to_tool_list_async()
# Create and run the agent
agent = FunctionAgent(
tools=tools,
llm=OpenAI(model="gpt-4o"),
system_prompt="You have access to Google Ads tools.",
)
response = await agent.run("List recent Google Ads data") Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by Google Ads. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about Google Ads MCP in LlamaIndex
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Google Ads MCP today
We host it, we monitor it, we maintain it. You just paste one token.