Skip to main content
Glama
sosoyososo

lessons-mcp

by sosoyososo

lessons-mcp

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.

Quick Start

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"]
    }
  }
}

Related MCP server: Docs-MCP

Tools

suggest_metadata

Preview available categories/tags before writing. Returns existing landscape + suggestion.

record_lesson

Record a new lesson. Returns feedback on tag reuse consistency.

search_lessons

Search past lessons. FTS5 (tags/category/title) + LIKE fallback (Chinese body).

list_categories

Browse categories with recent tag activity.

list_tags

Browse tags within a category with usage count.

Storage

SQLite at ~/.claude/lessons.db (or $LESSONS_DB_PATH). One table + FTS5 index, created automatically on first run.

Integration with Claude Code

1. Add to MCP config

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"]
    }
  }
}

2. Add pointer to MEMORY.md

Add to ~/.claude/memory/MEMORY.md:

## Lessons System
Lessons MCP available. Tools: search_lessons, suggest_metadata, record_lesson,
list_categories, list_tags

3. Restart Claude Code

The server starts automatically when Claude Code launches. You should see in logs: lessons-mcp v1.0.0 | ~/.claude/lessons.db | 1 lessons

F
license - not found
-
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    C
    quality
    D
    maintenance
    An MCP server that enables searching and retrieving content from Confluence documentation systems, providing capabilities for both document searches and full page content retrieval.
    2
    1
  • A
    license
    A
    quality
    C
    maintenance
    An MCP server that allows users to efficiently search and reference user-configured documents through document listing, grep searching, semantic searching with OpenAI Embeddings, and full document retrieval.
    4
    3
    MIT
  • F
    license
    -
    quality
    D
    maintenance
    MCP server for searching internal Confluence documentation with features like score-based ranking, noun extraction, and LLM query rewriting.
    1
  • -
    license
    -
    quality
    B
    maintenance
    A vendor-agnostic MCP server for technical support engineers, providing knowledge search, ticket analysis, and resolution suggestions.

View all related MCP servers

Related MCP Connectors

  • An MCP server for deep research or task groups

  • A MCP server built for developers enabling Git based project management with project and personal…

  • MCP server for generating rough-draft project plans from natural-language prompts.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sosoyososo/lesson-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server