How markuspfundstein/mcp-gsuite works
Main Components
a) Client Layer:
• Claude Desktop AI Assistant
• MCP Inspector (for debugging)
b) MCP Server Core:
• Main server component (server.py)
• Authentication handler (gauth.py)
• Tool handlers (toolhandler.py)
c) Service-Specific Components:
• Gmail Module (gmail.py, tools_gmail.py)
• Calendar Module (calendar.py, tools_calendar.py)
d) External Services:
• Google OAuth 2.0
• Gmail API
• Google Calendar API
Specific Implementation Details
Use these visual elements:
a) Components:
• Rectangles for main services
• Rounded rectangles for APIs
• Hexagons for tool handlers
• Blue: Core MCP components
• Green: Google services
• Yellow: Authentication components
• Gray: Storage/Configuration files
Key Relationships to Highlight
• Bidirectional communication between Claude and MCP server
• How toolhandler.py orchestrates different tools
• Demonstrate the authentication flow from client through OAuth2 to Google services
• How multiple Google accounts are managed
Configuration Elements
Critical config components:
• .gauth.json location and purpose
• .accounts.json management
• Credential storage structure
• API specifications (reference the OpenAPI specs)
Configuration management
This system design should clearly show how the MCP server acts as a bridge between Claude Desktop and Google services while handling authentication, multiple accounts, and various API operations for both Gmail and Calendar services.