loading…
Search for a command to run...
loading…
A lightweight MCP-style server integrating Google Docs and Gmail, enabling AI to append structured content to documents and create email drafts with human-in-th
A lightweight MCP-style server integrating Google Docs and Gmail, enabling AI to append structured content to documents and create email drafts with human-in-the-loop approval.
A lightweight MCP-style server that integrates with Google Docs and Gmail.
This project demonstrates how to build structured AI tool interfaces with approval gating, inspired by the Model Context Protocol (MCP).
Run the MCP server: uvicorn server:app --reload
Call tools via API: POST /append_to_doc POST /create_email_draft
Integrate with your AI workflow:
google-mcp-server/
│── server.py
│── auth.py
│── docs_tool.py
│── gmail_tool.py
│── requirements.txt
│── credentials.json (not committed)
│── token.json (not committed)
│── README.md
git clone <your-repo-url>
cd google-mcp-server
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
Go to Google Cloud Console
Create a new project
Enable:
Configure OAuth Consent Screen
Create OAuth Credentials (Desktop App)
Download credentials.json
Place it in project root
python3 auth.py
uvicorn server:app --reload
Open:
http://127.0.0.1:8000/docs
Endpoint: POST /append_to_doc
Example:
{
"doc_id": "YOUR_DOC_ID",
"content": "Hello from MCP 🚀"
}
Endpoint: POST /create_email_draft
Example:
{
"to": "[email protected]",
"subject": "Test Draft",
"body": "This is a test email"
}
Request → Approval → Tool Execution → Response
Do NOT commit:
Approval is CLI-based (terminal input) Designed for local development
Every action requires manual approval in terminal:
ACTION: append_to_doc
PAYLOAD: {...}
Approve? (y/n):
Type:
y
This project demonstrates:
Apache License
Выполни в терминале:
claude mcp add google-docs-gmail-mcp-server -- npx Read, send and search emails from Claude
автор: GoogleSend, search and summarize Slack messages
автор: SlackNo-code MCP client for team chat platforms, such as Slack, Microsoft Teams, and Discord.
A community discord server dedicated to MCP by [Frank Fiegel](https://github.com/punkpeye)
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории communication