<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Samples on MCP Toolbox for Databases</title><link>/integrations/alloydb/samples/</link><description>Recent content in Samples on MCP Toolbox for Databases</description><generator>Hugo</generator><language>en-us</language><atom:link href="/integrations/alloydb/samples/index.xml" rel="self" type="application/rss+xml"/><item><title>Quickstart (MCP with AlloyDB)</title><link>/integrations/alloydb/samples/mcp_quickstart/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/integrations/alloydb/samples/mcp_quickstart/</guid><description>&lt;h2 id="overview"&gt;Overview&lt;/h2&gt;
&lt;p&gt;&lt;a href="https://modelcontextprotocol.io"&gt;Model Context Protocol&lt;/a&gt; is an open protocol
that standardizes how applications provide context to LLMs. Check out this page
on how to &lt;a href="/documentation/connect-to/mcp-client/"&gt;connect to Toolbox via MCP&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id="before-you-begin"&gt;Before you begin&lt;/h2&gt;
&lt;p&gt;This guide assumes you have already done the following:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href="https://cloud.google.com/alloydb/docs/cluster-create"&gt;Create a AlloyDB cluster and
instance&lt;/a&gt; with a
database and user.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Connect to the instance using &lt;a href="https://cloud.google.com/alloydb/docs/manage-data-using-studio"&gt;AlloyDB
Studio&lt;/a&gt;,
&lt;a href="https://www.postgresql.org/download/"&gt;&lt;code&gt;psql&lt;/code&gt; command-line tool&lt;/a&gt;, or any
other PostgreSQL client.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Enable the &lt;code&gt;pgvector&lt;/code&gt; and &lt;code&gt;google_ml_integration&lt;/code&gt;
&lt;a href="https://cloud.google.com/alloydb/docs/ai"&gt;extensions&lt;/a&gt;. These are required
for Semantic Search and Natural Language to SQL tools. Run the following SQL
commands:&lt;/p&gt;</description></item><item><title>Getting started with alloydb-ai-nl tool</title><link>/integrations/alloydb/samples/ai-nl/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/integrations/alloydb/samples/ai-nl/</guid><description>&lt;div class="notebook-markdown"&gt;
 
 
 &lt;p&gt;&lt;a href="https://colab.research.google.com/github/googleapis/mcp-toolbox/blob/main/docs/en/samples/alloydb/ai-nl/alloydb_ai_nl.ipynb"&gt;&lt;img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In
Colab"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h1 id="objective"&gt;Objective&lt;/h1&gt;
&lt;p&gt;In this notebook, we will be using the &lt;a href="https://mcp-toolbox.dev/integrations/alloydb/tools/alloydb-ai-nl/"&gt;AlloyDB AI NL
tool&lt;/a&gt;
to generate and execute SQL queries on AlloyDB databases. We will start by
setting up an AlloyDB database and then connecting to it using &lt;a href="https://github.com/googleapis/mcp-toolbox"&gt;MCP
Toolbox&lt;/a&gt; and &lt;a href="https://google.github.io/adk-docs/"&gt;ADK&lt;/a&gt;. This allows us to leverage AlloyDB
NL to SQL capabilities in agentic applications.&lt;/p&gt;
&lt;p&gt;For detailed information on the AlloyDB capability, please see &lt;a href="https://cloud.google.com/alloydb/docs/ai/natural-language-overview"&gt;AlloyDB AI
Natural Language Overview&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id="before-you-begin"&gt;Before you Begin&lt;/h2&gt;
&lt;p&gt;Complete the before you begin setup from &lt;a href="https://cloud.google.com/alloydb/docs/ai/use-natural-language-generate-sql-queries#before-you-begin"&gt;Use AlloyDB AI natural language to generate SQL&lt;/a&gt;.&lt;/p&gt;</description></item></channel></rss>