Skip to content

Model Context Protocol (MCP)

Supported in ADKPythonTypeScriptGoJava

The Model Context Protocol (MCP) is an open standard designed to standardize how Large Language Models (LLMs) like Gemini and Claude communicate with external applications, data sources, and tools. Think of it as a universal connection mechanism that simplifies how LLMs obtain context, execute actions, and interact with various systems.

MCP tools for ADK

For a list of pre-built MCP tools for ADK, see Tools and Integrations.

How does MCP work?

MCP follows a client-server architecture, defining how data (resources), interactive templates (prompts), and actionable functions (tools) are exposed by an MCP server and consumed by an MCP client (which could be an LLM host application or an AI agent).

MCP Tools in ADK

ADK helps you both use and consume MCP tools in your agents, whether you're trying to build a tool to call an MCP service, or exposing an MCP server for other developers or agents to interact with your tools.

See Tools and Integrations for pre-built MCP tools you can use in your agents. Refer to the MCP Tools documentation for code samples and design patterns that help you use ADK together with MCP servers, including:

  • Using Existing MCP Servers within ADK: An ADK agent can act as an MCP client and use tools provided by external MCP servers.
  • Exposing ADK Tools via an MCP Server: How to build an MCP server that wraps ADK tools, making them accessible to any MCP client.

ADK Agent and FastMCP server

ADK uses FastMCP to handle all the complex MCP protocol details and server management, so you can focus on building great tools. It's designed to be high-level and Pythonic; in most cases, decorating a function is all you need.

Refer to the MCP Tools documentation on how you can use ADK together with the FastMCP server running on Cloud Run.

MCP Servers for Google Cloud Genmedia

MCP Tools for Genmedia Services is a set of open-source MCP servers that enable you to integrate Google Cloud generative media services—such as Imagen, Veo, Chirp 3 HD voices, and Lyria—into your AI applications.

Agent Development Kit (ADK) and Genkit provide built-in support for these MCP tools, allowing your AI agents to effectively orchestrate generative media workflows. For implementation guidance, refer to the ADK example agent and the Genkit example.