Back to Directory/Communication

AI Pensieve MCP

Search and cross-reference local AI chat history with read-only tools and source citations.

CommunicationPythonv0.2.0

AI Pensieve MCP

中文版:README · 客户端设置 · 用户指南

Search your imported AI conversations locally, either through the illustrated desktop room or from an MCP client.

Privacy: the archive stays on your computer and MCP tools are read-only. Retrieved excerpts may be sent to the AI provider connected to your client. How your data is handled

Install

Open the desktop with uv:

uvx ai-pensieve

For a persistent command:

pipx install ai-pensieve
pensieve

To run only the read-only MCP server against an existing archive:

uvx ai-pensieve-mcp /absolute/path/to/archive.sqlite

See the package installation guide for client setup, platform requirements, persistent archive locations, and source installation.

Use the desktop

  1. Open the wooden door and touch the Pensieve.
  2. Choose Import a memory, then select a provider bottle, Unmarked for auto-detection, or Find & import local sessions.
  3. Choose an exported file or folder, inspect the selection, and pour it into the basin. The original files stay unchanged.
  4. Choose Search the waters, search by keyword, and open a smoke result to read the original thread.

The GUI imports ChatGPT, Claude, Gemini, DeepSeek, Grok, and supported coding sessions. NotebookLM currently provides notebook metadata only. See the full compatibility matrix and export guide.

Connect an AI client

Import an archive first, then follow AI client setup and check the client verification status. Version 0.2.0 adds shelf → Connect to an AI for copyable setup and pensieve --demo to try invented memories in a temporary archive. Try prompts such as:

Search my archive for discussions about machine learning. Show the source conversations and dates supporting your answer.

Find discussions of my project across different AI providers and compare the decisions recorded in them.

More example prompts and tool details.

The archive is a local snapshot: import or refresh again when new conversations should appear. For command-line imports, custom source folders, and revision and deduplication rules, see the user guide.

Licensed under Apache License 2.0.

Installation

Source-derived launch command. Check the maintainer’s required arguments and credentials before running:

bash
uvx ai-pensieve-mcp

Set up in your AI client

Merge this template into ~/Library/Application Support/Claude/claude_desktop_config.json. Keep existing servers. Add any arguments, credentials, and permissions required by the maintainer; this template has not been install-tested.

json
{
  "mcpServers": {
    "io-github-as-xs-ai-pensieve-mcp": {
      "command": "uvx",
      "args": [
        "ai-pensieve-mcp"
      ]
    }
  }
}

Restart Claude Desktop completely for changes to take effect. Confirm the server appears connected in the client’s tool list, then try a read-only example from its documentation.

Claude Desktop setup reference

Package

ai-pensieve-mcppypi

Compatible MCP Clients

AI Pensieve MCP works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.

  • Claude Desktop~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.
  • Cursor~/.cursor/mcp.jsonRestart Cursor for changes to take effect.
  • VS Code.vscode/mcp.jsonReload VS Code window for changes to take effect.
  • Windsurf~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect.
  • Claude Code.mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.

Learn More