Retrace Docs
Developer

MCP Server

Use Retrace as a data source for Claude Desktop and other MCP clients.

What is MCP?

Model Context Protocol (MCP) is an open standard that lets AI assistants access external data through "tools." Retrace includes an MCP server that exposes your conversation data as tools Claude Desktop can call.

How it works

The MCP server runs as a stdio server: Claude Desktop launches it as a subprocess and communicates over stdin/stdout. No network port, no authentication needed.

When you ask Claude Desktop a question about your conversations, it calls Retrace MCP tools to fetch the relevant data, then uses that data to answer.

Setup

  1. Open Retrace and go to Settings
  2. Click the MCP tab
  3. Click Install for Claude Desktop
  4. Retrace writes the server config to Claude Desktop's claude_desktop_config.json

You can also install manually. Add this to your Claude Desktop config:

{
  "mcpServers": {
    "retrace": {
      "command": "bun",
      "args": ["run", "/path/to/retrace/packages/server/src/mcp-server.ts"]
    }
  }
}

Available tools

The MCP server exposes these tools to Claude:

ToolDescription
search_conversationsSearch across all conversations (keyword or semantic)
get_conversationGet a specific conversation with messages
list_peopleList people in your network
get_personGet details about a person and their conversations
get_segmentsGet processed segments for a conversation
get_topicsList extracted topics
get_reflectionsGet past reflections and time capsules

Permissions

The MCP server respects labels and permissions. You can create a consumer profile for the MCP server and restrict which conversations it can access.

For example, if you only want Claude Desktop to see work conversations, create a permission rule: MCP server can only access conversations labeled #work.

Example prompts

Once set up, try asking Claude Desktop:

  • "What have I been talking about with Sarah this month?"
  • "Summarize my recent WhatsApp conversations"
  • "What topics come up most in my conversations?"

On this page