Back to Home
tomoharu-hayashi icon

mcp-server-brain

Verified Safe

by tomoharu-hayashi

Overview

Provides a 'long-term memory' knowledge base for AI agents, enabling them to learn from experience and avoid repeating past failures by storing, retrieving, and updating knowledge.

Installation

Run Command
uvx --from git+https://github.com/tomoharu-hayashi/mcp-server-brain.git mcp-brain

Environment Variables

  • MCP_BRAIN_DIR

Security Notes

The server uses `pickle.load` for caching embeddings, which can be a security risk if the cache file (`.index_cache.pkl`) is tampered with by an attacker. However, the cache is stored locally within a Git-managed knowledge directory, reducing external exposure, and its validity is checked via a content hash of source files. Input validation for knowledge names (`kebab-case`) prevents path traversal. `subprocess` calls for UI/CLI tools (e.g., `osascript`, `git`, `code`) are handled with input escaping or controlled paths.

Similar Servers

Stats

Interest Score0
Security Score8
Cost ClassMedium
Avg Tokens250
Stars0
Forks0
Last Update2025-12-11

Tags

AI Agent MemoryKnowledge ManagementSemantic SearchGit VersioningLearning System