- Todo Assistant with AI and Google Calendar Integration
Todo Assistant with AI and Google Calendar Integration
Content
Todo Assistant with AI and Google Calendar Integration
A modern, AI-powered todo list and calendar management application that combines OpenAI's Assistant API with Google Calendar integration. Built with TypeScript and featuring both MCP (Model Context Protocol) and traditional API endpoints.
Todo Assistant Main Screen
Todo Assistant Main Screen
Todo Assistant Main Screen
🌟 Key Features
- AI-Powered Chat Interface: Natural language interaction using OpenAI's GPT-3.5 Turbo
- Smart Todo Management: Add, remove, list, and toggle todos using natural language
- Google Calendar Integration: Seamlessly sync todos with Google Calendar
- Multi-Language Support: Full support for English and Turkish
- Tool Approval System: Secure approval workflow for sensitive operations
- MCP (Model Context Protocol): Standardized AI tool interactions
- Responsive Design: Modern, mobile-friendly web interface
- Persistent Storage: SQLite database for reliable data management
🛠️ Technical Stack
-
Backend:
- Node.js with Express
- TypeScript
- SQLite (via better-sqlite3)
- OpenAI Assistant API
- Google Calendar API
-
Frontend:
- HTML5 & CSS3
- Modern JavaScript
- Responsive Design
-
AI & Integration:
- OpenAI GPT-3.5 Turbo
- Model Context Protocol (MCP)
- OAuth 2.0 for Google Calendar
📋 Prerequisites
- Node.js (v16 or higher)
- npm or yarn
- OpenAI API key
- Google Cloud Console account
- SQLite
🚀 Getting Started
-
Clone the Repository
git clone https://github.com/yourusername/todo-assistant.git cd todo-assistant -
Install Dependencies
npm install -
Environment Setup Create a
.envfile in the root directory:OPENAI_API_KEY=your_openai_api_key PORT=3000 CLIENT_ID=your_google_client_id CLIENT_SECRET=your_google_client_secret GOOGLE_REDIRECT_URI=http://localhost:3000/google/callback -
Build and Run
# Build TypeScript npm run build # Start server npm start # Development mode with auto-reload npm run dev # Start with MCP enabled npm run dev:mcp
🗄️ Database Structure
Todos Table
CREATE TABLE todos (
id INTEGER PRIMARY KEY AUTOINCREMENT,
text TEXT NOT NULL,
completed BOOLEAN NOT NULL DEFAULT 0,
createdAt TEXT NOT NULL
)
Calendar Events Table
CREATE TABLE calendar_events (
id INTEGER PRIMARY KEY AUTOINCREMENT,
todoId INTEGER NOT NULL,
title TEXT NOT NULL,
date TEXT NOT NULL,
time TEXT NOT NULL,
createdAt TEXT NOT NULL,
FOREIGN KEY (todoId) REFERENCES todos(id) ON DELETE CASCADE
)
🔌 API Endpoints
Traditional REST API
POST /api/thread- Create/get user threadPOST /api/chat- Send/receive messagesGET /api/history/:userId- Get chat historyPOST /api/tool-response- Handle tool approvals
MCP Endpoints
POST /mcp- Main MCP interaction endpointGET /mcp/health- Health checkGET /mcp/tools- Available tools listing
💡 Usage Examples
English Commands
"Add 'Buy groceries' to my todo list"
"Show all my todos"
"Mark todo #3 as complete"
"Add 'Team meeting' to calendar for tomorrow at 2pm"
"Show my calendar events for next week"
Turkish Commands
"Alışveriş yapmayı listeye ekle"
"Tüm görevlerimi göster"
"3 numaralı görevi tamamlandı olarak işaretle"
"Yarın saat 14:00'da takım toplantısını takvime ekle"
"Gelecek haftaki takvim etkinliklerimi göster"
🔒 Security Features
- Tool approval workflow for sensitive operations
- OAuth 2.0 authentication for Google Calendar
- Secure credential management
- Input validation and sanitization
🌐 Google Calendar Setup
- Go to Google Cloud Console
- Create a new project or select existing
- Enable Google Calendar API
- Configure OAuth 2.0 credentials:
- Set application type as "Web application"
- Add authorized redirect URI:
http://localhost:3000/google/callback - Download credentials and update
.envfile
🤝 Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
📝 License
This project is licensed under the MIT License - see the LICENSE file for details.
🙏 Acknowledgments
- OpenAI for their powerful Assistant API
- Google Calendar API team
- Contributors and testers
📞 Support
For support, please open an issue in the GitHub repository or contact the maintainers.
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
WindsurfThe new purpose-built IDE to harness magic
Playwright McpPlaywright MCP server
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Serper MCP ServerA Serper MCP Server
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
DeepChatYour AI Partner on Desktop
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
ChatWiseThe second fastest AI chatbot™
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Tavily Mcp
CursorThe AI Code Editor
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题;
Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Amap Maps高德地图官方 MCP Server
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.