whimsicality-mcp
Officialwhimsicality-mcp
AIエージェントに永続メモリを提供するMCP(Model Context Protocol)サーバーです。コンテキスト保存、ファクト、プラン、RAG検索、コードスニペット、会話の圧縮がセッションやプロセスをまたいで保持されます。
MCP互換のエージェントならどれでも動作します:Devin CLI、Claude Desktop、Cursorなど。
クイックスタート
# Install globally
npm install -g whimsicality-mcp
# Or run without installing
npx whimsicality-mcp次に、エージェントのMCP設定に追加します:
{
"mcpServers": {
"whimsicality": {
"command": "npx",
"args": ["whimsicality-mcp"]
}
}
}これだけです。サーバーはディスクベースの永続化でそのまま動作し、ネイティブ依存関係は不要です。データは~/.whimsicality/kernel-storage/に保存されます。
Related MCP server: Memory MCP
ツール
サーバーは14個のツールを公開しており、すべてwhim_プレフィックスが付いています:
ツール | 目的 |
| 永続的なテキストコンテキストスロット |
| キーと値のファクト(ユーザー設定、プロジェクトの決定事項) |
| 長期的な作業のためのプランドキュメント |
| ドキュメントのインデックス化とセマンティック検索 |
| 再利用可能なコードスニペット |
| 会話履歴を要約に圧縮 |
エージェントの使用方法
セッション開始時 — 以前のエージェントから状態を復元:
1. whim_plan_get({}) → read the current plan
2. whim_facts_list({}) → list all facts
3. whim_facts_get({name: "..."}) → read relevant facts
4. whim_context_list({}) → list all context slots
5. whim_context_get({key: "..."}) → read relevant slots作業中 — 次のエージェントのために状態を保存:
whim_plan_save({plan: "updated plan with progress and next steps"})
whim_facts_save({name: "new_fact", value: "..."})
whim_context_set({key: "what_i_learned", text: "..."})バックエンド
サーバーはカーネルを見つける4つの方法をサポートしており、順に試行されます:
1. ディスクフォールバック(デフォルト、セットアップ不要)
そのまま動作します。データは~/.whimsicality/kernel-storage/whim-mcp-store.jsonのJSONファイルに永続化されます。RAG/スニペットは単語オーバーラップ検索を使用します。ネイティブ依存関係はありません。
2. プリビルドカーネルバイナリ(最も簡単なアップグレード)
npm install @whimsicalitylabs/kernel-prebuiltプラットフォーム固有のプリビルドバイナリは、npmのoptionalDependenciesを介して配布されます。サーバーはnode_modules内のバイナリを自動検出します。
注: プリビルドバイナリはまだすべてのプラットフォームで利用できるわけではありません。ステータスについてはkernel-prebuiltを参照してください。
3. 既存のバイナリを指定
{
"mcpServers": {
"whimsicality": {
"command": "npx",
"args": ["whimsicality-mcp"],
"env": {
"WHIMSICALITY_KERNEL_BIN": "/path/to/whimsicality-kernel"
}
}
}
}4. ソースからビルド
Rustワークスペースをクローンしてビルド:
git clone https://github.com/WhimsicalityLabs/whimsicality-kernel.git
cd whimsicality-kernel
cargo build --release次に、WHIMSICALITY_KERNEL_BINをtarget/release/whimsicality-kernelに設定します。
カーネルが追加するもの
Rustカーネルは以下を提供します:
階層型ストレージ:ホット(RAM)→ ウォーム(mmap)→ コールド(ディスク上のzstd)で、自動プロモーション/デモーション付き
コンテンツアドレス型の重複排除:同一の値はblake3ハッシュを介してストレージを共有
ロックフリーのホットパス:並行読み取り用のDashMap
追記専用セッションログ:ブランチ/フォーク対応のbincodeエントリ
構造化コンテキストの組み立て:フラットなトークンストリームではなく、名前付き変数
カーネルが利用可能な場合、サーバーはカーネルとディスクの両方にデュアルライトします。これにより、カーネルの高速なセッション内アクセスと、セッション間の信頼性のためのディスク永続化の両方が得られます(カーネルのホットティアはRAMのみで、プロセス終了時に失われます)。
設定
すべての設定は環境変数を介して行います:
変数 | デフォルト | 説明 |
|
| すべての保存データのルートディレクトリ |
| (自動検出) | Rustカーネルバイナリへのパス |
|
| ホットティアのRAM予算(MB単位、カーネルのみ) |
開発
git clone https://github.com/WhimsicalityLabs/Whimsicality-MCP.git
cd whimsicality-mcp
npm install
npm run build
node bin/whimsicality-mcp.jsライセンス
MIT
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-qualityDmaintenanceProvides AI agents with persistent, searchable memory that survives across conversations using semantic search, temporal versioning, and smart organization. Enables long-term context retention and cross-session continuity for AI assistants.14
- Flicense-qualityDmaintenanceProvides persistent AI agent memory using a local vector database for long-term semantic storage and short-term session scratchpads. It enables low-latency memory operations including search, storage, and bulk management without external cloud dependencies.
- Alicense-qualityDmaintenanceProvides persistent memory storage for AI agents with full-text search, tagging, and importance levels, enabling agents to store and retrieve memories efficiently.MIT
- AlicenseAqualityAmaintenanceProvides persistent, searchable memory for AI agents, enabling them to retain, recall, and reflect on information across conversations.191MIT
Related MCP Connectors
Persistent memory for AI agents. Search, store, and recall across sessions.
Persistent memory and knowledge management for AI agents with semantic search and 50+ tools.
Universal memory for AI agents and tools. Save, organize and search context anywhere.
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/WhimsicalityLabs/Whimsicality-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server