
sholajegede/todo_mcp_server
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
MCP server implementing a complete todo management system with OAuth authentication, freemium billing model, and PostgreSQL database.
概要
A complete server that demonstrates modern web development practices with authentication, billing, and database integration. Perfect for beginners learning full-stack development! This project creates a that you can interact with through (or any MCP-compatible client). It includes: - with Kinde - with free tier limits - with Neon PostgreSQL - through MCP protocol - for authentication - for new users - for unlimited todos - with Google/social login - with PostgreSQL - through Cursor - with secure cookies 1. (version 18 or higher) 2. account (free) 3. (free) 4. (for MCP integration) This creates a .env file with placeholder values. 1. Go to neon.tech 2. Create a free account 3. Create a new database 4. Copy your connection string 5. Update your .env file: 1. Go to kinde.com 2. Create a free account 3. Create a new application 4. Copy your credentials 5. Update your .env file:
README
以下は原文 README の抜粋です。原文を見る。
Modern Todo MCP Server with Authentication, Database & Billing
A complete Model Context Protocol (MCP) server that demonstrates modern web development practices with authentication, billing, and database integration. Perfect for beginners learning full-stack development!
What This Project Does
This project creates a Todo Management System that you can interact with through Cursor AI (or any MCP-compatible client). It includes:
- Real Authentication with Kinde
- Billing System with free tier limits
- Database Storage with Neon PostgreSQL
- AI Integration through MCP protocol
- Web Interface for authentication
Key Features
- 5 Free Todos for new users
- Upgrade to Paid for unlimited todos
- Real Authentication with Google/social login
- Database Persistence with PostgreSQL
- AI Chat Integration through Cursor
- Session Management with secure cookies
Architecture Overview
┌─────────────────┐ ┌──────────────────┐ ┌─────────────────┐
│ Cursor AI │ │ MCP Server │ │ Kinde Auth │
│ (Your Chat) │◄──►│ (This Project) │◄──►│ (Authentication)│
└─────────────────┘ └──────────────────┘ └─────────────────┘
│
▼
┌──────────────────┐
│ Neon Database │
│ (PostgreSQL) │
└──────────────────┘
Prerequisites
Before you start, you’ll need:
- Node.js (version 18 or higher)
- A Neon Database account (free)
- A Kinde account (free)
- Cursor IDE (for MCP integration)
Quick Start Guide
Step 1: Clone and Install
# Clone the repository
git clone
cd todo-mcp-server
# Install dependencies
npm install
Step 2: Set Up Environment
# Run the setup script
chmod +x setup.sh
./setup.sh
This creates a .env file with placeholder values.
Step 3: Set Up Neon Database (Free)
- Go to neon.tech
- Create a free account
- Create a new database
- Copy your connection string
- Update your
.envfile:
DATABASE_URL=postgresql://your-connection-string-here
Step 4: Set Up Kinde Authentication (Free)
- Go to kinde.com
- Create a free account
- Create a new application
- Copy your credentials
- Update your
.envfile:
KINDE_ISSUER_URL=https://your-domain.kinde.com
KINDE_CLIENT_ID=your_client_id
KINDE_CLIENT_SECRET=your_client_secret
Step 5: Initialize Database
# Set up database tables
npm run setup-db
Step 6: Build and Run
# Build the project
npm run build
# Start the MCP server
npm start
Project Structure
mcp-todo-rebuild/
├── src/
│ ├── server.ts # Main MCP server
│ ├── kinde-auth-server.ts # Authentication web server
│ └── setup-db.ts # Database setup script
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"mcpServers": {
"todo-mcp-server": {
"command": "node",
"args": ["dist/server.js"],
"cwd": "/path/to/your/project",
"env": {
"DATABASE_URL": "your_database_url",
"KINDE_ISSUER_URL": "your_kinde_issuer",
"KINDE_CLIENT_ID": "your_client_id",
"KINDE_CLIENT_SECRET": "your_client_secret",
"JWT_SECRET": "your_jwt_secret",
"NODE_ENV": "development"
}
}
}
}