An example personal assistant built with Mastra + MCP
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:
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:
The assistant connects to several MCP servers:
The assistant includes custom tools like:
The application includes a daily workflow that:
The application connects with a Telegram bot to handle user interactions and provide responses.
src/mastra/integrations/telegram.ts
and it's used in src/mastra/index.ts
..env.development
file with the required API keys:
OPENAI_API_KEY=your_openai_api_key
ZAPIER_MCP_URL=your_zapier_mcp_url
COMPOSIO_MCP_GITHUB=your_github_mcp_url
TELEGRAM_BOT_TOKEN=your_telegram_bot_token
pnpm install
pnpm run dev
You can customize the assistant by:
src/mastra/agents/index.ts
src/mastra/tools/index.ts
src/mastra/workflows/index.ts
@ai-sdk/openai
: For connecting to OpenAI models@mastra/core
: Core Mastra functionality@mastra/memory
: For conversation and working memory@mastra/mcp
: For Model Context Protocol integrationzod
: For schema validationThis assistant uses a notes directory to store information for later use. The notes can be used to keep track of todo list items and other important information that should persist between sessions.
No configuration available
Related projects feature coming soon
Will recommend related projects based on sub-categories