Are you the author? Sign in to claim
Agenticledger_MCP_DocsOnly
Production-ready MCP server providing comprehensive Google Docs and Drive integration for the AgenticLedger AI Agent Platform.
# Clone repository
git clone https://github.com/oregpt/Agenticledger_MCP_DocsOnly.git
cd Agenticledger_MCP_DocsOnly
# Install dependencies
npm install
# Build
npm run build
credentials.jsoncredentials.json in this directorynode dist/server.js
# Follow OAuth flow in browser
# token.json will be created automatically
npm run test:integration
readGoogleDoc - Read document (text/json/markdown formats)appendToGoogleDoc - Append text to end of documentinsertText - Insert text at specific indexdeleteRange - Delete content rangelistDocumentTabs - List tabs in multi-tab documentsapplyTextStyle - Character-level formatting (bold, colors, fonts)applyParagraphStyle - Paragraph formatting (alignment, spacing, styles)formatMatchingText - Legacy formatting toolinsertTable - Create tablesinsertPageBreak - Insert page breaksinsertImageFromUrl - Insert image from URLinsertLocalImage - Upload and insert local imagelistComments - List all document commentsgetComment - Get specific comment detailsaddComment - Create comment anchored to textreplyToComment - Reply to existing commentresolveComment - Mark comment as resolveddeleteComment - Remove commentlistGoogleDocs - List all documentssearchGoogleDocs - Search documents by name/contentgetRecentGoogleDocs - Get recently modified documentsgetDocumentInfo - Get file metadatacreateDocument - Create new documentcreateFromTemplate - Create from templatecreateFolder - Create Drive folderlistFolderContents - List folder filesgetFolderInfo - Get folder metadatamoveFile - Move to different foldercopyFile - Create copyrenameFile - Rename documentdeleteFile - Delete (move to trash)credentials.example.json - OAuth credentials formattoken.example.json - Token format exampletest-integration.ts - Integration test suiteconst result = await readGoogleDoc({
documentId: "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms",
format: "text" // or "json" or "markdown"
});
await appendToGoogleDoc({
documentId: "1BxiMVs0XRA...",
textToAppend: "\n\nNew section added by AI Agent"
});
await applyTextStyle({
documentId: "1BxiMVs0XRA...",
target: {
textToFind: "Important Note",
matchInstance: 1
},
style: {
bold: true,
foregroundColor: "#FF0000",
fontSize: 14
}
});
const newDoc = await createDocument({
title: "AI Generated Report",
folderId: "your-folder-id"
});
// List tabs
const tabs = await listDocumentTabs({
documentId: "1BxiMVs0XRA..."
});
// Read specific tab
await readGoogleDoc({
documentId: "1BxiMVs0XRA...",
tabId: tabs.data.tabs[0].tabId
});
credentials.json, token.json)Google Docs now supports multiple tabs. This server fully supports this feature:
// Tab-aware tools accept optional tabId parameter
- readGoogleDoc
- appendToGoogleDoc
- insertText
- deleteRange
Usage:
listDocumentTabstabId parametertabId (targets first tab/legacy doc body)This is an AgenticLedger platform-customized version of a-bonus/google-docs-mcp.
AgenticLedger Customizations:
MIT License - See LICENSE file
Check Documentation:
Run Diagnostics:
npm run test:integration
Review Examples:
test-integration.ts for real API usage examplesUse GoogleDocsMCP when:
Use GoogleSheetsMCP when:
Status: ✅ Production Ready Version: 1.0.0 Last Updated: 2025-11-03 Total Tools: 30+ Platform: AgenticLedger
Run Claude Code as an MCP server so any agent can delegate coding tasks to it
Browser automation using accessibility snapshots instead of screenshots
Google's universal MCP server supporting PostgreSQL, MySQL, MongoDB, Redis, and 10+ databases
Official GitHub integration for repos, issues, PRs, and CI/CD workflows