foundation-project-mcp
Verified Safeby victormasson21
Overview
An MCP server enabling AI assistants to securely read unread emails, draft replies in Gmail, and access email writing style guides from Notion.
Installation
node dist/emailServer.jsEnvironment Variables
- GMAIL_CLIENT_ID
- GMAIL_CLIENT_SECRET
- GMAIL_REDIRECT_URI
- GMAIL_ACCESS_TOKEN
- GMAIL_REFRESH_TOKEN
- NOTION_API_KEY
- NOTION_STYLE_GUIDE_PAGE_ID
Security Notes
The server uses OAuth 2.0 for Gmail access with `gmail.readonly` and `gmail.compose` scopes, which are sensitive. It explicitly warns against committing `.env.local` containing credentials and saves tokens securely. Email headers are sanitized to prevent injection attacks. OAuth token generation involves a temporary local web server, which is a standard secure practice. Overall, good security practices are implemented for its intended functionality.
Similar Servers
mcp-email-server
This server allows MCP clients to interact with email accounts via IMAP and SMTP protocols, enabling functionalities like listing, fetching, sending, and deleting emails.
outlook-mcp
Enables AI assistants to interact with Microsoft Outlook for email, calendar, and SharePoint operations through the Microsoft Graph API.
gmail-mcp
Manages Gmail emails programmatically, enabling AI systems to read, send, archive, and perform other email operations on behalf of a user.
outlook-mcp-server
AI-powered local email management for Microsoft Outlook, enabling search, composition, organization, and batch forwarding of emails using natural language commands.