MassGen v0.0.15 introduces the Model Context Protocol (MCP) integration for Gemini agents, enabling seamless access to external tools and services. This case study demonstrates the first implementation of MCP in MassGen through a practical learning content generation task using Notion API.
:depth: 3
:local:
### For Local MCP Servers (stdio):
@notionhq/notion-mcp-server)NOTION_TOKEN, DISCORD_TOKEN, etc.)### For Remote MCP Servers (streamable-http):
### For All Deployments:
mcp_servers section to your agent’s backend configuration (see Configuration File
Format)For general MCP setup in MassGen architecture:
“Generate and refine a structured Todo list for learning about LLM multi-agent systems, complete with exciting objectives and fun activities. Each time you have a new version, create a new Notion page with a title and the current date and time (including hours, minutes, seconds, and milliseconds) to store the list. Then, verify that you can access the page and read back the content. Create this page as a subpage under an existing notion page called ‘LLM Agent Research (x)’, where x is either 1 or 2 depending on which you have access to.”
Prior to v0.0.15, Gemini agents would use a standard multi-agent configuration like massgen/configs/basic/multi/two_agents_gemini.yaml without any MCP server configuration.
massgen --config @examples/basic/multi/two_agents_gemini "Generate and refine a structured Todo list for learning about LLM multi-agent systems, complete with exciting objectives and fun activities. Each time you have a new version, create a new Notion page with a title and the current date and time (including hours, minutes, seconds, and milliseconds) to store the list. Then, verify that you can access the page and read back the content. Create this page as a subpage under an existing notion page called 'LLM Agent Research (x)', where x is either 1 or 2 depending on which you have access to."
Before v0.0.15, MassGen’s Gemini integration had notable limitations:
The new MCP integration would be considered successful if:
MassGen v0.0.15 (September 5, 2025)
Configuration file: massgen/configs/tools/mcp/gemini_notion_mcp.yaml
Key MCP configuration:
mcp_servers:
notionApi:
type: "stdio"
command: "npx"
args: ["-y", "@notionhq/notion-mcp-server"]
env:
NOTION_TOKEN: "${NOTION_TOKEN_ONE}"
massgen --config @examples/tools/mcp/gemini_notion_mcp "Generate and refine a structured Todo list for learning about LLM multi-agent systems, complete with exciting objectives and fun activities. Each time you have a new version, create a new Notion page with a title and the current date and time (including hours, minutes, seconds, and milliseconds) to store the list. Then, verify that you can access the page and read back the content. Create this page as a subpage under an existing notion page called 'LLM Agent Research (x)', where x is either 1 or 2 depending on which you have access to."
Both agents use Gemini 2.5 Pro model with:
A key change is that MassGen agents can now interact with external systems through standardized protocols:
Evidence from logs:
API-post-search → API-post-page → API-patch-block-children → API-get-block-childrenAPI-get-block-children called by Agent 1 (≈14:12:30–14:12:43) and Agent 2 (≈14:12:37–14:12:43) to confirm content accessibility.
🔧 MCP: ✅ MCP Tool Response from API-post-page:
{"object":"page","id":"26480a06-b67b-81b4-b5a5-dbbf472df2cc",...}
Before: “I can’t create Notion pages, but here’s a todo list you can copy-paste”
After: “I have successfully created and verified a new Notion page with your Todo list… Here is the verified Todo list from the Notion page”
The agents now:
Agents now vote on execution success not just content quality. From the logs:
“Agent 1 provided a more comprehensive and well-structured Todo list that better addresses the user’s request AND successfully fulfilled all aspects including creating a correctly titled Notion page”
The MCP integration in v0.0.15 marks a significant step from isolated AI agents to connected, tool-enabled systems. Key improvements include:
Broader Implications: This positions MassGen as a platform for building AI agents that can interact with real-world systems, opening possibilities for:
The success of this case study supports the MCP integration approach and demonstrates clear value for users requiring AI agents that can interact with external systems.