Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"io-github-craft-agent-google-tools": {
"command": "npx",
"args": [
"-y",
"@craftsamo/google-tools"
],
"env": {
"GOOGLE_TOOLS_TOOLS": "<VALUE>",
"GOOGLE_TOOLS_CONFIRM": "harness",
"GOOGLE_TOOLS_LANGUAGE": "<VALUE>",
"GOOGLE_TOOLS_TOOLSETS": "<VALUE>",
"GOOGLE_TOOLS_GRANT_KEY": "<VALUE>",
"GOOGLE_TOOLS_READ_ONLY": "<VALUE>",
"GOOGLE_TOOLS_STATE_DIR": "<VALUE>",
"GOOGLE_TOOLS_GRANTS_DIR": "<VALUE>",
"GOOGLE_TOOLS_UNATTENDED": "<VALUE>",
"GOOGLE_TOOLS_UPLOAD_DIRS": "<VALUE>",
"GOOGLE_TOOLS_DOWNLOAD_DIR": "<VALUE>",
"GOOGLE_TOOLS_ENCRYPT_DIRS": "<VALUE>",
"GOOGLE_TOOLS_EXCLUDE_TOOLS": "<VALUE>",
"GOOGLE_TOOLS_AGE_RECIPIENTS": "<VALUE>",
"GOOGLE_TOOLS_CREDENTIALS_DEFAULT": "<VALUE>"
}
}
}
}
Restart Claude Desktop to activate the new server.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"io-github-craft-agent-google-tools": {
"command": "npx",
"args": [
"-y",
"@craftsamo/google-tools"
],
"env": {
"GOOGLE_TOOLS_TOOLS": "<VALUE>",
"GOOGLE_TOOLS_CONFIRM": "harness",
"GOOGLE_TOOLS_LANGUAGE": "<VALUE>",
"GOOGLE_TOOLS_TOOLSETS": "<VALUE>",
"GOOGLE_TOOLS_GRANT_KEY": "<VALUE>",
"GOOGLE_TOOLS_READ_ONLY": "<VALUE>",
"GOOGLE_TOOLS_STATE_DIR": "<VALUE>",
"GOOGLE_TOOLS_GRANTS_DIR": "<VALUE>",
"GOOGLE_TOOLS_UNATTENDED": "<VALUE>",
"GOOGLE_TOOLS_UPLOAD_DIRS": "<VALUE>",
"GOOGLE_TOOLS_DOWNLOAD_DIR": "<VALUE>",
"GOOGLE_TOOLS_ENCRYPT_DIRS": "<VALUE>",
"GOOGLE_TOOLS_EXCLUDE_TOOLS": "<VALUE>",
"GOOGLE_TOOLS_AGE_RECIPIENTS": "<VALUE>",
"GOOGLE_TOOLS_CREDENTIALS_DEFAULT": "<VALUE>"
}
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"io-github-craft-agent-google-tools": {
"command": "npx",
"args": [
"-y",
"@craftsamo/google-tools"
],
"env": {
"GOOGLE_TOOLS_TOOLS": "<VALUE>",
"GOOGLE_TOOLS_CONFIRM": "harness",
"GOOGLE_TOOLS_LANGUAGE": "<VALUE>",
"GOOGLE_TOOLS_TOOLSETS": "<VALUE>",
"GOOGLE_TOOLS_GRANT_KEY": "<VALUE>",
"GOOGLE_TOOLS_READ_ONLY": "<VALUE>",
"GOOGLE_TOOLS_STATE_DIR": "<VALUE>",
"GOOGLE_TOOLS_GRANTS_DIR": "<VALUE>",
"GOOGLE_TOOLS_UNATTENDED": "<VALUE>",
"GOOGLE_TOOLS_UPLOAD_DIRS": "<VALUE>",
"GOOGLE_TOOLS_DOWNLOAD_DIR": "<VALUE>",
"GOOGLE_TOOLS_ENCRYPT_DIRS": "<VALUE>",
"GOOGLE_TOOLS_EXCLUDE_TOOLS": "<VALUE>",
"GOOGLE_TOOLS_AGE_RECIPIENTS": "<VALUE>",
"GOOGLE_TOOLS_CREDENTIALS_DEFAULT": "<VALUE>"
}
}
}
}
The server will be available in the next Claude Code session.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"io-github-craft-agent-google-tools": {
"command": "npx",
"args": [
"-y",
"@craftsamo/google-tools"
],
"env": {
"GOOGLE_TOOLS_TOOLS": "<VALUE>",
"GOOGLE_TOOLS_CONFIRM": "harness",
"GOOGLE_TOOLS_LANGUAGE": "<VALUE>",
"GOOGLE_TOOLS_TOOLSETS": "<VALUE>",
"GOOGLE_TOOLS_GRANT_KEY": "<VALUE>",
"GOOGLE_TOOLS_READ_ONLY": "<VALUE>",
"GOOGLE_TOOLS_STATE_DIR": "<VALUE>",
"GOOGLE_TOOLS_GRANTS_DIR": "<VALUE>",
"GOOGLE_TOOLS_UNATTENDED": "<VALUE>",
"GOOGLE_TOOLS_UPLOAD_DIRS": "<VALUE>",
"GOOGLE_TOOLS_DOWNLOAD_DIR": "<VALUE>",
"GOOGLE_TOOLS_ENCRYPT_DIRS": "<VALUE>",
"GOOGLE_TOOLS_EXCLUDE_TOOLS": "<VALUE>",
"GOOGLE_TOOLS_AGE_RECIPIENTS": "<VALUE>",
"GOOGLE_TOOLS_CREDENTIALS_DEFAULT": "<VALUE>"
}
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"io-github-craft-agent-google-tools": {
"command": "npx",
"args": [
"-y",
"@craftsamo/google-tools"
],
"env": {
"GOOGLE_TOOLS_TOOLS": "<VALUE>",
"GOOGLE_TOOLS_CONFIRM": "harness",
"GOOGLE_TOOLS_LANGUAGE": "<VALUE>",
"GOOGLE_TOOLS_TOOLSETS": "<VALUE>",
"GOOGLE_TOOLS_GRANT_KEY": "<VALUE>",
"GOOGLE_TOOLS_READ_ONLY": "<VALUE>",
"GOOGLE_TOOLS_STATE_DIR": "<VALUE>",
"GOOGLE_TOOLS_GRANTS_DIR": "<VALUE>",
"GOOGLE_TOOLS_UNATTENDED": "<VALUE>",
"GOOGLE_TOOLS_UPLOAD_DIRS": "<VALUE>",
"GOOGLE_TOOLS_DOWNLOAD_DIR": "<VALUE>",
"GOOGLE_TOOLS_ENCRYPT_DIRS": "<VALUE>",
"GOOGLE_TOOLS_EXCLUDE_TOOLS": "<VALUE>",
"GOOGLE_TOOLS_AGE_RECIPIENTS": "<VALUE>",
"GOOGLE_TOOLS_CREDENTIALS_DEFAULT": "<VALUE>"
}
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"io-github-craft-agent-google-tools": {
"command": "npx",
"args": [
"-y",
"@craftsamo/google-tools"
],
"env": {
"GOOGLE_TOOLS_TOOLS": "<VALUE>",
"GOOGLE_TOOLS_CONFIRM": "harness",
"GOOGLE_TOOLS_LANGUAGE": "<VALUE>",
"GOOGLE_TOOLS_TOOLSETS": "<VALUE>",
"GOOGLE_TOOLS_GRANT_KEY": "<VALUE>",
"GOOGLE_TOOLS_READ_ONLY": "<VALUE>",
"GOOGLE_TOOLS_STATE_DIR": "<VALUE>",
"GOOGLE_TOOLS_GRANTS_DIR": "<VALUE>",
"GOOGLE_TOOLS_UNATTENDED": "<VALUE>",
"GOOGLE_TOOLS_UPLOAD_DIRS": "<VALUE>",
"GOOGLE_TOOLS_DOWNLOAD_DIR": "<VALUE>",
"GOOGLE_TOOLS_ENCRYPT_DIRS": "<VALUE>",
"GOOGLE_TOOLS_EXCLUDE_TOOLS": "<VALUE>",
"GOOGLE_TOOLS_AGE_RECIPIENTS": "<VALUE>",
"GOOGLE_TOOLS_CREDENTIALS_DEFAULT": "<VALUE>"
}
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| GOOGLE_TOOLS_TOOLS | No | Single tools to add by ID, whatever their toolset. |
| GOOGLE_TOOLS_CONFIRM | No | MCP server only: `harness` (default) or `elicitation`, as the conventions say. Default: harness |
| GOOGLE_TOOLS_LANGUAGE | No | Native plugins only: the approval prompt's language, such as `ja`. |
| GOOGLE_TOOLS_TOOLSETS | No | The toolsets that are on, or `all`; default those `src/project.ts` names. |
| GOOGLE_TOOLS_GRANT_KEY | No | A variable only, never a flag or a plugin option. Use at least 32 characters, for example from `openssl rand -hex 32`, stored where the host keeps secrets. Without it no write runs while unattended and no grant can be created. |
| GOOGLE_TOOLS_READ_ONLY | No | Registers no tool that writes; wins over every other setting. |
| GOOGLE_TOOLS_STATE_DIR | No | Where each label keeps its credential and lock; default `$XDG_STATE_HOME/google-tools`, else `~/.local/state/google-tools`. |
| GOOGLE_TOOLS_GRANTS_DIR | No | Where grants and their use are kept; default `$XDG_STATE_HOME/google-tools/grants`, else `~/.local/state/google-tools/grants`. |
| GOOGLE_TOOLS_UNATTENDED | No | No person can answer: a write runs only under a grant that covers it; off by default. |
| GOOGLE_TOOLS_UPLOAD_DIRS | No | Directories tools may attach files from, such as a mail's attachments; empty by default, so no file is read. A file must lie inside one by real path, be a regular file with one link, and be outside the state and install directories. |
| GOOGLE_TOOLS_DOWNLOAD_DIR | No | Where tools write files they download or export, such as sheet snapshots; default `~/Downloads/google-tools`. Never inside the state directory or the tools' install directory, never through a link, never over an existing file. |
| GOOGLE_TOOLS_ENCRYPT_DIRS | No | Directories whose files go up only encrypted with age, such as to Drive; empty by default. A file there must also lie in an `upload_dirs` directory, since this widens nothing; matching ignores case. |
| GOOGLE_TOOLS_EXCLUDE_TOOLS | No | Single tools to remove by ID; wins over `tools` and `toolsets`. |
| GOOGLE_TOOLS_AGE_RECIPIENTS | No | The age public keys (`age1…`) that files under `encrypt_dirs` are encrypted to; needs age installed. The package holds no secret key and never decrypts. |
| GOOGLE_TOOLS_CREDENTIALS_DEFAULT | No | A label's credential is one JSON object (the refresh token, the OAuth client it belongs to, the granted scopes and the account's address). It comes from `GOOGLE_TOOLS_CREDENTIALS_<LABEL>` (`GOOGLE_TOOLS_CREDENTIALS_DEFAULT` for `default`) when that is set, else from `credentials.json`, which `login` writes in the label's directory. |