Skip to main content
Google ADK and Klavis Integration - Build AI agents with MCP tools
You can find the complete example code in Klavis GitHub repository here ->

Prerequisites

Before we begin, you’ll need: Google API key and Klavis API key.

Installation

First, install the required packages:

Setup Environment Variables

Step 1 - Create an Agent Project

Run the ADK create command to start a new agent project:
This will create the following project structure:

Step 2 - Configure Agent with Klavis MCP

The agent.py file contains a root_agent definition which is the only required element of an ADK agent. Update your agent.py to integrate Klavis MCP servers:
OAuth Authorization Required: The code above will open browser windows for each service. Click through the OAuth flow to authorize access to your accounts.

Step 3 - Run Your Agent

Launch the web interface to interact with your agent:
This will start a local web server where you can chat with your agent and watch it use the Gmail and Slack MCP tools.
Perfect! You’ve integrated Google ADK with Klavis MCP servers.

Next Steps

Integrations

Explore available MCP servers

API Reference

REST endpoints and schemas

Useful Resources

Happy building! 🚀