AI Cloud Architect

Gemini CLI 🤝 FastMCP: Simplifying MCP server development

GoogleHow-to by Jack Wotherspoon and Jeremiah LowinGoogle Developers Blog

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

FastMCP v2.12.3 and later can install local STDIO MCP servers into Gemini CLI with one command, handling configuration and dependencies.

Who it is for

Python developers building MCP tools and prompts that they want to use inside Gemini CLI.

Key points

  • Requires FastMCP v2.12.3 or later and the Gemini CLI npm package.
  • Runs the install command fastmcp install gemini-cli server.py, which calls gemini mcp add.
  • Prompts defined in FastMCP appear as Gemini CLI slash commands.