Skip to main content
Glama
lmdat

@lmdat/google-sheets-oauth-mcp

by lmdat

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MCP_GSHEETS_TOKEN_DIRNoDirectory to store token file (optional)~/.mcp-google-sheets
GOOGLE_OAUTH_CLIENT_IDYesOAuth client ID from Google Cloud Console
GOOGLE_OAUTH_CLIENT_SECRETYesOAuth client secret from Google Cloud Console
GOOGLE_OAUTH_REDIRECT_PORTNoPort for OAuth redirect (optional)53682

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
drive_list_spreadsheetsB

List các Google Sheet trong Drive của chính user đang login (không cần share thủ công, vì OAuth đại diện chính user đó). Dùng để tìm spreadsheet_id theo tên thay vì copy URL. Trả về JSON array, mỗi item: {name, id, url, modifiedTime, owner}.

sheets_createA

Tạo 1 spreadsheet mới (rỗng). Mặc định nằm ở root My Drive của account đang login. Truyền folder_id nếu muốn đặt luôn vào 1 folder cụ thể.

sheets_readA

Đọc giá trị 1 vùng (range) trong Google Sheet, trả về dạng mảng 2 chiều (hàng x cột).

sheets_writeA

Ghi đè giá trị vào 1 range cụ thể. Dữ liệu cũ trong range sẽ bị thay thế hoàn toàn.

sheets_appendA

Thêm hàng mới vào cuối bảng dữ liệu hiện có (không đè dữ liệu cũ).

sheets_clearA

Xóa nội dung (giá trị) trong 1 range, không xóa format/border.

sheets_list_tabsA

Liệt kê tên + ID các tab (sheet con) trong 1 Google Sheet file.

sheets_create_chartA

Tạo 1 chart COLUMN/BAR/LINE/AREA/SCATTER/PIE từ data có sẵn, chart được embed thẳng vào tab. Mọi range PHẢI ghi đủ tên sheet, dạng "TenSheet!A2:A10" — không hỗ trợ range thiếu tên sheet.

sheets_create_candlestick_chartA

Tạo chart nến cho dữ liệu giá (OHLC). data_range PHẢI có ĐÚNG 5 cột liên tiếp theo thứ tự cố định: Date, Open, High, Low, Close — đúng convention chuẩn của Google Sheets (giống khi tự chọn data trên Insert > Chart bằng tay). Ví dụ: "Data!A2:E50" (không gồm dòng header).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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/lmdat/google-sheet-oauth-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server