loading…
Search for a command to run...
loading…
An MCP server that stores and searches lessons learned to prevent repeating mistakes, with full-text search and tag-based navigation.
An MCP server that stores and searches lessons learned to prevent repeating mistakes, with full-text search and tag-based navigation.
An MCP server for Claude Code that stores and searches lessons learned, so Claude doesn't repeat past mistakes. Think of it as a persistent experience log with full-text search and tag-based navigation.
git clone https://github.com/<your>/lessons-mcp
cd lessons-mcp
pip install mcp
Add to ~/.claude/mcp.json:
{
"mcpServers": {
"lessons": {
"command": "python3",
"args": ["/path/to/lessons-mcp/server/server.py"]
}
}
}
Preview available categories/tags before writing. Returns existing landscape + suggestion.
Record a new lesson. Returns feedback on tag reuse consistency.
Search past lessons. FTS5 (tags/category/title) + LIKE fallback (Chinese body).
Browse categories with recent tag activity.
Browse tags within a category with usage count.
SQLite at ~/.claude/lessons.db (or $LESSONS_DB_PATH).
One table + FTS5 index, created automatically on first run.
Add to ~/.claude/mcp.json:
{
"mcpServers": {
"lessons": {
"command": "/Users/karsa/proj/lessons-mcp/.venv/bin/python3",
"args": ["/Users/karsa/proj/lessons-mcp/server/server.py"]
}
}
}
Add to ~/.claude/memory/MEMORY.md:
## Lessons System
Lessons MCP available. Tools: search_lessons, suggest_metadata, record_lesson,
list_categories, list_tags
The server starts automatically when Claude Code launches.
You should see in logs: lessons-mcp v1.0.0 | ~/.claude/lessons.db | 1 lessons
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"lessons-mcp": {
"command": "npx",
"args": []
}
}
}