Unsloth session memory MCP
Unsloth セッションメモリ MCP
Unsloth Studio が SQLite データベースから以前のローカルチャットセッションを取得できる、読み取り専用の MCP サーバーです。
以下の4つのツールを提供します:
list_sessionsget_sessionrecall_previous_sessionsearch_sessions
ユーザーとアシスタントのテキストのみが返されます。システムメッセージ、ツール出力、推論ブロック、画像、音声、添付ファイルは除外されます。一般的な API キーやトークンパターンは、返されるテキストから編集されます。
必要条件
履歴が
~/.unsloth/studio/studio.dbにある Unsloth Desktop または StudioNode.js 22.5 以降
Related MCP server: Claude Code History MCP Server
設定ファイルで Unsloth に追加する
examples/unsloth-npx-import.json をダウンロードし、Unsloth Studio で以下の手順を実行します:
チャットを開き、コンポーザーの横にある MCP を選択します。
MCP サーバーの管理 を選択します。
設定のインポート を選択し、ダウンロードした JSON ファイルを選びます。
Unsloth session memory を有効にし、接続テスト を選択します。
この設定は以下のコマンドを実行します:
npx --yes github:kashyaparun25/unsloth-session-memory-mcp --stdioUnsloth がローカル MCP コマンドが無効であると報告した場合は、以下のローカル HTTP オプションを使用してください。ソースビルドでは UNSLOTH_STUDIO_ALLOW_STDIO_MCP=1 を設定できます。パッケージ版 Desktop ビルドでは、このオプションを内部で制御する場合があります。
コマンドとして追加する
Unsloth でローカル MCP サーバーを作成し、以下を入力します:
npx --yes github:kashyaparun25/unsloth-session-memory-mcp --stdioリポジトリのチェックアウトは不要です。npx が公開 GitHub リポジトリをダウンロードし、stdio サーバーを起動します。
ローカル URL として追加する
リポジトリをクローンし、HTTP トランスポートを起動します:
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.jsonUnsloth で http://127.0.0.1:7331/mcp を入力するか、examples/unsloth-http-import.json をインポートします。
ホスト型のウェブサイト URL は、お使いの Mac 上の Unsloth データベースを読み取ることができません。このサーバーは、データベースを意図的にコピーまたはマウントしない限り、Unsloth と同じ Mac で実行してください。
別のマシンからアクセスするには、TLS とベアラートークンを使用します:
UNSLOTH_MEMORY_TOKEN='replace-with-a-random-value' \
node dist/cli.js --http --host 0.0.0.0 --port 7331 --config examples/config.json次に、MCP クライアントが Authorization: Bearer <your token> を送信するように設定します。トークンがない場合、サーバーはループバック以外の HTTP バインディングを拒否します。
設定
examples/config.json をコピーして、データベースパス、応答制限、許可されるメッセージロール、または編集動作を変更します。
環境変数による上書き:
UNSLOTH_MEMORY_CONFIG: 設定ファイルのパスUNSLOTH_STUDIO_DB_PATH: データベースパスの上書きUNSLOTH_MEMORY_TOKEN: HTTP ベアラートークン
チャットコンテンツを返さずに設定を確認する:
npx --yes github:kashyaparun25/unsloth-session-memory-mcp --checkプロセスは SQLite を読み取り専用モードで開き、PRAGMA query_only も有効にします。
チャットで使用する
Unsloth に質問する:
Use recall_previous_session to retrieve the previous chat, then tell me what we decided.正確な検索には、list_sessions を呼び出し、次に選択したスレッド ID で get_session を呼び出します。
Unsloth は、サードパーティの MCP サーバーに現在の非表示のスレッド ID を自動的に提供しません。モデルが currentThreadId を提供しない場合、recall_previous_session は最新の保存スレッドを現在のチャットとみなし、2番目に新しい該当スレッドを返します。currentThreadId と projectId を指定すると、その仮定を回避できます。
開発とテスト
npm install
npm run check
npm run build
npm testHTTP トランスポートを localhost 以外に公開する前に、SECURITY.md を参照してください。
ライセンス
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