
hellotinah/mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
MCP 코드 예
개요
도구, 리소스 및 Google 시트 및 Google 양식과 작업을위한 신속한 간단한 MCP 서버. - list spreadsheets - Google Spreadsheets 목록 - read sheet - Google Sheet에서 데이터를 읽으십시오 - write sheet - Google Sheet에 데이터를 씁니다 - append sheet - Google Sheet에 데이터를 Append - create spreadsheet - 새로운 스프레드 시트 생성 - create form - 새로운 Google Form 생성 - sheet://{spreadsheet id}/{range name} - 리소스로 액세스 시트 데이터 - analysis sheet data - 시트 데이터를 분석하기위한 템플릿 - create report template - 보고서 스프레드 시트 생성을위한 템플릿 - form to sheet - 서식 파일 워크플로우 1. Google Cloud Console 2. 새로운 프로젝트를 만들거나 기존 3을 선택하십시오. 다음 API를 활성화 : - Google 시트 API - Google 양식 API - Google 드라이브 API 4. "Credentials"로 이동 → "Create Credentials" → "OAuth 클라이언트 ID" 5. 응용 프로그램 유형으로 "Desktop 앱"을 선택하십시오 6. credentials JSON 파일 다운로드 7. 자격 증명으로 저장하십시오.
개요(AI 번역)
도구, 리소스 및 Google 시트 및 Google 양식과 작업을위한 신속한 간단한 MCP 서버.
특징
도구
list_spreadsheets- Google 스프레드 시트 목록read_sheet- Google 시트에서 데이터를 읽으십시오write_sheet- Google 시트에 데이터를 쓰기append_sheet- Google 시트에 데이터 삭제create_spreadsheet- 새로운 스프레드 시트 만들기create_form- 새로운 Google 양식 만들기
자원
sheet://{spreadsheet_id}/{range_name}- 리소스로 액세스 시트 데이터
# # # Prompts를
analyze_sheet_data- 시트 데이터를 분석하기위한 템플릿create_report_template- 보고서 스프레드 시트 만들기위한 템플릿form_to_sheet- form-to-sheet 워크플로우 템플릿
설치
##1. 가상 환경 만들기
##2. 의존성 설치
##3. Google API Credentials 받기
- Google Cloud 콘솔로 이동
- 새로운 프로젝트를 만들거나 기존 하나를 선택
- 다음 API를 사용:
- Google 시트 API
- Google 양식 API
- Google 드라이브 API
- "Credentials"로 이동 → “Create Credentials” → “OAuth 클라이언트 ID”
- 신청 유형으로 "Desktop app"를 선택하십시오
- credentials JSON 파일을 다운로드
- 이 디렉토리에서
credentials.json로 저장
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
Google Sheets & Forms MCP Server
A simple MCP server that provides tools, resources, and prompts for working with Google Sheets and Google Forms.
Features
Tools
list_spreadsheets- List your Google Spreadsheetsread_sheet- Read data from a Google Sheetwrite_sheet- Write data to a Google Sheetappend_sheet- Append data to a Google Sheetcreate_spreadsheet- Create a new spreadsheetcreate_form- Create a new Google Form
Resources
sheet://{spreadsheet_id}/{range_name}- Access sheet data as a resource
Prompts
analyze_sheet_data- Template for analyzing sheet datacreate_report_template- Template for creating report spreadsheetsform_to_sheet- Template for form-to-sheet workflow
Setup
1. Create virtual environment
cd gsheets-mcp-server
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
2. Install dependencies
pip install -r requirements.txt
3. Get Google API Credentials
- Go to Google Cloud Console
- Create a new project or select existing one
- Enable the following APIs:
- Google Sheets API
- Google Forms API
- Google Drive API
- Go to “Credentials” → “Create Credentials” → “OAuth client ID”
- Choose “Desktop app” as application type
- Download the credentials JSON file
- Save it as
credentials.jsonin this directory
4. Test the server with MCP Inspector
npx @modelcontextprotocol/inspector python gsheets_server.py
Claude Desktop Configuration
Add this to your Claude Desktop config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"gsheets": {
"command": "python",
"args": [
"/FULL/PATH/TO/gsheets-mcp-server/gsheets_server.py"
],
"env": {
"GOOGLE_CREDENTIALS_PATH": "/FULL/PATH/TO/gsheets-mcp-server/credentials.json"
}
}
}
}
Important: Replace /FULL/PATH/TO/ with the actual absolute path to this directory.
First Run
On first run, the server will open a browser window for Google authentication. After you authorize the app, a token.pickle file will be created to store your credentials for future use.
Example Usage in Claude Desktop
Once configured, you can ask Claude:
- “List my spreadsheets”
- “Read the data from spreadsheet ID ‘abc123’ in range ‘Sheet1!A1:C10’”
- “Create a new spreadsheet called ‘Q1 Report’”
- “Append this data to my sheet: [[‘Name’, ‘Email’], [‘John’, ‘[email protected]’]]”
- “Use the analyze_sheet_data prompt”
- “Show me the sheet resource for spreadsheet ‘abc123’”
Getting Spreadsheet IDs
The spreadsheet ID is in the URL:
https://docs.google.com/spreadsheets/d/SPREADSHEET_ID_HERE/edit
Troubleshooting
- Authentication fails: Delete
token.pickleand run again
설치
npx @modelcontextprotocol/inspector python gsheets_server.py설정
{
"mcpServers": {
"gsheets": {
"command": "python",
"args": [
"/FULL/PATH/TO/gsheets-mcp-server/gsheets_server.py"
],
"env": {
"GOOGLE_CREDENTIALS_PATH": "/FULL/PATH/TO/gsheets-mcp-server/credentials.json"
}
}
}
}