Labsco
mackenzienolan logo

Mila

from mackenzienolan

Create, read, update docs, spreadsheets, and presentations via AI. Connect your AI assistant to a full office suite.

๐Ÿ”ฅ๐Ÿ”ฅFreeQuick setup

Google Docs MCP Server (Next.js)

A remote Model Context Protocol (MCP) server that provides Google Docs integration for Claude Desktop, built with Next.js and deployed on Vercel.

Features

  • Remote MCP Server: Deployed on Vercel with SSE transport
  • Google OAuth: Secure authentication with Google Docs and Drive permissions
  • Web Dashboard: User-friendly interface for managing API keys
  • Multi-user: Support for multiple users with isolated access
  • API Key Management: Secure token-based authentication for MCP clients

Architecture

User Browser โ†’ Next.js App โ†’ Google OAuth โ†’ Database (User/Tokens)
Claude Desktop โ†’ MCP SSE Transport โ†’ API Key Auth โ†’ Google APIs

Development

Local Setup

  1. Clone the repository
  2. Install dependencies: pnpm install
  3. Copy .env.example to .env and fill in values
  4. Run database migrations: pnpm db:push
  5. Start development server: pnpm dev

Commands

  • pnpm dev - Start development server
  • pnpm build - Build for production
  • pnpm start - Start production server
  • pnpm lint - Run ESLint
  • pnpm db:generate - Generate database migrations
  • pnpm db:push - Push schema to database
  • pnpm db:studio - Open Drizzle Studio

Security

  • API keys are hashed before storage
  • Google refresh tokens are encrypted in database
  • User isolation prevents cross-user access
  • HTTPS enforced for OAuth callbacks