Call FastMCP servers from the Google Gemini SDK
list_tools
endpoint and exposes those functions to the AI. Other MCP features like resources and prompts are not currently supported.GEMINI_API_KEY
environment variable. Consult the Gemini SDK documentation for more information.
stdio
transport. Because weβre using a FastMCP client, you can also connect to any local or remote MCP server, using any transport or auth method supported by FastMCP, simply by changing the client configuration.
For example, to connect to a remote, authenticated server, you can use the following client: