Koskamo

brain-mcp

A local-first MCP server that records AI conversation sessions from Claude Code, Codex, and Pi before they are deleted. It stores byte-exact copies in a local DuckDB index, allowing users to query history with verifiable citations or receive an abstention if no data is found. It supports restoring deleted sessions and operates as a CLI verb or MCP server.

Package and access

Local package with source-attributed installation metadata. Koskamo does not execute packages during review.

brain-mcp logo, by mordechaipotashCommunity listingLocal stdioSource reviewed; not executedPublished by mordechaipotash
Vendor documentation

Checks and signals

Each line is separate evidence, not a trust score.

  • Popularity 81 GitHub stars

What you can do with it

  • Record AI conversation sessions before automatic deletion
  • Query historical AI interactions with verifiable citations
  • Restore deleted session files to their original state
  • Index local AI history using DuckDB for fast retrieval

Source and maintenance

Community listingRegistry 2.0.0MIT
Last repository push
Latest release
v2.1.1
Maintenance checked

Packages and installation

Source-provided package data. Koskamo has not executed or live-probed this package.

brain-mcp 2.0.0

pypi
brain-mcp package definition
{
  "version": "2.0.0",
  "transport": "stdio",
  "identifier": "brain-mcp",
  "registryType": "pypi",
  "environmentVariables": [
    {
      "name": "BRAIN_HOME",
      "format": "string",
      "description": "Data directory for the floor (default ~/.brain)"
    }
  ]
}

Tools

Reported by the attributed source; not independently observed by Koskamo.

No tool definitions available.

Maintenance history

Public check and source-refresh events. Editorial and ownership records remain private.

  • · repository · passed · metadata changed · updated
  • · backfill · recorded · Pre-expansion baseline; unobserved rich metadata remains unknown

Connect from your client

Each snippet configures the same source-provided package; replace placeholders before use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Cursor

Merge this local stdio configuration, replace every placeholder environment value, and restart Cursor. Koskamo has not executed this package.
Cursor configuration
{
  "mcpServers": {
    "brain-mcp": {
      "command": "uvx",
      "args": [
        "brain-mcp==2.0.0"
      ],
      "env": {
        "BRAIN_HOME": "<YOUR_BRAIN_HOME>"
      }
    }
  }
}

Cline

Merge this local stdio configuration, replace every placeholder environment value, and restart Cline. Koskamo has not executed this package.
Cline configuration
{
  "mcpServers": {
    "brain-mcp": {
      "command": "uvx",
      "args": [
        "brain-mcp==2.0.0"
      ],
      "env": {
        "BRAIN_HOME": "<YOUR_BRAIN_HOME>"
      }
    }
  }
}

VS Code

Merge this local stdio configuration, replace every placeholder environment value, and restart VS Code. Koskamo has not executed this package.
VS Code configuration
{
  "servers": {
    "brain-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "brain-mcp==2.0.0"
      ],
      "env": {
        "BRAIN_HOME": "<YOUR_BRAIN_HOME>"
      }
    }
  }
}

Claude Desktop

Merge this local stdio configuration, replace every placeholder environment value, and restart Claude Desktop. Koskamo has not executed this package.
Claude Desktop configuration
{
  "mcpServers": {
    "brain-mcp": {
      "command": "uvx",
      "args": [
        "brain-mcp==2.0.0"
      ],
      "env": {
        "BRAIN_HOME": "<YOUR_BRAIN_HOME>"
      }
    }
  }
}

Let your agent find its tools

Find servers like brain-mcp from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.