GreeumMCP
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
GreeumMCP
GreeumMCP is a Model Context Protocol (MCP) server implementation for the Greeum Memory Engine. It enables seamless integration of Greeum's powerful memory capabilities with Large Language Models (LLMs) that support the MCP standard, such as Claude.
Features
Memory Management: Store, retrieve, and search through long-term and short-term memories
Time-based Recall: Search memories based on temporal references like "yesterday" or "two weeks ago"
Semantic Search: Find memories based on semantic similarity
Memory Enrichment: Automatically extract keywords, tags, and compute importance scores
Multiple Transport Options: Supports stdio, HTTP, and WebSocket transports
Claude Desktop Integration: Ready to use with Claude Desktop
Related MCP server: MCP Memory
Installation
๐ ๋น ๋ฅธ ์ค์น (UV ์ฌ์ฉ - ๊ถ์ฅ)
# UV ์ค์น (์ฒ์ ํ ๋ฒ๋ง)
# macOS/Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
# Windows
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
# GreeumMCP ์คํ (์ค์น ์์ด)
uvx greeummcp๐ฆ ์ผ๋ฐ ์ค์น (pip)
# 1) ๊ฐ์ ํ๊ฒฝ(๊ถ์ฅ)
python3 -m venv venv && source venv/bin/activate
# 2) ์ต์ ์์ ํ ์ค์น
pip install greeummcp
# 3) ๊ฐ๋ฐ ๋๊ตฌ๊น์ง ์ค์นํ๋ ค๋ฉด
pip install "greeummcp[dev]"# 1) ๊ฐ์ ํ๊ฒฝ(๊ถ์ฅ)
python -m venv venv
.\venv\Scripts\Activate.ps1
# 2) ํจํค์ง ์ค์น
pip install greeummcp๐ ํ์ ์กฐ๊ฑด
Python 3.10 ์ด์
greeumv0.6.1 ์ด์์ greeummcp๊ฐ ์๋์ผ๋ก ์์กด์ฑ์ผ๋ก ์ค์นํฉ๋๋ค.(์ ํ) C/C++ Build Tools โ ์ผ๋ถ ํ์ฅ ๊ธฐ๋ฅ์์ ํ์ํ ์ ์์ต๋๋ค.
โ ์ค์น ํ์ธ
# pip ์ค์น ์
greeummcp version
# uvx ์ฌ์ฉ ์
uvx greeummcp version์ ๋ช
๋ น์ด ๋ฒ์ ๋ฌธ์์ด(์: 0.2.4)์ ์ถ๋ ฅํ๋ฉด ์ค์น๊ฐ ์๋ฃ๋ ๊ฒ์
๋๋ค.
๋น ๋ฅธ ์์
# ๊ธฐ๋ณธ ์คํ (data ๋๋ ํ ๋ฆฌ๋ ./data ์ฌ์ฉ)
greeummcp
# ์ปค์คํ
๋ฐ์ดํฐ ๋๋ ํ ๋ฆฌ ์ง์
greeummcp /path/to/data
# HTTP transport ์ฌ์ฉ
greeummcp --transport http --port 8000Claude Desktop ์ฐ๋
๐ ๋ฐฉ๋ฒ 1: UV ์ฌ์ฉ (๊ฐ์ฅ ๊ฐ๋จ)
{
"mcpServers": {
"greeum_mcp": {
"command": "uvx",
"args": ["greeummcp"]
}
}
}์ปค์คํ ๋ฐ์ดํฐ ๋๋ ํ ๋ฆฌ ์ง์ :
{
"mcpServers": {
"greeum_mcp": {
"command": "uvx",
"args": ["greeummcp", "/path/to/data"]
}
}
}๐ฆ ๋ฐฉ๋ฒ 2: pip ์ค์น ํ ์ฌ์ฉ
{
"mcpServers": {
"greeum_mcp": {
"command": "greeummcp.exe",
"args": ["C:\\Users\\USERNAME\\greeum-data"]
}
}
}๊ธฐ๋ณธ ์ค์ (./data ์ฌ์ฉ):
{
"mcpServers": {
"greeum_mcp": {
"command": "greeummcp.exe"
}
}
}{
"mcpServers": {
"greeum_mcp": {
"command": "greeummcp",
"args": ["/home/username/greeum-data"]
}
}
}๊ธฐ๋ณธ ์ค์ (./data ์ฌ์ฉ):
{
"mcpServers": {
"greeum_mcp": {
"command": "greeummcp"
}
}
}์ ์ค์ ์
claude_desktop_config.json์ ์ถ๊ฐํฉ๋๋ค.Claude Desktop ์ฌ์์ โ ๐จ ์์ด์ฝ ํด๋ฆญํด Tool ๋ชฉ๋ก์ greeum_mcp ๊ฐ ๋ํ๋๋์ง ํ์ธ.
Cursor IDE ์ฐ๋
ํ๋ก์ ํธ ๋ฃจํธ์ .cursor/mcp.json ํ์ผ์ ์์ฑ:
{
"greeum_mcp": {
"command": "greeummcp",
"args": ["${workspaceFolder}/data"]
}
}์ ์ฅ ํ Cursor๋ฅผ ์ฌ์์ํ๋ฉด MCP ํด์ด ์๋์ผ๋ก ๋ก๋๋ฉ๋๋ค.
Quick Start
Running as a Command-Line Tool
GreeumMCP can be run directly from the command line:
# Run with default settings (stdio transport, ./data directory)
greeummcp
# Specify custom data directory
greeummcp /path/to/data
# Using HTTP transport
greeummcp --transport http --port 8000
# Legacy command (still supported)
greeum_mcp --data-dir ./data --transport stdioUsing as a Python Library
from greeummcp import run_server
# Run with default settings
run_server()
# Run with custom settings
run_server(
data_dir="./data",
server_name="greeum_mcp",
port=8000,
transport="http",
greeum_config={
"ttl_short": 3600, # 1 hour
"ttl_medium": 86400, # 1 day
"ttl_long": 604800, # 1 week
"default_language": "auto"
}
)Claude Desktop Integration
GreeumMCP can be used with Claude Desktop to provide memory capabilities to Claude. The package includes a helper script to set up the integration:
# Run the Claude Desktop integration helper
python examples/claude_desktop.py
# Create the Claude Desktop configuration file
python examples/claude_desktop.py --create --data-dir ./dataAfter setting up, restart Claude Desktop, and you should see the GreeumMCP tools available in the tools panel (hammer icon).
Manual Configuration for Claude Desktop
You can also manually configure Claude Desktop to use GreeumMCP by creating a JSON configuration file:
Locate or create the Claude Desktop configuration file:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Add the GreeumMCP server configuration to this file:
Windows Example:
{
"mcpServers": {
"greeum_mcp": {
"command": "python",
"args": [
"-m", "greeummcp.server",
"--data-dir", "C:\\Users\\USERNAME\\Documents\\greeum-data",
"--transport", "stdio"
]
}
}
}macOS/Linux Example:
{
"mcpServers": {
"greeum_mcp": {
"command": "python3",
"args": [
"-m", "greeummcp.server",
"--data-dir", "/Users/USERNAME/Documents/greeum-data",
"--transport", "stdio"
]
}
}
}Make sure to replace
USERNAMEand adjust paths according to your system.Restart Claude Desktop to apply the changes.
Verify that the tools are available by looking for the hammer icon in the Claude Desktop interface.
Cursor Integration
To use GreeumMCP with Cursor, create a .cursor/mcp.json file in your project root:
{
"greeum_mcp": {
"command": "python",
"args": ["-m", "greeummcp.server", "--data-dir", "YOUR_DATA_DIR", "--transport", "stdio", "--server-name", "greeum_mcp"]
}
}Important Notes
Server naming: Always use underscores (
_) instead of hyphens (-) in server names to avoid MCP compatibility issues.Data directory: Use an absolute path for the data directory to ensure reliability.
Verifying the Integration
To verify that GreeumMCP is working properly with Claude Desktop:
Click the hammer icon in Claude Desktop.
You should see GreeumMCP tools listed (like add_memory, query_memory, etc.).
Try adding a memory with a query like "Save this information: Claude was developed by Anthropic."
Then try retrieving it with "What information do you have about Claude?"
If you encounter issues:
Check Claude Desktop logs in
~/Library/Logs/Claude/(macOS) or%APPDATA%\Claude\Logs(Windows)Ensure the GreeumMCP server is properly installed and paths are correct
Verify your configuration file has the correct syntax
๐ Claude Code (claude.ai/code) ์ฐ๊ฒฐ ๊ฐ์ด๋
Claude Code๋ ์น ๊ธฐ๋ฐ ํตํฉ ๊ฐ๋ฐ ํ๊ฒฝ์ผ๋ก, MCP ์๋ฒ๋ฅผ ํตํด GreeumMCP์ ์ฐ๊ฒฐํ ์ ์์ต๋๋ค.
๐ ์ ์ ์กฐ๊ฑด
Python 3.10 ์ด์
GreeumMCP ํจํค์ง ์ค์น ์๋ฃ
Greeum ํจํค์ง v0.6.0 ์ด์
๐ง ์ค์ ๋ฐฉ๋ฒ
1๋จ๊ณ: ๊ฐ๋ฐ ์๋ฒ ์ ํ
GreeumMCP๋ ๋ ๊ฐ์ง ์๋ฒ ๊ตฌํ์ ์ ๊ณตํฉ๋๋ค:
A. minimal_mcp_server.py (ํ
์คํธ์ฉ)
๋น ๋ฅธ ์ฐ๊ฒฐ ํ ์คํธ๋ฅผ ์ํ ์ต์ ๊ตฌํ
์ค์ ๋ฉ๋ชจ๋ฆฌ ์ ์ฅ ์์ด ๋ชจ์ ์๋ต๋ง ์ ๊ณต
MCP ํ๋กํ ์ฝ ํธํ์ฑ ํ์ธ ๋ชฉ์
B. working_mcp_server.py (์ค์ ์ฌ์ฉ)
์ค์ Greeum ๋ฉ๋ชจ๋ฆฌ ์์ง๊ณผ ์ฐ๋
์ง์ง ๋ฉ๋ชจ๋ฆฌ ์ ์ฅ, ๊ฒ์, STM ๊ด๋ฆฌ ๊ธฐ๋ฅ
ํ๋ก๋์ ํ๊ฒฝ์์ ์ฌ์ฉ ๊ถ์ฅ
2๋จ๊ณ: ํ์ ํ๊ฒฝ๋ณ์ ์ค์
# ๋ฉ๋ชจ๋ฆฌ ๋ฐ์ดํฐ ์ ์ฅ ๋๋ ํ ๋ฆฌ (ํ์)
export GREEUM_DATA_DIR="/Users/dryrain/greeum-global"
# ๋ก๊ทธ ๋ ๋ฒจ ์ค์ (์ ํ)
export GREEUM_LOG_LEVEL="INFO"
# Python ๊ฒฝ๋ก ํ์ธ (ํ์)
which python3
# ์ถ๋ ฅ ์: /usr/bin/python3 ๋๋ /opt/homebrew/bin/python33๋จ๊ณ: ์์กด์ฑ ์ค์น
# ๊ฐ์ํ๊ฒฝ ์์ฑ (๊ถ์ฅ)
python3 -m venv venv-greeummcp
source venv-greeummcp/bin/activate # Windows: venv-greeummcp\Scripts\activate
# GreeumMCP ๋ฐ ์์กด์ฑ ์ค์น
pip install greeummcp
# ๋๋ ๊ฐ๋ฐ ๋ฒ์ ์ผ๋ก ์ค์น
pip install -e .
# Greeum ์ฝ์ด ์์ง ์ค์น ํ์ธ
pip install greeum[all]4๋จ๊ณ: ๋ก์ปฌ ํ ์คํธ
# 1. ์ต์ ์๋ฒ๋ก ๊ธฐ๋ณธ ์ฐ๊ฒฐ ํ
์คํธ
cd /Users/dryrain/DevRoom/GreeumMCP
python3 minimal_mcp_server.py
# 2. ์ค์ ์๋ ์๋ฒ๋ก ๊ธฐ๋ฅ ํ
์คํธ
python3 working_mcp_server.py
# 3. ์ค์น๋ ํจํค์ง๋ก ํ
์คํธ
greeummcp --data-dir /Users/dryrain/greeum-global5๋จ๊ณ: Claude Code์์ MCP ์ฐ๊ฒฐ
Claude Code์์ MCP ์๋ฒ์ ์ฐ๊ฒฐํ๋ ๋ฐฉ๋ฒ:
ํ๋ก์ ํธ ๋๋ ํ ๋ฆฌ์์ ์์
cd /Users/dryrain/DevRoom/GreeumMCPworking_mcp_server.py ์คํ
# ํฐ๋ฏธ๋์์ ๋ฐฑ๊ทธ๋ผ์ด๋ ์คํ GREEUM_DATA_DIR="/Users/dryrain/greeum-global" python3 working_mcp_server.py &Claude Code์์ ์ฐ๊ฒฐ
Claude Code ์ธํฐํ์ด์ค์์ MCP ์๋ฒ ์ฐ๊ฒฐ ์๋
๋ก์ปฌ stdio ํ๋กํ ์ฝ๋ก
python3 working_mcp_server.py๋ช ๋ น ์ฌ์ฉ๋ฐ์ดํฐ ๋๋ ํ ๋ฆฌ:
/Users/dryrain/greeum-global
๐ ๏ธ ํธ๋ฌ๋ธ์ํ ๊ฐ์ด๋
์์ฃผ ๋ฐ์ํ๋ ๋ฌธ์ ์ ํด๊ฒฐ๋ฒ
1. "ModuleNotFoundError: No module named 'greeum'" ์ค๋ฅ
# ํด๊ฒฐ: Greeum ํจํค์ง ์ค์น
pip install greeum[all]
# ๊ฐ์ํ๊ฒฝ์ด ํ์ฑํ๋์ด ์๋์ง ํ์ธ
which python3
pip list | grep greeum2. "Permission denied" ์ค๋ฅ
# ํด๊ฒฐ: ๋ฐ์ดํฐ ๋๋ ํ ๋ฆฌ ๊ถํ ์ค์
mkdir -p /Users/dryrain/greeum-global
chmod 755 /Users/dryrain/greeum-global
# ๋๋ ์ฌ์ฉ์ ํ ๋๋ ํ ๋ฆฌ ์ฌ์ฉ
export GREEUM_DATA_DIR="$HOME/greeum-data"3. MCP ์๋ฒ ์ฐ๊ฒฐ ์คํจ
# ๋๋ฒ๊น
: ์๋ฒ ๋ก๊ทธ ํ์ธ
python3 working_mcp_server.py 2>&1 | tee server.log
# JSON-RPC ๋ฉ์์ง ํ
์คํธ
echo '{"jsonrpc": "2.0", "id": 1, "method": "initialize", "params": {}}' | python3 working_mcp_server.py4. ๋ฉ๋ชจ๋ฆฌ ์ ์ฅ/๊ฒ์ ์คํจ
# ํด๊ฒฐ: ๋ฐ์ดํฐ๋ฒ ์ด์ค ์ด๊ธฐํ
rm -f /Users/dryrain/greeum-global/memory.db
rm -f /Users/dryrain/greeum-global/context_cache.json
# ์๋ก์ด ๋ฐ์ดํฐ๋ฒ ์ด์ค๋ก ์ฌ์์
python3 working_mcp_server.py๐งช ์ฐ๊ฒฐ ํ ์คํธ ๋ฐฉ๋ฒ
A. ์ต์ ๊ธฐ๋ฅ ํ ์คํธ (minimal_mcp_server.py)
# 1. ์๋ฒ ์์
python3 minimal_mcp_server.py
# 2. ๋ค๋ฅธ ํฐ๋ฏธ๋์์ ํ
์คํธ
echo '{"jsonrpc": "2.0", "id": 1, "method": "initialize", "params": {}}' | python3 minimal_mcp_server.py
# 3. ์์ ์๋ต:
# {"jsonrpc": "2.0", "id": 1, "result": {"protocolVersion": "2024-11-05", ...}}B. ์ค์ ๊ธฐ๋ฅ ํ ์คํธ (working_mcp_server.py)
# 1. ํ๊ฒฝ๋ณ์ ์ค์ ํ ์๋ฒ ์์
export GREEUM_DATA_DIR="/Users/dryrain/greeum-global"
mkdir -p "$GREEUM_DATA_DIR"
python3 working_mcp_server.py
# 2. ๋ฉ๋ชจ๋ฆฌ ์ถ๊ฐ ํ
์คํธ
echo '{"jsonrpc": "2.0", "id": 2, "method": "tools/call", "params": {"name": "add_memory", "arguments": {"content": "ํ
์คํธ ๋ฉ๋ชจ๋ฆฌ์
๋๋ค"}}}' | python3 working_mcp_server.py
# 3. ๋ฉ๋ชจ๋ฆฌ ๊ฒ์ ํ
์คํธ
echo '{"jsonrpc": "2.0", "id": 3, "method": "tools/call", "params": {"name": "search_memory", "arguments": {"query": "ํ
์คํธ"}}}' | python3 working_mcp_server.py๐ ์ฑ๊ณต ํ์ธ ์ฒดํฌ๋ฆฌ์คํธ
Python 3.10+ ์ค์น ํ์ธ
GreeumMCP ํจํค์ง ์ค์น ์๋ฃ
Greeum ์ฝ์ด ์์ง ์ค์น ์๋ฃ
ํ๊ฒฝ๋ณ์
GREEUM_DATA_DIR์ค์ ๋ฐ์ดํฐ ๋๋ ํ ๋ฆฌ ์์ฑ ๋ฐ ๊ถํ ์ค์
minimal_mcp_server.py์ฐ๊ฒฐ ํ ์คํธ ์ฑ๊ณตworking_mcp_server.py๊ธฐ๋ฅ ํ ์คํธ ์ฑ๊ณตClaude Code์์ MCP ์๋ฒ ์ฐ๊ฒฐ ์ฑ๊ณต
add_memory๋๊ตฌ ์๋ ํ์ธsearch_memory๋๊ตฌ ์๋ ํ์ธ
๐ก ์ฑ๋ฅ ์ต์ ํ ํ
๋ฐ์ดํฐ ๋๋ ํ ๋ฆฌ ์ต์ ํ
# SSD ๋์คํฌ ์ฌ์ฉ ๊ถ์ฅ export GREEUM_DATA_DIR="/Users/dryrain/greeum-ssd" # ๋์ฉ๋ ๋ฉ๋ชจ๋ฆฌ ์ฌ์ฉ ์ ์ ์ฉ ๋๋ ํ ๋ฆฌ export GREEUM_DATA_DIR="/Volumes/ExternalSSD/greeum-data"๋ฉ๋ชจ๋ฆฌ ๊ด๋ฆฌ ์ค์
# working_mcp_server.py ์์ ์์ self.stm_manager = STMManager(db_manager=db_manager, ttl=7200) # 2์๊ฐ self.block_manager = BlockManager(db_manager=db_manager, use_faiss=True) # FAISS ์ฌ์ฉ๋ก๊น ์ต์ ํ
# ์ด์ ํ๊ฒฝ์์๋ ๋ก๊ทธ ๋ ๋ฒจ ์กฐ์ export GREEUM_LOG_LEVEL="WARNING" # ๋ก๊ทธ ํ์ผ๋ก ์ ์ฅ python3 working_mcp_server.py 2>&1 | tee -a greeum-mcp.log
๐ฏ ๊ณ ๊ธ ์ฌ์ฉ๋ฒ
์ปค์คํ ๋ฉ๋ชจ๋ฆฌ ์ค์
# custom_mcp_server.py ์์ฑ ์์
class CustomGreeumMCPServer(WorkingGreeumMCPServer):
def __init__(self, data_dir: str = None):
super().__init__(data_dir)
# ์ปค์คํ
TTL ์ค์
self.custom_ttl = {
'short': 1800, # 30๋ถ
'medium': 7200, # 2์๊ฐ
'long': 86400 # 24์๊ฐ
}
def init_greeum(self):
"""์ปค์คํ
Greeum ์ด๊ธฐํ"""
# ๊ธฐ๋ณธ ์ด๊ธฐํ ์คํ
super().init_greeum()
# ์ถ๊ฐ ์ค์ ์ ์ฉ
self.stm_manager.default_ttl = self.custom_ttl['short']์ด ๊ฐ์ด๋๋ฅผ ๋ฐ๋ผํ๋ฉด Claude Code์์ GreeumMCP๋ฅผ ์ฑ๊ณต์ ์ผ๋ก ์ฐ๊ฒฐํ๊ณ ์ฌ์ฉํ ์ ์์ต๋๋ค.
Memory Tools
GreeumMCP provides the following memory-related tools:
add_memory: Add a new memory to long-term storage
query_memory: Search memories by query text
retrieve_memory: Retrieve a specific memory by ID
update_memory: Update an existing memory
delete_memory: Delete a memory by ID
search_time: Search memories based on time references
generate_prompt: Generate a prompt that includes relevant memories
extract_keywords: Extract keywords from text
verify_chain: Verify the integrity of the memory blockchain
server_status: Get server status information
Example Usage
Interactive CLI
GreeumMCP includes an interactive CLI example for trying out the memory capabilities:
python examples/cli_example.py --data-dir ./dataThis opens an interactive shell where you can:
greeum> add This is my first memory
Memory added with ID: 1
greeum> add This is my second memory about Python
Memory added with ID: 2
greeum> search Python
Found 1 results:
--- Result 1 ---
ID: 2
Content: This is my second memory about Python
Timestamp: 2023-07-01T12:34:56
Keywords: memory, Python, second
Importance: 0.65Development
Project Structure
GreeumMCP/
โโโ greeummcp/ # Main package
โ โโโ __init__.py # Package initialization
โ โโโ server.py # MCP server implementation
โ โโโ tools/ # MCP tools implementation
โ โโโ resources/ # MCP resources implementation
โ โโโ prompts/ # MCP prompts implementation
โ โโโ adapters/ # Greeum integration adapters
โโโ examples/ # Usage examples
โโโ tests/ # Tests
โโโ README.md # Project documentation
โโโ setup.py # Package setup
โโโ requirements.txt # DependenciesRunning Tests
pip install -e ".[dev]"
pytestLicense
GreeumMCP is licensed under the MIT License.
Acknowledgments
GreeumMCP is built on the Model Context Protocol standard
GreeumMCP uses the Greeum Memory Engine as its core component
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogโฆ
This server cannot be deployed
Maintenance
Related MCP Connectors
A personal memory you control, shared across Claude, ChatGPT, Cursor and any MCP client.
1Persistent memory for AI agents across Claude, ChatGPT and any MCP client.
Persistent memory for AI assistants. Save once; recall from Claude, ChatGPT, or any MCP client.
Private persistent memory for Claude, ChatGPT & Gemini via MCP - semantic search, zero-code setup.
Related MCP Servers
- AlicenseAqualityBmaintenancePersistent memory MCP server for Claude Code, Cursor, and GitHub Copilot. Semantic search, Git sync, project-based, Persistent memory MCP server for Claude Code, Cursor, and GitHub Copilot. Semantic search, Git sync, project-based organization, and team collaboration via Model Context Protocol.15512 npm2MIT
- FlicenseNot gradedqualityDmaintenancePersistent memory server for AI assistants with semantic search and three-layer context (global, project, personality). Works with MCP-compatible AI tools like Claude Code, Cursor, Continue, Cline, and more.1-
- AlicenseNot gradedqualityCmaintenanceA local-first, team-ready MCP server providing durable memory for LLM-based coding workflows with multiple storage backends and fast search.4MIT
- AlicenseNot gradedqualityBmaintenanceA local markdown memory and cross-agent context engine for AI coding assistants. It provides an MCP server with tools to search, add, retrieve, and distill persistent memory across tools like Claude Code, Cursor, and Zed.5MIT