gscope
Provides tools for creating, reading, editing, and formatting Google Docs documents, including appending text, replacing text, inserting markdown as text, and performing batch updates.
Provides tools for listing and searching files, getting file metadata, moving files between folders, creating folders, and sharing files with other users in Google Drive.
Provides tools for creating, reading, writing, appending, and clearing values in Google Sheets spreadsheets, as well as performing batch updates.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@gscopecreate a new Google Doc called Meeting Notes"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
gscope - Google Workspace MCP Server
MCP server that lets AI assistants (like Claude Code) work with Google Docs, Sheets, and Drive using your own Google account.
Quick Start
Set up Google Cloud credentials (one-time, ~5 min)
Related MCP server: Google Workspace MCP Server
Google Cloud Setup
You need to create OAuth credentials in Google Cloud Console so gscope can access Google APIs on your behalf. This is a one-time setup.
1. Create or select a Google Cloud project
Go to Google Cloud Console
Click the project dropdown at the top of the page
Click "New Project"
Name it anything (e.g.,
gscope) and click CreateMake sure the new project is selected in the dropdown
2. Enable the Google APIs
In the left sidebar, go to "APIs & Services" > "Library"
Search for and enable each of these (click on each one, then click "Enable"):
Google Docs API
Google Sheets API
Google Drive API
3. Configure the OAuth consent screen
This step is required before creating credentials. Skipping it will cause errors.
In the left sidebar, go to "Google Auth Platform" > "Branding" (or "APIs & Services" > "OAuth consent screen")
Fill in the required fields:
App name:
gscope(or any name you like)User support email: select your email
Developer contact email: your email
Click Save
Go to "Audience" (or "Público-alvo")
Make sure it says "Testing" (not "In production")
If it says "In production", click "Back to testing" / "Voltar para o teste"
Under "Test users", click "Add users"
Add the email of the Google account you'll use (the one you'll sign in with)
Click Save
Important: While your app is in "Testing" mode, only the emails you add as test users can sign in. This is normal and expected for personal use.
4. Create OAuth credentials
In the left sidebar, go to "Credentials" (or "Clientes")
Click "Create Credentials" > "OAuth client ID"
Application type: Desktop app
Name:
gscope(or anything)Click Create
A dialog will show your Client ID and Client Secret
Copy both values — you'll need them in the next step
Your Client ID looks like: 123456789-xxxxxxxxxx.apps.googleusercontent.com
Your Client Secret looks like: GOCSPX-xxxxxxxxxxxxxxxxx
5. Summary
After completing these steps you should have:
A Google Cloud project with Docs, Sheets, and Drive APIs enabled
An OAuth consent screen configured in Testing mode with your email as test user
A Desktop OAuth client with a Client ID and Client Secret
Installation
git clone https://github.com/MatheusKindrazki/gscope.git
cd gscope
npm install
npm run buildAdd to Claude Code
claude mcp add --scope user gscope -- node /full/path/to/gscope/dist/index.jsOr add manually to your MCP config:
{
"mcpServers": {
"gscope": {
"command": "node",
"args": ["/full/path/to/gscope/dist/index.js"]
}
}
}Then restart Claude Code.
Authenticate
In Claude Code, set up your credentials (only need to do this once):
Use google_workspace_setup with clientId "YOUR_CLIENT_ID" and clientSecret "YOUR_CLIENT_SECRET"Then sign in with Google:
Use google_workspace_loginA browser window will open. Sign in with the Google account you added as a test user. After approving, you're done!
What can it do?
Google Docs (6 tools)
Tool | Description |
| Create a new document |
| Read document content and metadata |
| Append text to end of document |
| Find and replace text |
| Insert markdown as formatted text |
| Raw batch update (advanced) |
Google Sheets (6 tools)
Tool | Description |
| Create a new spreadsheet |
| Read spreadsheet metadata and values |
| Write values to a range |
| Append rows to a sheet |
| Clear values from a range |
| Raw batch update (advanced) |
Google Drive (5 tools)
Tool | Description |
| List and search files |
| Get file metadata |
| Move file to another folder |
| Create a folder |
| Share with another user |
Management (6 tools)
Tool | Description |
| Create config file (run this first!) |
| Sign in with Google (opens browser) |
| Sign out and revoke tokens |
| Show active config and auth status |
| List all configured accounts |
| Check if everything is set up correctly |
Configuration
Minimal config (recommended)
Only two values are required — everything else is auto-configured:
{
"google": {
"clientId": "YOUR_CLIENT_ID.apps.googleusercontent.com",
"clientSecret": "YOUR_CLIENT_SECRET"
}
}Auto-configured defaults:
Google Scopes: Docs + Sheets + Drive (read/write)
OAuth Port: Automatically finds a free port
Token Storage:
~/.config/google-mcp/<scope-name>.tokens.json
Multiple Google accounts
Use a global config at ~/.config/google-mcp/config.json:
{
"defaultScope": "personal",
"scopes": {
"personal": {
"google": {
"clientId": "PERSONAL_CLIENT_ID",
"clientSecret": "PERSONAL_SECRET"
}
},
"work": {
"google": {
"clientId": "WORK_CLIENT_ID",
"clientSecret": "WORK_SECRET"
}
}
}
}Use scopeName: "work" in any tool call to switch accounts.
Per-project config
Create .google-mcp.json in any project directory. gscope detects it automatically.
Config resolution order
.google-mcp.local.jsonin current directory.google-mcp.jsonin current directorySame files in parent directories (up to git root)
Global config at
~/.config/google-mcp/config.json
Troubleshooting
Google OAuth errors
Error 500 on Google sign-in page
Make sure the OAuth consent screen is configured (app name, emails filled in)
Make sure the app is in "Testing" mode (not "In production")
Make sure your email is added as a test user
Wait a few minutes after making changes — Google can take time to propagate
Error 403: access_denied
Your email is not in the test users list
Go to Google Cloud Console > OAuth consent screen > Test users > Add your email
Error: redirect_uri_mismatch
For Desktop apps, this should not happen. If it does, make sure your OAuth client type is "Desktop app" (not "Web application")
gscope errors
"No Google Workspace configuration found"
Run
google_workspace_setupwith your Client ID and SecretOr create a config file manually (see Configuration above)
"Not authenticated"
Run
google_workspace_login— a browser will open for Google sign-in
"Missing required Google API scopes"
Remove the
scopesfield from your config to use defaults (Docs + Sheets + Drive)
Browser didn't open for login
Copy the URL shown in the output and paste it into your browser manually
MCP not showing in Claude Code
Make sure you ran
npm run buildafter cloningMake sure the path in your MCP config points to
dist/index.js(notsrc/index.ts)Restart Claude Code completely (close and reopen, not just /clear)
Run
claude mcp listto verify the server is connected
Advanced
See examples/advanced-global-config.json for:
Custom OAuth redirect ports
Custom Google API scopes
Aliases for scope names
Per-scope default Drive folders
Document locale settings
Architecture
src/
├── index.ts # Entry point (stdio transport)
├── server/server.ts # McpServer setup, tool registration
├── config/ # Hierarchical scope resolution
│ ├── schema.ts # Zod schemas for config validation
│ ├── loader.ts # Config file reading and merging
│ └── resolver.ts # ScopeResolver (finds the right config)
├── auth/ # OAuth 2.0 authentication
│ ├── oauth.ts # Login flow with local HTTP callback
│ └── token-store.ts # Token persistence per scope
├── google/ # Google API operations
│ ├── client.ts # Client factory with caching
│ ├── docs.ts # Google Docs operations
│ ├── sheets.ts # Google Sheets operations
│ └── drive.ts # Google Drive operations
├── tools/ # MCP tool definitions
│ ├── common.ts # Shared params and helpers
│ ├── docs.ts # 6 Docs tools
│ ├── sheets.ts # 6 Sheets tools
│ ├── drive.ts # 5 Drive tools
│ └── workspace.ts # 6 management tools
└── utils/
├── logger.ts # Structured logging (stderr, secrets masked)
├── git.ts # Git root detection
└── port.ts # Auto free port detectionSecurity
Tokens stored locally per-scope (never shared between accounts)
Secrets never appear in logs (masked with
***REDACTED***)Token data never included in tool responses
Uses
drive.filescope by default (minimal permissions)All logs go to stderr (stdout reserved for MCP protocol)
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/MatheusKindrazki/gscope'
If you have feedback or need assistance with the MCP directory API, please join our Discord server