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.
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
- 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
{
"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.
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.
Cursor
{
"mcpServers": {
"brain-mcp": {
"command": "uvx",
"args": [
"brain-mcp==2.0.0"
],
"env": {
"BRAIN_HOME": "<YOUR_BRAIN_HOME>"
}
}
}
}Cline
{
"mcpServers": {
"brain-mcp": {
"command": "uvx",
"args": [
"brain-mcp==2.0.0"
],
"env": {
"BRAIN_HOME": "<YOUR_BRAIN_HOME>"
}
}
}
}VS Code
{
"servers": {
"brain-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"brain-mcp==2.0.0"
],
"env": {
"BRAIN_HOME": "<YOUR_BRAIN_HOME>"
}
}
}
}Claude Desktop
{
"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.