contextbase

contextbase

1

ContextBase is an MCP server that provides functionality for AI assistants to manage user-specific context efficiently through a simple API. It features secure authentication, comprehensive logging, and memory management using a modern tech stack.

ContextBase Overview

ContextBase is a Model Context Protocol (MCP) server designed for AI agents, assistants, and applications to store, retrieve, and manage per-user context using a simple API.

Features

  • Secure user authentication using JWT and bcrypt
  • API endpoints for memory data management
  • Comprehensive logging of user actions
  • Built with modern technologies: TypeScript, Fastify, and Prisma ORM
  • Uses PostgreSQL for persistent data storage and Redis for caching

Prerequisites

  • Node.js (v14 or higher)
  • PostgreSQL
  • Redis
  • Docker and Docker Compose for optional containerized deployment

Installation

  1. Clone the repository and navigate to the directory.
  2. Install dependencies using npm.
  3. Set up environment variables in a .env file.
  4. Run database migrations.
  5. Start the server using npm or Docker.