MCP Server OpenAI Chat
Integrates with Google Calendar to create, list, and manage calendar events from todo items seamlessly.
Integrates with OpenAI's GPT-3.5 Turbo to enable natural language processing for intelligent todo and calendar management.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Server OpenAI ChatAdd 'Buy groceries' to my todo list"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.
🌟 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-assistantInstall Dependencies
npm installEnvironment 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/callbackBuild 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/callbackDownload 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.
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mertadali/Mcp-Server_OpenAI-Chat'
If you have feedback or need assistance with the MCP directory API, please join our Discord server