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.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

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.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 21b04b9473ca · 采集于 2026-11-13 11:59:52 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

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.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

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