Google MCP Server
Google MCP Server
A FastAPI-based MCP-style server that integrates with Google Docs and Gmail, requiring terminal approval before executing any action.
Prerequisites
Create a project in the Google Cloud Console.
Enable the following APIs:
Google Docs API
Gmail API
Create OAuth 2.0 Client ID credentials (Desktop app type).
Download the JSON file, rename it to
credentials.json, and place it in this directory (google-mcp-server/).
Installation
pip install -r requirements.txtRunning the Server
python server.py
# or
uvicorn server:app --reloadUsage
Append to Google Doc
Send a POST request to /append_to_doc:
{
"doc_id": "your_document_id",
"content": "Text to append\n"
}Create Gmail Draft
Send a POST request to /create_email_draft:
{
"to": "example@example.com",
"subject": "Test Draft",
"body": "This is a test email body."
}The server will prompt for your approval in the terminal before executing any of these actions. Type y and press Enter to approve.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/urmi123-ui/mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server