Contextdb
No description available
Ask AI about Contextdb
Powered by Claude Β· Grounded in docs
I know everything about Contextdb. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
ContextDB
Context Checkpointing for Claude Power Users
ContextDB is an MCP (Model Context Protocol) server that allows you to save, load, and manage contexts for your Claude conversations. Never lose important context again - checkpoint your conversations and resume them anytime.
Overview
ContextDB solves the problem of token usage compounding in long conversations with Claude. Instead of starting fresh each time, you can:
- Save contexts - Capture the current state of your conversation
- Load contexts - Resume previous conversations with full context
- Manage contexts - View, search, and organize your saved contexts
- Version contexts - Automatic history tracking for all changes
Project Structure
contextdb/
βββ web/ # Next.js web application
β βββ app/ # Next.js App Router pages
β βββ components/ # React components
β βββ lib/ # Utilities (Supabase client, etc.)
β βββ package.json
βββ mcp-server/ # Express.js MCP server
β βββ src/ # TypeScript source files
β βββ migrations/ # Database migrations
β βββ package.json
βββ docs/ # Setup and documentation guides
βββ README.md
Prerequisites
Before you begin, ensure you have:
- Node.js 20+ installed
- npm or pnpm package manager
- Accounts for:
Quick Start
1. Clone and Install
# Clone the repository
git clone <your-repo-url>
cd contextdb
# Install web app dependencies
cd web
npm install
# Install MCP server dependencies
cd ../mcp-server
npm install
2. Set Up Infrastructure
Follow these guides in order:
- Supabase Setup - Database and authentication
- Auth0 Setup - OAuth provider configuration
- Deployment Setup - Railway and Vercel deployment
3. Configure Environment Variables
Web App (web/.env)
Create web/.env from web/.env.example:
cd web
cp .env.example .env
# Edit .env with your Supabase and Auth0 credentials
MCP Server (mcp-server/.env)
Create mcp-server/.env from mcp-server/.env.example:
cd mcp-server
cp .env.example .env
# Edit .env with your Supabase and Auth0 credentials
4. Run Database Migrations
- Open Supabase SQL Editor
- Copy contents of
mcp-server/migrations/001_initial_schema.sql - Run the migration
- Verify tables are created
5. Start Development Servers
Web App
cd web
npm run dev
Visit http://localhost:3000
MCP Server
cd mcp-server
npm run dev
Server runs on http://localhost:3000 (or PORT from .env)
Development Workflow
Web App Development
cd web
npm run dev # Start development server
npm run build # Build for production
npm run start # Start production server
npm run lint # Run ESLint
MCP Server Development
cd mcp-server
npm run dev # Start with hot reload (tsx watch)
npm run build # Compile TypeScript
npm start # Run compiled JavaScript
npm run type-check # Type check without building
Architecture
System Components
- Web App (Next.js): User-facing dashboard for viewing and managing contexts
- MCP Server (Express.js): Handles MCP protocol, OAuth, and database operations
- Supabase: PostgreSQL database with Row-Level Security
- Auth0: OAuth 2.1 provider with Dynamic Client Registration
Data Flow
- User connects ContextDB to Claude.ai via custom connector
- Claude.ai authenticates with Auth0 (OAuth 2.1)
- MCP server validates JWT tokens and handles tool calls
- All data stored in Supabase with user isolation via RLS
Features
MVP Features (Current)
- β Email/password and Google OAuth authentication
- β Web dashboard for viewing contexts
- β 6 MCP tools: create, get, list, append, update, delete contexts
- β Context versioning and history
- β Tag-based organization
- β Search and filter contexts
Coming in V1
- Admin dashboard with analytics
- Usage tracking
- Public launch features
Coming in V2 (If Successful)
- Paid tiers (Free, Pro, Plus)
- Usage limits
- Stripe integration
MCP Tools
The MCP server provides these tools for Claude:
- create_context - Create a new context with background, assumptions, decisions, etc.
- get_context - Load an existing context by name
- list_contexts - List all contexts (names and summaries)
- append_context - Add new information to an existing context
- update_context - Replace/update fields in a context
- delete_context - Remove a context
Documentation
- Supabase Setup Guide - Database configuration
- Auth0 Setup Guide - OAuth configuration
- Deployment Guide - Railway and Vercel setup
- Roadmap - Full development roadmap
Contributing
This is currently a personal project in MVP phase. Contributions welcome after public launch (V1).
License
MIT
Support
For issues and questions:
- Check the documentation
- Review the roadmap
- Open an issue on GitHub
Built with: Next.js, Express.js, TypeScript, Supabase, Auth0, Tailwind CSS
