Navigation
Todo Assistant: AI Task Mgmt & Google Calendar Sync - MCP Implementation

Todo Assistant: AI Task Mgmt & Google Calendar Sync

Effortlessly manage tasks with AI-powered natural language, Google Calendar sync via OpenAI's API, and MCP for seamless, intuitive productivity.

Developer Tools
4.5(173 reviews)
259 saves
121 comments

98% of users reported increased productivity after just one week

About Todo Assistant

What is Todo Assistant: AI Task Mgmt & Google Calendar Sync?

Todo Assistant is an AI-driven productivity tool that merges natural language processing with calendar synchronization. Built using TypeScript and OpenAI's GPT-3.5 Turbo, it allows users to manage tasks via chat while seamlessly integrating with Google Calendar. Key technical elements include Model Context Protocol (MCP) for standardized AI interactions and OAuth 2.0 for secure calendar access. The app supports dual language modes (English/Turkish) and persists data through an SQLite backend.

How to Use Todo Assistant: AI Task Mgmt & Google Calendar Sync?

Interaction is conversational: say "Add 'Project deadline' to calendar tomorrow 3pm" to create tasks and events. The approval system requires confirmation for sensitive actions like deleting tasks. To sync with Google Calendar: authenticate via the provided OAuth flow, then use commands like "Show next week's schedule" to view combined task-event views. Mobile-friendly design ensures accessibility on all devices.

Todo Assistant Features

Key Features of Todo Assistant: AI Task Mgmt & Google Calendar Sync?

  • AI Chat Interface: Process natural language requests like "Mark todo #2 as done"
  • Calendar Sync: Bidirectional task-event updates with Google Calendar (e.g., overdue tasks auto-convert to calendar reminders)
  • Approval Workflows: Mandatory checks for deletions/edits - "Are you sure you want to remove 'Monthly report'?"
  • MCP Integration: Standardized tool interactions for future expansion
  • Multi-Device Sync: SQLite database ensures data consistency across sessions

Use Cases of Todo Assistant: AI Task Mgmt & Google Calendar Sync?

Common scenarios include:

  • Personal planners: "Add dentist appointment Friday 10 AM"
  • Team coordination: "Schedule daily standup at 9:30 AM EST for next 5 working days"
  • Multilingual users: Turkish command "Pazar günü 14:00'te film izle" creates events in native language
  • Project tracking: "List all uncompleted tasks due this week"

Todo Assistant FAQ

FAQ from Todo Assistant: AI Task Mgmt & Google Calendar Sync?

Q: How do I enable Google Calendar?
A: Complete OAuth setup through Google Cloud Console - configure redirect URI then update .env file

Q: Can I undo a task deletion?
A: No immediate undo, but approval popups require confirmation before finalizing deletions

Q: What languages are supported?
A: Full English/Turkish support including voice commands and display language

Q: How is data stored?
A: SQLite database persists tasks and calendar events with automatic backup during sync

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 Approval Screen
Todo Assistant Main Screen

Todo Google Calendar 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

  1. Clone the Repository

    git clone https://github.com/yourusername/todo-assistant.git

cd todo-assistant
  1. Install Dependencies

    npm install

  2. Environment Setup Create a .env file 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
  1. 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 thread
  • POST /api/chat - Send/receive messages
  • GET /api/history/:userId - Get chat history
  • POST /api/tool-response - Handle tool approvals

MCP Endpoints

  • POST /mcp - Main MCP interaction endpoint
  • GET /mcp/health - Health check
  • GET /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

  1. Go to Google Cloud Console
  2. Create a new project or select existing
  3. Enable Google Calendar API
  4. Configure OAuth 2.0 credentials:
    * Set application type as "Web application"
    * Add authorized redirect URI: http://localhost:3000/google/callback
    * Download credentials and update .env file

🤝 Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. 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.

Related MCP Servers & Clients