Google ADK Integration
How to integrate Google ADK with Aluvia's MCP server for enhanced AI agent capabilities.
Setup Guide
1
Get your Aluvia Token
- Go to the Aluvia Dashboard
- Navigate to the Credentials page
- Copy your Aluvia Token (it looks like:
2dceb1aa0***************************)
2
Install required packages
pip install google-adk
3
Configure your MCP server
from google.adk.agents import Agent
from google.adk.tools.mcp_tool.mcp_session_manager import StreamableHTTPServerParams
from google.adk.tools.mcp_tool.mcp_toolset import MCPToolset
ALUVIA_TOKEN = "YOUR_ALUVIA_TOKEN"
root_agent = Agent(
model="gemini-2.5-pro",
name="aluvia_connectivity_agent",
instruction="""You help users manage their Aluvia connectivity credentials.
You can list, create, test, update, and delete credentials,
and also retrieve usage information when needed.""",
tools=[
MCPToolset(
connection_params=StreamableHTTPServerParams(
url="https://mcp.aluvia.io",
headers={
"Authorization": f"Bearer {ALUVIA_TOKEN}"
}
),
)
],
)
4
Set up environment variables (optional)
Store your token securely:
import os
ALUVIA_TOKEN = os.getenv("ALUVIA_TOKEN")
Create a .env file:
ALUVIA_TOKEN=your_aluvia_token_here
5
Test it works
- Replace
YOUR_ALUVIA_TOKENwith your actual Aluvia Token - Run your Google ADK script
- You should see the agent accessing connectivity credential tools and returning results