mcp-server_openai-chat
AI-powered todo assistant with Google Calendar integration using OpenAI's API and Model Context Protocol (MCP) support for natural language task management.
Documentation
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
1. Clone the Repository
git clone https://github.com/yourusername/todo-assistant.git
cd todo-assistant2. Install Dependencies
npm install3. 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/callback4. 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:
๐ค 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.
Frequently asked questions
What is mcp-server_openai-chat?
mcp-server_openai-chat is AI-powered todo assistant with Google Calendar integration using OpenAI's API and Model Context Protocol (MCP) support for natural language task management.
How do I install mcp-server_openai-chat?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is mcp-server_openai-chat open source?
Yes โ it is hosted on GitHub at https://github.com/mertadali/Mcp-Server_OpenAI-Chat and has 1 stars.
Related MCP tools
Composio equips your AI agents & LLMs with 100+ high-quality integrations via function calling for the Model Context Protocol. Enhance AI assistants with powerf
๐ฆ Repomix is a powerful tool that packs your entire repository into a single, AI-friendly file. Perfect for when you need to feed your codebase to Large Lan...
The TypeScript AI agent framework. โก Assistants, RAG, observability. Supports any LLM: GPT-4, Claude, Gemini, Llama. Built for the Model Context Protocol to enh
Put an end to code hallucinations! GitMCP is a free, open-source, remote MCP server for any GitHub project TypeScript-based implementation.
Model Context Protocol server for GraphQL TypeScript-based implementation.
MCP Server for SearXNG TypeScript-based implementation.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP