Google Docs

by mackenzienolan

Not rated
GitHub

About

A Model Context Protocol (MCP) server for integrating Google Docs with AI clients.

Details

Author
mackenzienolan
Categories
Productivity, Other, Communication

Setup

Install Google Docs in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/mackenzienolan/google-mcp-server

Follow the installation instructions in the repository README, then restart your MCP client.

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

- 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

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

- Create a new project inGoogle Cloud Console
- Enable Google Docs API and Google Drive API
- Create OAuth 2.0 credentials:

- Application type: Web application
- Authorized redirect URIs:https://your-app.vercel.app/api/auth/callback/google

Create a PostgreSQL database (recommended:NeonorSupabase)

Create a Redis instance (required for Vercel MCP adapter). Recommended:Upstash
- Fork this repository
- Import to Vercel
- Add environment variables:

NEXTAUTH_SECRET=your-random-secret NEXTAUTH_URL=https://your-app.vercel.app GOOGLE_CLIENT_ID=your-google-client-id GOOGLE_CLIENT_SECRET=your-google-client-secret DATABASE_URL=your-postgresql-url REDIS_URL=your-redis-url

After deployment, run database migrations:
- Add MCP server to Claude Desktop(no setup required):

claude mcp add --transport sse google-docs https://your-app.vercel.app/sse

Or manually add toclaude_desktop_config.json:

{ "mcpServers": { "google-docs": { "command": "claude", "args": ["mcp", "connect", "sse", "https://your-app.vercel.app/sse"] } } }

- authorize_google- Authorize Google Docs access (run this first)
- read_document- Read content from Google Docs
- create_document- Create new Google Docs
- update_document- Update document content with batch operations
- append_text- Append text to documents
- list_documents- List your Google Docs

For programmatic access or multiple clients:

claude mcp add --transport sse google-docs \\ https://your-app.vercel.app/sse \\ --header "X-API-Key: your-api-key"

- Clone the repository
- Install dependencies:pnpm install
- Copy.env.exampleto.envand fill in values
- Run database migrations:pnpm db:push
- Start development server:pnpm dev

- 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

- API keys are hashed before storage
- Google refresh tokens are encrypted in database
- User isolation prevents cross-user access
- HTTPS enforced for OAuth callbacks
- OAuth Error: Check redirect URI matches exactly
- Database Connection: Verify DATABASE_URL format
- API Key Invalid: Ensure X-API-Key header is set correctly
- Redis Connection: Verify REDIS_URL for SSE transport

Check Vercel function logs for detailed error information.
- Fork the repository
- Create a feature branch
- Make changes
- Test locally
- Submit a pull request

MIT License - see LICENSE file for details.

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

A complete whiteboard app with bundled MCP server

Collaborative word processor you can use with your agent

AI-powered reading triage MCP. 26 tools with a 24h burn timer. Read less, absorb more.

Carryo is a remote MCP server for sharing Claude or ChatGPT-created HTML artifacts as live links.

An MCP server that enables AI assistants to interact with Confluence content through a standardized interface.

Generates professional PDF cover letters using LaTeX. Requires Docker for local execution.

Create and manipulate PowerPoint presentations programmatically using JSON or Markdown.

An MCP server designed to assist with novel writing, configurable via JSON project files.

Publish Markdown or HTML to a clean, shareable link straight from your AI assistant — OAuth, no API keys.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.