Sensei

Sensei

Provides Claude with persistent memory about the user's skills, learning history, and project context to deliver personalized, adaptive explanations and avoid repeating basics.

Category
Visit Server

README

Sensei

AI That Remembers How to Teach You

Claude is smart enough to be a great mentor. It just doesn't know who it's talking to.

Sensei gives Claude memory about you — your skill level, what you've learned, and what you're building.

You: "How do I handle errors in useEffect?"

Claude: [Checks Sensei]
        → Knows you understand promises, are learning React hooks
        → Knows you're building a fintech app with Supabase

Claude: "Since you're comfortable with try/catch from your async work,
        the pattern in useEffect is similar. For your Supabase queries..."

No more "First, let me explain what useEffect is..." every single time.


Quick Start

1. Add to Claude Code

Add this to your Claude Code MCP settings (~/.claude/claude_desktop_config.json):

{
  "mcpServers": {
    "sensei": {
      "command": "npx",
      "args": ["-y", "@sensei-mcp/sensei"]
    }
  }
}

2. Add the System Prompt

Copy the contents of PROMPT.md into your Claude Project's custom instructions.

This tells Claude how to use Sensei effectively.

3. Start Learning

That's it. Claude now remembers who you are.


What Sensei Tracks

Skills

Three levels. Simple.

Level Meaning
unknown Never discussed
learning Covered basics, still developing
solid Uses independently, understands well

Learning History

What Claude has taught you, so it can reference past explanations:

2025-01-14: explained "useEffect cleanup" (react-hooks)
2025-01-13: explained "async/await" (javascript)

Project Context

What you're building:

Project: fintech-app
Stack: React, TypeScript, Supabase
Notes: "REST API with row-level security"

Prerequisites

Before explaining X, Claude checks if you know the prerequisites:

useEffect requires:
├── react-hooks (concept of hooks)
├── closures (effects close over state)
└── side-effects (what effects are for)

Preferences

How you like explanations:

style: concise | detailed | example-heavy
languages: ["typescript", "python"]

Tools Reference

Tool Purpose
sensei_get_context Get everything: skills, history, project, preferences
sensei_get_skills Get skill levels
sensei_set_skill Update a skill level
sensei_log_learned Record that a concept was taught
sensei_get_history Get learning history
sensei_get_prerequisites Check prerequisites for a concept
sensei_get_project Get project context
sensei_set_project Update project context
sensei_get_preferences Get explanation preferences
sensei_set_preferences Update preferences

Privacy

  • All local. Data stored in ~/.sensei/sensei.db
  • No cloud. No accounts. No telemetry.
  • Your data. Export or delete anytime.

Development

# Clone
git clone https://github.com/your-username/sensei
cd sensei

# Install
npm install

# Build
npm run build

# Run locally
node dist/index.js

Project Structure

sensei/
├── src/
│   ├── index.ts          # MCP server entry
│   ├── db/               # SQLite database layer
│   │   ├── init.ts       # Database initialization
│   │   ├── skills.ts     # Skills CRUD
│   │   ├── history.ts    # History CRUD
│   │   ├── project.ts    # Project context
│   │   └── preferences.ts
│   └── tools/            # MCP tool handlers
│       ├── index.ts      # Tool registration
│       ├── handlers.ts   # Tool implementations
│       └── prerequisites.ts
├── knowledge/
│   └── prerequisites.json  # Concept prerequisite graph
├── PROMPT.md             # System prompt for Claude
└── README.md

Contributing

The most valuable contributions are to the prerequisite graph.

# Edit knowledge/prerequisites.json
# Add your domain expertise

{
  "kubernetes-pods": ["docker", "containers", "yaml"],
  "graphql-resolvers": ["graphql-schema", "async-await"]
}

Why "Sensei"?

先生 (sensei) — "one who comes before"

A teacher who remembers where you've been and guides where you're going.


License

MIT


<p align="center"> <strong>Sensei: AI That Remembers How to Teach You</strong> </p>

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured