Cowork History logo

Cowork History

Searches Claude Code and Cowork conversation history with FTS5, Spotlight, and optional Ollama embeddings.

Install Cowork History

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "cowork-history": {
      "command": "uvx",
      "args": [
        "cowork-history"
      ],
      "env": {
        "OLLAMA_URL": "YOUR_VALUE_HERE",
        "EMBEDDING_MODEL": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env OLLAMA_URL=YOUR_VALUE_HERE --env EMBEDDING_MODEL=YOUR_VALUE_HERE --transport stdio cowork-history -- uvx cowork-history

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Automated check passed— started and listed 10 tools correctly ().

Overview

Hybrid search across Claude Code and Cowork history is the core capability of the cowork-history MCP server. It indexes conversations from ~/.claude/ in SQLite, combining FTS5, macOS Spotlight, and optional Ollama-powered vector search. Use it to retrieve past discussions, inspect sessions, browse project history, or rebuild the local index. Vector search requires Ollama; full-text and Spotlight modes can operate without it.

Use cases

  • Search past discussions about a bug or implementation topic
  • Find conversations associated with a specific project
  • Retrieve the full content of a known session
  • Rebuild the local history index and generate embeddings
  • Check whether Ollama and its embedding model are available

Key features

  • Hybrid FTS5, Spotlight, and vector search
  • SQLite index with incremental updates
  • Project and session browsing
  • Optional Ollama embeddings
  • Filesystem path reconstruction
  • Ollama installation and status tools

Tools10

What Cowork History lets your agent do. Expand a tool for its parameters.

Verified live~1.3k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

14/14 checks healthy over the last 65d

What it can do

From the 10 tools this server returned when we ran it; 6 declare their own safety hints.

Makes network requests · 1Read-only tools · 10
Network at startup2 connections
Files written at startup13

Observed 2026-11-02 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 9d ago via OSV.dev · cowork-history (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
Last commit10mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed10Callable tools this server registers over MCP.

How Cowork History works

What cowork-history MCP server does

The cowork-history MCP server makes Claude Code and Cowork conversation history stored under ~/.claude/ searchable through MCP. It supports keyword search, macOS Spotlight search, and semantic similarity search backed by Ollama embeddings. The search tool can choose a mode automatically or use a specific backend: auto, fts, spotlight, vector, or hybrid.

In addition to searching, the server can list recent conversations, filter listings by project, retrieve the complete content for a session ID, and enumerate projects with stored history. It also reports index statistics and which search capabilities are currently available.

How it works

Conversation metadata and content are maintained in a SQLite database at ~/.claude/.history-index/conversations.db. The database includes an FTS5 table for ranked text queries, conversation metadata such as session IDs, projects, timestamps, and topics, full conversation content, a path cache, and an optional embeddings table.

The index is refreshed automatically when a search detects that it is more than five minutes old. cowork_history_reindex can rebuild it on demand and can optionally generate embeddings. Path reconstruction probes for actual filesystem paths rather than relying only on inferred names.

FTS mode is suited to fast keyword or exact-phrase matching. Spotlight mode uses macOS mdfind. Vector mode finds related concepts even when the query does not share the same wording as the conversation, but it depends on a running Ollama service and an available embedding model. Hybrid mode combines available methods and ranks the results together.

Setup and configuration

Install the package with uvx cowork-history or pip install cowork-history. Claude Desktop can also install the packaged .mcpb release, or launch the server through an MCP configuration using the uvx command. The repository documents local development with an editable install and direct module execution.

OLLAMA_URL sets the Ollama endpoint and defaults to http://localhost:11434. EMBEDDING_MODEL selects the embedding model and defaults to nomic-embed-text. These settings are only relevant to vector embeddings; the server can use non-vector search modes without configuring Ollama.

For vector search on macOS, Ollama can be installed through Homebrew or through the server's direct-download setup tool. After installation, the service must be running and the selected embedding model must be available. Reindexing with embeddings then populates the vector data.

Tools and capabilities

  • cowork_history_search: query conversation history with hybrid, FTS, Spotlight, or vector search.
  • cowork_history_list: list recent sessions, optionally by project.
  • cowork_history_get: retrieve a session's full content by ID.
  • cowork_history_projects: list projects containing history.
  • cowork_history_stats: inspect index statistics and backend availability.
  • cowork_history_reindex: rebuild the index and optionally create embeddings.
  • history_system_check, history_ollama_status: inspect Ollama requirements and model availability.
  • history_setup_ollama, history_setup_ollama_direct: install Ollama using Homebrew or a direct download.

Limitations and notes

The server requires existing conversation data under ~/.claude/; it cannot return history that has not been created there. Spotlight search depends on macOS indexing, while vector search requires Ollama and an embedding model. For exact phrase matching, FTS mode is the documented choice. The available search backends can be checked with cowork_history_stats.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Cowork History

cowork-history is an MCP server that connects AI clients to Claude Code and Cowork conversation history stored in ~/.claude/. Its main tools search conversations with FTS, Spotlight, and optional vector search, list sessions and projects, retrieve full session content, inspect index status, and rebuild the index.

Install it with `uvx cowork-history` or `pip install cowork-history`. Claude Desktop users can also download and open the packaged `.mcpb` release, or configure Claude Desktop to launch the server with the `uvx` command.

Enable vector search by installing and running Ollama, making the `nomic-embed-text` model available, and rebuilding the history index with embeddings. The server provides tools to check requirements, install Ollama on macOS, check status, and reindex.

It documents installation for Claude Desktop and says the history includes conversations from Claude Code and Cowork.

Check that `~/.claude/` exists and contains conversation history, then verify the MCP configuration. Use `cowork_history_stats` to inspect active search backends; for vector results, also confirm that Ollama is running and the embedding model is installed.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewCowork History AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/cowork-history?style=directory)](https://allmcps.com/mcp/cowork-history)
HTML Embed
<a href="https://allmcps.com/mcp/cowork-history"><img src="https://allmcps.com/api/badge/cowork-history?style=directory" alt="Cowork History on AllMCPs" /></a>