Skip to main content
Glama
Pensieve MCP Server

Pensieve MCP Server

by EmjayAhn

Pensieve MCP Server

A MCP (Model Context Protocol) server that enables conversation history sharing between ChatGPT and Claude with multi-user support and cloud deployment.

Features

  • Multi-user Support: Each user has their own isolated conversation space

  • Authentication: Secure JWT-based authentication

  • Cloud Deployment: Deploy to Azure Container Apps

  • Save Conversations: Store conversation history securely

  • Load Conversations: Retrieve saved conversations by ID

  • List Conversations: View all saved conversations

  • Search Conversations: Search conversation content by keywords

  • Append to Conversations: Add new messages to existing conversations

Related MCP server: Conversation Handoff MCP

Installation

  1. Clone the repository:

git clone <repository-url>
cd pensieve-mcp
  1. Install dependencies:

uv pip install -e .

Usage in Claude

  1. Open Claude Desktop configuration file:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

    • Windows: %APPDATA%\Claude\claude_desktop_config.json

  2. Add the following configuration:

{
  "mcpServers": {
    "pensieve-mcp": {
      "command": "uv",
      "args": ["run", "python", "-m", "mcp_server.server"],
      "cwd": "/path/to/pensieve-mcp"
    }
  }
}
  1. Restart Claude Desktop

Usage Examples

Save Conversation

Use the save_conversation tool to save the current conversation. You can add metadata like title or tags.

Load Conversation

Use the load_conversation tool to retrieve a previous conversation by its ID.

Search Conversations

Use the search_conversations tool to find conversations containing specific keywords.

Architecture

Local Mode

Conversation data is stored as JSON files in the ~/.pensieve-mcp/conversations/ directory.

Cloud Mode (Azure)

  • API Server: FastAPI backend deployed on Azure Container Apps

  • Database: Azure Cosmos DB (MongoDB API)

  • Authentication: JWT-based user authentication

  • MCP Client: Connects to the cloud API

Azure Deployment

  1. Prerequisites:

    • Azure CLI installed and logged in

    • Docker installed

  2. Deploy to Azure:

    cd deploy
    ./deploy-azure.sh
  3. Configure MCP client: Set the API URL in your environment:

    export PENSIEVE_API_URL="https://your-api-url.azurecontainerapps.io"

Using with Authentication

  1. Register a new account:

    Use the 'register' tool with your email and password
  2. Login:

    Use the 'login' tool with your credentials
  3. Your token will be automatically saved for subsequent requests.

Available Tools

5 tools
append_to_conversationC

기존 대화에 메시지를 추가합니다

Inputs: conversation_id (required), messages (required).

list_conversationsC

저장된 대화 목록을 조회합니다

Inputs: limit, offset.

load_conversationC

저장된 대화를 불러옵니다

Inputs: conversation_id (required).

save_conversationC

대화 내역을 저장합니다

Inputs: messages (required), conversation_id, metadata.

search_conversationsC

대화 내용을 검색합니다

Inputs: query (required), limit.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: append_to_conversation modifies content, list_conversations retrieves metadata, load_conversation accesses full conversations, save_conversation persists them, and search_conversations finds specific content. There is no overlap in functionality that would cause confusion.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern with snake_case (e.g., append_to_conversation, list_conversations). The verbs (append, list, load, save, search) are distinct and appropriately descriptive, making the set predictable and easy to understand.

    Tool Count5/5

    With 5 tools, this server is well-scoped for managing conversations, covering essential operations like listing, loading, saving, appending, and searching. Each tool earns its place without feeling excessive or insufficient for the domain.

    Completeness4/5

    The tool set provides strong coverage for core conversation management tasks, including CRUD-like operations (create via append/save, read via list/load/search). A minor gap is the lack of explicit delete or update tools, but agents can work around this by overwriting or managing storage externally.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables searching and retrieving Claude Code conversation history that would otherwise expire after 30 days. Supports full-text search, semantic search, and session management with automatic backup of all conversations.
      6 npm
      28
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      An AI conversation management layer that enables creating chat sessions, persisting message history to GitHub, and performing semantic searches over past interactions. It supports multi-turn threading and context injection to integrate external memory sources into Claude conversations.
      12
      1
      MIT
    • A
      license
      Not graded
      quality
      F
      maintenance
      Provides Claude with long-term memory by indexing conversation history, enabling semantic search, decision tracking, and cross-project search.
      18 npm
      29
      MIT