Paste Claude's markdown output directly into a Google Doc with formatted headers, bold, code blocks, etc, without touching the clipboard or browser.
terminal (paste markdown) → claude CLI → Toolshed API → Google Doc
Toolshed's append_to_google_drive_doc handles markdown-to-Doc rendering server-side, so formatting is applied correctly every time.
Follow https://claude.ai/claude-code to install and authenticate.
claude mcp add --scope=user --transport stdio toolshed_gdrive '${TOOLSHED_STDIO_SHIM}' google_driveVisit https://toolshed.corp.stripe.com/oauth and grant Google Drive editing access. This lets Toolshed write to docs on your behalf.
git clone https://github.com/nidhi-stripe/claude2doc.git
cd claude2doc
sudo ./install.shThis copies claude2doc to /usr/local/bin/. You need sudo because /usr/local/bin/ is a system directory.
claude2doc- Paste your Claude output
- Press Ctrl+D or type
ENDon its own line - Paste the Google Doc URL (or just the doc ID)
- Done — open the doc and see formatted content
claude2doc --doc https://docs.google.com/document/d/1abc123def456/editThen just paste content and press Ctrl+D.
claude2doc --doc newYou'll be prompted for a title. The new doc URL is printed when done.
Save a bookmark so you never have to paste a URL again:
claude2doc --save prd https://docs.google.com/document/d/1abc123def456/edit
claude2doc --doc prd # uses the saved URLList all saved bookmarks:
claude2doc --listRemove a bookmark:
claude2doc --remove prdBookmarks are stored in ~/.claude2doc.json.
echo "## My heading" | claude2doc --doc 1abc123def456Quick test to verify everything is wired up:
printf '## Hello from claude2doc\n\nIf you can read this, **it works!**\nEND\n' | claude2doc --doc <YOUR_DOC_URL>Open the doc — you should see a formatted heading and bold text appended at the bottom.
- Stripe engineer (depends on internal Toolshed MCP)
claudeCLI installed and authenticated- Toolshed Google Drive OAuth delegated
TOOLSHED_STDIO_SHIMenv var (set automatically by Stripe dev environment)