Unsloth session memory MCP
Unsloth Sitzungsspeicher MCP
Ein schreibgeschützter MCP-Server, der es Unsloth Studio ermöglicht, frühere lokale Chat-Sitzungen aus seiner SQLite-Datenbank abzurufen.
Er stellt vier Tools bereit:
list_sessionsget_sessionrecall_previous_sessionsearch_sessions
Es werden nur Benutzer- und Assistententexte zurückgegeben. Systemnachrichten, Tool-Ausgaben, Reasoning-Blöcke, Bilder, Audio und Anhänge sind ausgeschlossen. Häufige API-Schlüssel- und Token-Muster werden aus dem zurückgegebenen Text geschwärzt.
Voraussetzungen
Unsloth Desktop oder Studio mit Verlauf in
~/.unsloth/studio/studio.dbNode.js 22.5 oder neuer
Related MCP server: Claude Code History MCP Server
Zu Unsloth mit einer Konfigurationsdatei hinzufügen
Laden Sie examples/unsloth-npx-import.json herunter, dann in Unsloth Studio:
Öffnen Sie einen Chat und wählen Sie MCP neben dem Komponisten.
Wählen Sie MCP-Server verwalten.
Wählen Sie Konfiguration importieren und wählen Sie die heruntergeladene JSON-Datei aus.
Aktivieren Sie Unsloth session memory und wählen Sie Verbindung testen.
Die Konfiguration führt diesen Befehl aus:
npx --yes github:kashyaparun25/unsloth-session-memory-mcp --stdioWenn Unsloth meldet, dass lokale MCP-Befehle deaktiviert sind, verwenden Sie stattdessen die lokale HTTP-Option unten. Quell-Builds können UNSLOTH_STUDIO_ALLOW_STDIO_MCP=1 setzen; verpackte Desktop-Builds können diese Option intern steuern.
Als Befehl hinzufügen
Erstellen Sie einen lokalen MCP-Server in Unsloth und geben Sie ein:
npx --yes github:kashyaparun25/unsloth-session-memory-mcp --stdioEs ist kein Repository-Checkout erforderlich. npx lädt das öffentliche GitHub-Repository herunter und startet den stdio-Server.
Als lokale URL hinzufügen
Klonen Sie das Repository und starten Sie den HTTP-Transport:
git clone https://github.com/kashyaparun25/unsloth-session-memory-mcp.git
cd unsloth-session-memory-mcp
npm install
npm run build
node dist/cli.js --http --config examples/config.jsonGeben Sie http://127.0.0.1:7331/mcp in Unsloth ein oder importieren Sie examples/unsloth-http-import.json.
Eine gehostete Website-URL kann die Unsloth-Datenbank auf Ihrem Mac nicht lesen. Führen Sie diesen Server auf demselben Mac wie Unsloth aus, es sei denn, Sie kopieren oder mounten die Datenbank absichtlich woanders.
Für den Zugriff von einem anderen Rechner aus verwenden Sie TLS und ein Bearer-Token:
UNSLOTH_MEMORY_TOKEN='replace-with-a-random-value' \
node dist/cli.js --http --host 0.0.0.0 --port 7331 --config examples/config.jsonKonfigurieren Sie dann den MCP-Client, um Authorization: Bearer <your token> zu senden. Der Server lehnt eine Nicht-Loopback-HTTP-Bindung ohne Token ab.
Konfiguration
Kopieren Sie examples/config.json, um den Datenbankpfad, Antwortbegrenzungen, erlaubte Nachrichtenrollen oder das Schwärzungsverhalten zu ändern.
Umgebungsüberschreibungen:
UNSLOTH_MEMORY_CONFIG: KonfigurationsdateipfadUNSLOTH_STUDIO_DB_PATH: Datenbankpfad-ÜberschreibungUNSLOTH_MEMORY_TOKEN: HTTP-Bearer-Token
Überprüfen Sie die Konfiguration, ohne Chat-Inhalte zurückzugeben:
npx --yes github:kashyaparun25/unsloth-session-memory-mcp --checkDer Prozess öffnet SQLite im schreibgeschützten Modus und aktiviert auch PRAGMA query_only.
In einem Chat verwenden
Fragen Sie Unsloth:
Use recall_previous_session to retrieve the previous chat, then tell me what we decided.Für den präzisen Abruf rufen Sie list_sessions und dann get_session mit der ausgewählten Thread-ID auf.
Unsloth gibt einem Drittanbieter-MCP-Server nicht automatisch die aktuelle versteckte Thread-ID. Wenn das Modell currentThreadId nicht bereitstellt, behandelt recall_previous_session den neuesten gespeicherten Thread als aktuellen Chat und gibt den zweitneuesten berechtigten Thread zurück. Die Angabe von currentThreadId und projectId vermeidet diese Annahme.
Entwickeln und testen
npm install
npm run check
npm run build
npm testLesen Sie SECURITY.md, bevor Sie den HTTP-Transport über localhost hinaus freigeben.
Lizenz
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceAn MCP server that interfaces with the Rewind.ai SQLite database to provide access to audio transcripts, screen OCR data, and activity tracking. It enables AI models to search personal memory, retrieve past conversations, and analyze application usage history.19
- AlicenseAqualityDmaintenanceAn MCP server that enables users to retrieve, filter, and search through Claude Code conversation history stored in local projects. It provides tools for listing projects and sessions, paginating through message history, and searching across conversations with keyword filtering.42511MIT
- Alicense-qualityCmaintenanceA read-only MCP server that enables LLMs to safely explore and query any SQLite database via natural language. It exposes tools for listing tables, describing schemas, and executing SELECT/WITH queries with built-in safety guards like write prevention and row limits.MIT
- Alicense-qualityBmaintenanceMCP server for unified full-text search across chat histories from Claude Code, Codex, Cursor CLI, and Antigravity CLI, using SQLite FTS5. Provides read-only tools to search sessions, list conversations, and retrieve session details.MIT
Related MCP Connectors
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.
Read-only MCP server for ClassQuill, a tutoring-business-management platform.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/kashyaparun25/unsloth-session-memory-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server