bear-mcp-server
Verified Safeby callme-DP
Overview
Transforms Bear Notes into a 'second brain' personal knowledge analysis system, supporting semantic retrieval, topic clustering, tag drift analysis, PARA tracking, and visualization with AI capabilities.
Installation
npm startEnvironment Variables
- BEAR_DATABASE_PATH
- NOTE_VECTORS_DIR
- OLLAMA_URL
- OLLAMA_MODEL
- NEO4J_URI
- NEO4J_USER
- NEO4J_PASS
- NEO4J_PASSWORD
- TOPK
- TH
- MAX_CONTENT_CHARS
- BATCH
- OLLAMA_TIMEOUT_MS
- OLLAMA_RETRY_MS
- OLLAMA_LOG_SAMPLES
- OLLAMA_LOG_CONTENT
- OLLAMA_SUMMARY_MODEL_ENV
- OLLAMA_SUMMARY_DISABLE
- OLLAMA_SUMMARY_NUM_PREDICT
- OLLAMA_SUMMARY_STREAM
- SUMMARY_MIN_LLM_CHARS
- SUMMARY_MIN_OUTPUT_LEN
- EMB_LOG_TIMING
- PORT
Security Notes
The core Node.js server accesses Bear's SQLite database in read-only mode, which is critical for data safety. SQL queries use placeholders to prevent injection. Embedding models are downloaded from reputable sources (HuggingFace). However, the Python script for importing data into Neo4j (import_to_neo4j_brew.py) explicitly uses 'auth=None', which is a significant security flaw if the Neo4j instance requires authentication. Additionally, the Node.js tools designed for writing/modifying notes (e.g., 'insertNote', 'modifyNoteTag') will fail due to the read-only database connection, which is an accidental safety measure but highlights an architectural discrepancy. The server's debug logging of full 'curl' commands could also expose query content in logs.
Similar Servers
obsidian-mcp-plugin
This plugin connects your Obsidian vault to AI assistants through MCP (Model Context Protocol), enabling them to understand and navigate your notes as a connected knowledge graph.
Simple-Memory-Extension-MCP-Server
A persistent key-value memory store for AI agents, designed to extend context windows and enable semantic search over stored memories.
memex
Personal knowledge base with hybrid search (keyword + semantic) and LLM-driven memory evolution, designed for agent workflows.
cymbiont
Augments AI assistants with a self-organizing knowledge graph for persistent memory and enhanced context retrieval across various domains.