Skip to main content

Google Drive MCP

Marla Sowards
Marla Sowards
Documentation Engineer

This is part of a series about custom MCP servers I've built to connect the systems I work in, so I can generate content from the information they hold, set up workflows that cover multiple tools, and eliminate manual, repetitive work that would otherwise only be possible through the application UI.

gdrive_mcp.py

What it is​

This MCP server performs actions like reading Google Drive files, creating files, and publishing content to them from another source. In particular, this MCP server let me manage content as Markdown.

Why I built it​

Formatting a Google Doc with a Google Drive connection in AI tool is notoriously unpredictable. Applied styles can be offset by a character or two, bullets can be misaligned, and formatting can disappear. This custom MCP server allows the content to be extracted from the Google Doc as Markdown using the Google Docs API's text/markdown export MIME type, formats the content straightforwardly Markdown, and converts it into a native Google Doc format.