Memory Bear
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Memory BearSearch for notes on machine learning algorithms"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Memory Bear 🐻
An intelligent MCP (Model Context Protocol) server for memory-based knowledge management with real-time file monitoring and vector database integration.
Overview
Memory Bear transforms your markdown notes into an intelligent, searchable knowledge base that AI assistants can interact with seamlessly. It monitors your notes directory, automatically indexes content using vector embeddings, and provides powerful tools for searching, creating, and managing your knowledge.
Key Features
🔍 Semantic Search: Vector-based search across your entire note collection
📝 Smart Note Creation: AI-assisted study note generation with structured templates
🃏 Flashcard Management: Spaced repetition system with FSRS algorithm integration
👀 Real-time Monitoring: Automatic indexing when files are created, modified, or deleted
🏷️ Tag-based Organization: Filter and organize notes with flexible tagging
🤖 MCP Integration: Seamless integration with AI assistants like Claude
📊 Study Analytics: Track learning progress with card statistics and overviews
Related MCP server: genmem
Installation
Prerequisites
Python 3.10 or higher
uv package manager (recommended) or pip
Install from PyPI
pip install memory-bearInstall from Source
git clone https://github.com/ag4852/memory-bear.git
cd memory-bear
uv syncQuick Start
1. Environment Setup
Create a .env file in your project directory:
# Required: Your notes directory
NOTES_DIR=/path/to/your/notes
# Optional: Test notes directory for development
TEST_NOTES_DIR=/path/to/test/notes
# Optional: Hugging Face API key for advanced embeddings
HUGGINGFACE_API_KEY=your_hf_token_here
# Optional: Customize content tags and subjects
CONTENT_TAGS=lecture,homework,exam,concepts,research
SUBJECTS=math,science,history,general
# Optional: Logging level
LOG_LEVEL=INFO2. Start the Server
# Start the main MCP server
memory-bear --server
# Or start in test mode
memory-bear --test3. Configure Your AI Assistant
Add Memory Bear to your AI assistant's MCP configuration. For Claude Desktop, add to your claude_desktop_config.json:
{
"mcpServers": {
"memory-bear": {
"command": "memory-bear",
"args": ["--server"]
}
}
}Usage
Available Tools
Memory Bear provides several tools that AI assistants can use:
📖 Note Management
search_notes: Semantic search across your knowledge basecreate_study_note: Generate structured study notes with templatesedit_study_note: Modify existing study notesfind_best_match: Find the most relevant note for a given query
🃏 Flashcard System
create_cards_from_note: Generate flashcards from study notesget_cards: Retrieve flashcards for study sessionsget_cards_overview: View statistics and progressupdate_card: Record study session results for spaced repetition
📚 Deck Management
archive_deck: Archive completed or unused decksunarchive_deck: Restore archived decksdelete_deck: Permanently remove decks
Example Interactions
User: "Search for notes about machine learning algorithms"
AI: Uses search_notes tool to find relevant content
User: "Create a study note about neural networks"
AI: Uses create_study_note tool to generate structured content
User: "Show me my flashcards for review"
AI: Uses get_cards tool to retrieve due cards for studyNote Format
Memory Bear works with markdown files that include frontmatter metadata:
---
title: "Machine Learning Basics"
subject: "computer-science"
tags: ["ml", "algorithms", "neural-networks"]
---
### Recall Prompts
- What is supervised learning?
- How do neural networks process information?
- What are the main types of machine learning?
---
### Key Concepts
**Supervised Learning**: A type of machine learning where...
**Neural Networks**: Computational models inspired by...Configuration
Environment Variables
Variable | Description | Default |
| Path to your notes directory | Required |
| Path for test notes | Optional |
| API key for HF embeddings | Optional |
| Comma-separated list of content tags |
|
| Comma-separated list of subjects |
|
| Logging verbosity |
|
| Enable test mode |
|
Database
Memory Bear uses Weaviate as its vector database, which runs locally and provides:
Automatic text vectorization
Semantic search capabilities
Real-time indexing
Metadata filtering
Architecture
┌─────────────────┐ ┌──────────────────┐ ┌─────────────────┐
│ Markdown │ │ File Watcher │ │ Weaviate │
│ Notes │───▶│ (Watchdog) │───▶│ Vector DB │
│ Directory │ │ │ │ │
└─────────────────┘ └──────────────────┘ └─────────────────┘
│
┌─────────────────┐ ┌──────────────────┐ │
│ AI Assistant │◀──▶│ MCP Server │◀──────────┘
│ (Claude, etc) │ │ (FastMCP) │
└─────────────────┘ └──────────────────┘Components
File Watcher: Monitors notes directory for changes using Watchdog
Vector Database: Weaviate instance for semantic search and storage
MCP Server: FastMCP-based server exposing tools to AI assistants
Sync Engine: Keeps filesystem and database in sync
FSRS Integration: Spaced repetition algorithm for optimal learning
Development
Setup Development Environment
git clone https://github.com/ag4852/memory-bear.git
cd memory-bear
uv sync --devRunning Tests
# Run the test suite
uv run pytest
# Run with coverage
uv run pytest --cov=memory_bear
# Test the file watcher
memory-bear --testProject Structure
src/memory_bear/
├── main.py # Entry point
├── server.py # MCP server setup
├── config.py # Configuration management
├── database/ # Weaviate integration
├── tools/ # MCP tool implementations
├── utils/ # Utility functions
├── watcher/ # File monitoring system
└── templates/ # Note templatesContributing
Fork the repository
Create a feature branch (
git checkout -b feature/amazing-feature)Commit your changes (
git commit -m 'Add amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
Troubleshooting
Common Issues
Server won't start: Check that your NOTES_DIR exists and is accessible.
Notes not indexing: Verify file permissions and check logs for Weaviate connection issues.
Search returns no results: Ensure notes have proper frontmatter and content.
MCP connection fails: Verify your AI assistant's MCP configuration.
Logging
Enable debug logging for troubleshooting:
LOG_LEVEL=DEBUG memory-bear --serverLicense
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
Built with FastMCP for MCP server functionality
Uses Weaviate for vector database capabilities
Implements FSRS for spaced repetition
File monitoring powered by Watchdog
Links
This server cannot be installed
Maintenance
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
- Alicense-qualityDmaintenanceTransforms Markdown documentation into an intelligent knowledge base with AI-powered search and Q\&A through an MCP server.Last updated259MIT
- Alicense-qualityAmaintenanceA local-first MCP server that gives AI assistants long-term memory by storing, searching, and recalling notes as Markdown files on your machine.Last updated28MIT
- FlicenseAqualityBmaintenanceAn MCP server that provides AI assistants with long-term semantic memory using a Markdown-based knowledge base with hybrid search (vector + FTS5) and syntax-aware chunking. It supports idempotent ingestion, project isolation, and integrity linting.Last updated4
- Flicense-qualityDmaintenanceA personal knowledge base MCP server that allows AI assistants to manage notes, tasks, and ideas through tools, resources, and prompts.Last updated
Related MCP Connectors
Serve a folder of Markdown notes as an MCP server: hybrid search, reading, and sourced answers.
Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.
An MCP server that integrates with Discord to provide AI-powered features.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/ag4852/memory-bear'
If you have feedback or need assistance with the MCP directory API, please join our Discord server