Get ready to streamline your development of Model Context Protocol (MCP) servers! Gemini CLI now seamlessly integrates with FastMCP, Python's leading library for building MCP servers. We’re thrilled to announce this integration between two open-source projects that empowers you to effortlessly connect your custom MCP tools and prompts, directly to Gemini CLI!
As of FastMCP v2.12.3, you can now install local STDIO transport MCP servers built with FastMCP using the fastmcp install gemini-cli command.
fastmcp install gemini-cli server.py
This command simplifies the process and makes your FastMCP server's capabilities instantly available and configured within Gemini CLI! It automatically handles the configuration, dependency management, and calls Gemini CLI’s built-in MCP management system (gemini mcp add
). For local server development, this integration offers a convenient way to get started.
MCP servers can drastically improve your Gemini CLI experience by allowing the agent to perform actions and access context it would otherwise not have. FastMCP's Pythonic design, using decorators and type hints, makes creating these components simple and intuitive.
/promptname
). This streamlines interactions and makes commonly used prompts feel native to your terminal environment.Want to try out the integration? It’s easy to get up and running with Gemini CLI and FastMCP.
npm install -g @google/gemini-cli@latest
pip install fastmcp>=2.12.3
server.py
with custom tools and prompts. (example)fastmcp install gemini-cli server.py
/mcp
to verify.For more details and advanced configurations, refer to the official FastMCP integration documentation.
We're excited to see what innovative MCP servers you build and how you leverage them within Gemini CLI!
Do you have feature requests or enhancements you would like to see in FastMCP or Gemini CLI? Both are open-sourced, which means you can open a new issue on FastMCP or Gemini CLI directly on GitHub to let us know what you think.