MCP.so
登录

Google Docs MCP Server

@Meerkats-Ai

基本信息

分类

记忆与知识

许可证

MIT license

传输方式

stdio

作者

Meerkats-Ai

关于 Google Docs MCP Server

google-docs-mcp-server

Google Docs MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "google-docs-mcp-server-meerkats-ai": {
      "command": "node",
      "args": [
        "get-refresh-token.js"
      ]
    }
  }
}

Google Docs MCP Server 工具

9

Create a new Google Doc

Get a Google Doc by ID

Update a Google Doc with new content

List Google Docs accessible to the authenticated user

Delete a Google Doc

Export a Google Doc to different formats

Share a Google Doc with specific users

Search for Google Docs by title or content

Verify connection with Google Docs API

概览

What is Google Docs MCP Server?

The Google Docs MCP Server is a Model Context Protocol implementation that provides seamless integration with the Google Docs API. It enables AI assistants to create, read, update, delete, export, share, and search Google Docs using structured tool calls.

How to use Google Docs MCP Server?

Install Node.js 18 or higher, enable the Google Docs and Drive APIs in a Google Cloud project, and authenticate using a service account, API key, or OAuth2. Build the project with npm run build, then start the server with npm start (or via Docker). Add the server to your MCP client configuration with the appropriate environment variables for authentication.

Key features of Google Docs MCP Server

  • Create new Google Docs with custom titles and content
  • Retrieve document content and metadata by ID
  • Update existing documents with new content (optional replace all)
  • List all accessible documents with pagination
  • Export documents to PDF, plain text, and other formats
  • Share documents with specific users with role-based permissions

Use cases of Google Docs MCP Server

  • An AI assistant creating and managing meeting notes or reports
  • Automating document generation from structured data or user prompts
  • Searching for documents by title or content to retrieve relevant information
  • Programmatically sharing documents with collaborators

常见问题

1

What are the prerequisites to run this server?

Node.js 18 or higher, a Google Cloud project with the Google Docs API and Google Drive API enabled, and authentication credentials (service account, API key, or OAuth2).

2

What authentication methods are supported?

Three methods: service account with a JSON key file (recommended for production), API key (simple for development), and OAuth2 (required for user-specific operations such as creating or editing documents).

3

How can I run the server with Docker?

Build the Docker image with `docker build -t google-docs-mcp-server .` and run the container with environment variables for your Google Cloud project ID and credentials (e.g., `GOOGLE_APPLICATION_CREDENTIALS_JSON`).

4

Does the server support authenticated SSE endpoints?

Yes, when using SSE mode, you can enable authentication via the `mcp-proxy-auth` package. Set the `AUTH_SERVER_URL` environment variable and run `npx mcp-proxy-auth node dist/index.js`. The SSE endpoint will then require an `apiKey` query parameter.

5

What are the document export formats?

The server supports exporting documents to multiple MIME types, including PDF (`application/pdf`) and plain text (`text/plain`), among others.

评论

记忆与知识 分类下的更多 MCP 服务器