Self-hosted MCP context server with SQLite and SSE

Self-hosted MCP context server with SQLite and SSE

mcp-server-maf38•bymaf38

An MCP server for managing persistent context, communicating via SSE with JSON-RPC 2.0 messages and storing context data in SQLite.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Exposes an MCP endpoint using SSE for real-time connections and a JSON-RPC message route for context updates.
  • •Provides REST operations to save, retrieve, batch-process, and delete context entries by key.
  • •Persists context data in SQLite at a configurable database path.
  • •Supports context metadata including type, timestamp, and source fields.

BEST FOR

  • •Maintaining persistent context across GitHub Copilot sessions.
  • •Self-hosted deployments that need context storage alongside MCP messaging.
  • •Applications that need real-time context updates over SSE.

ABOUT MCP-SERVER-MAF38

Self-hosted MCP context server with SQLite and SSE is cataloged as an MCP server attributed to maf38. An MCP server for managing persistent context, communicating via SSE with JSON-RPC 2.0 messages and storing context data in SQLite. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Self-hosted MCP context server with SQLite and SSE are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

Upstream README

View this exact version on GitHub

README.md · 21b04b9473ca · Fetched 2026-11-13 11:59:52 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

MCP Server (Model Context Protocol)

Serveur de gestion de contexte compatible avec le protocole MCP (Model Context Protocol), utilisant SQLite pour la persistance et SSE (Server-Sent Events) pour les communications en temps réel.

Version actuelle : 2.0.0

🚀 Installation

Docker (Une seule commande)

docker run -d --name mcp-server --restart unless-stopped -p 3000:3000 -v "$(pwd)/data":/app/data -e NODE_ENV=docker -e PORT=3000 -e DB_PATH=/app/data/context.db -e LOG_LEVEL=info --memory=512m --cpus=1 --health-cmd="wget -qO- http://localhost:3000/health || exit 1" --health-interval=30s --health-timeout=10s --health-retries=3 --health-start-period=10s --log-driver json-file --log-opt max-size=10m --log-opt max-file=3 maf38/mcp-server:2.0.0

Docker Compose (Installation avancée)

version: '3'

services:
  mcp-server:
    image: maf38/mcp-server:2.0.0
    container_name: mcp-server
    restart: unless-stopped
    ports:
      - "3000:3000"
    volumes:
      - /path/to/data:/app/data
    environment:
      NODE_ENV: docker
      PORT: 3000
      DB_PATH: /app/data/context.db
      LOG_LEVEL: info
    deploy:
      resources:
        limits:
          memory: 512M
          cpus: '1.0'

⚠️ N'oubliez pas de remplacer /path/to/data par le chemin réel où vous voulez stocker la base de données.

Unraid

  1. Allez dans l'Apps
  2. Recherchez "MCP Server"
  3. Cliquez sur Install

🔧 Configuration

Variables d'environnement

Essentielles

  • PORT : Port d'écoute du serveur (défaut: 3000)
  • DB_PATH : Chemin de la base de données (défaut: /app/data/context.db)

Logging

  • NODE_ENV : Environnement d'exécution ("docker" pour désactiver les fichiers de logs)
  • LOG_LEVEL : Niveau de log (error, warn, info, http, debug) (défaut: info)

📖 API

Routes MCP

Route SSE (Server-Sent Events)

GET /sse

Établit une connexion SSE pour recevoir les mises à jour en temps réel.

Message MCP

POST /message
Content-Type: application/json

{
  "jsonrpc": "2.0",
  "method": "context/update",
  "params": {
    "key": "string",
    "value": "string",
    "metadata": {
      "type": "string",
      "timestamp": "string",
      "source": "string"
    }
  }
}

Routes REST

Sauvegarder/Mettre à jour un contexte

POST /context
Content-Type: application/json

{
  "key": "string",
  "value": "string",
  "metadata": {
    "type": "string",
    "timestamp": "string",
    "source": "string"
  }
}

Récupérer un contexte

GET /context/:key

Opérations par lots (batch)

POST /context/batch
Content-Type: application/json

[
  {
    "key": "string",
    "value": "string",
    "metadata": {
      "type": "string",
      "timestamp": "string",
      "source": "string"
    }
  }
]

Supprimer un contexte

DELETE /context/:key

Routes système

Vérifier l'état du serveur

GET /health

Obtenir les capacités du serveur

GET /capabilities

🔍 Logging

En environnement Docker

  • Les logs sont envoyés vers stdout/stderr
  • Accessibles via docker logs mcp-server
  • Niveaux de log configurables via LOG_LEVEL

En environnement standard

  • Logs stockés dans le dossier logs/
  • Rotation quotidienne des fichiers
  • Compression automatique des anciens logs
  • Conservation pendant 14 jours
  • Limite de 20MB par fichier

Format des logs

YYYY-MM-DD HH:mm:ss.SSS [LEVEL] [CONTEXT] Message {Metadata}

🔒 Persistance des données

Les données sont stockées dans SQLite à l'emplacement spécifié par DB_PATH. Pour Docker et Unraid, montez un volume sur /app/data.

🛠️ Développement

Prérequis

  • Node.js >= 18
  • npm

Installation

npm install
npm run build
npm start

Tests

npm test

📦 Publication Docker

L'image est disponible sur Docker Hub :

  • Version stable (2.0.0) : maf38/mcp-server:2.0.0
  • Version latest : maf38/mcp-server:latest

🔄 Intégration avec GitHub Copilot

Ce serveur implémente le protocole MCP (Model Context Protocol) qui permet à GitHub Copilot de maintenir un contexte persistent entre les sessions. Les fonctionnalités incluent :

  • Communication bidirectionnelle via SSE
  • Format de messages JSON-RPC 2.0
  • Persistance SQLite
  • Support des métadonnées
  • Opérations batch

Pour plus d'informations sur le protocole MCP, consultez la documentation dans le dossier docs/.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Self-hosted MCP context server with SQLite and SSE from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-server-maf38)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools