Skip to main content
Glama

Hindsight

Open-source MCP server that gives AI coding assistants persistent memory.

Features

  • Persistent Memory: Records conversations, tracks file changes, extracts preferences and decisions

  • Auto Profile Generation: Builds user profiles and injects them into AGENTS.md

  • Context Awareness: New AI sessions start with full context of your coding style and project history

  • Multi-Project Support: Isolated memory per project with global user preferences

  • File Watching: Automatically tracks file modifications, creations, and deletions

Related MCP server: iai-mcp

Installation

npm install
npm run build

Configuration

Add to your OpenCode config (~/.config/opencode/opencode.json):

{
  "mcpServers": {
    "hindsight": {
      "command": "node",
      "args": ["path/to/hindsight/dist/index.js"]
    }
  }
}

Usage

Hindsight provides these MCP tools:

  • record_conversation - Record user/AI conversations

  • start_file_watching - Monitor file changes in a directory

  • stop_file_watching - Stop file monitoring

  • get_user_context - Get current user profile and context

  • get_memories - Retrieve stored memories

  • add_memory - Manually add a memory

  • refresh_profile - Regenerate user profile

How It Works

  1. Records Interactions: Captures conversations and file changes

  2. Extracts Patterns: Identifies preferences, decisions, and coding patterns

  3. Generates Profile: Creates structured user profile in AGENTS.md

  4. Provides Context: AI assistants read the profile on startup

Data Storage

  • Database: ~/.hindsight/hindsight.db (SQLite)

  • Profile: ~/.config/opencode/AGENTS.md

License

MIT

A
license - permissive license
-
quality - not tested
C
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

  • A
    license
    B
    quality
    D
    maintenance
    An MCP server that gives AI assistants persistent memory across sessions. It stores project context, decisions, and progress in structured markdown files as well as a knowledge graph and sequential thinking for better memory storage.
    Last updated
    36
    63
    1
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    A local MCP server that gives AI assistants a long-term memory by capturing sessions verbatim and surfacing relevant context automatically.
    Last updated
    15
    466
    MIT

View all related MCP servers

Related MCP Connectors

  • Cloud-hosted MCP server for durable AI memory

  • Persistent memory and cross-session learning for AI coding assistants (hosted remote MCP).

  • User-owned memory for AI agents, Copilot, Claude, IDEs, CLIs, and chat apps over remote MCP.

View all MCP Connectors

Latest Blog Posts

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/LeoYueDev/handsight'

If you have feedback or need assistance with the MCP directory API, please join our Discord server