An example personal assistant built with Mastra and MCP (Model Context Protocol) that helps with various daily tasks and information management.
This personal assistant can help with:
- Email Management: Read, categorize, and send emails through Gmail
- GitHub Activity: Monitor and summarize GitHub activity, including PRs and commits
- Social Media Scheduling: Create and manage tweet drafts with Typefully
- Weather Information: Get current weather conditions for any location
- Hacker News: Search for and retrieve stories and comments from Hacker News
- Todo Lists: Keep track of tasks and important items using the filesystem
- Daily Workflow: Run automated workflows to get summaries of news and GitHub activity
The personal assistant is built using Mastra's agent framework and leverages MCP servers to connect to various services.
The core of the application is the personalAssistantAgent which:
- Uses GPT-4o as its underlying model
- Has access to various tools through MCP connections
- Maintains memory of conversations and user preferences
- Can execute workflows for complex, multi-step tasks
The assistant connects to several MCP servers:
- Zapier: For automation and connecting to various services
- GitHub: For monitoring repository activity
- Hacker News: For retrieving tech news
- Text Editor: For managing notes and todo lists
The assistant includes custom tools like:
- Weather Tool: Fetches current weather conditions using open-meteo API
- Daily Workflow Tool: Runs a sequence of steps to gather and summarize information
The application includes a daily workflow that: