Skip to main content
Glama

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 ์ด์ƒ

  • greeum v0.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 8000

Claude 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"
    }
  }
}
  1. ์œ„ ์„ค์ •์„ claude_desktop_config.json์— ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค.

  2. 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 stdio

Using 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 ./data

After 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:

  1. Locate or create the Claude Desktop configuration file:

    • Windows: %APPDATA%\Claude\claude_desktop_config.json

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

    • Linux: ~/.config/Claude/claude_desktop_config.json

  2. 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"
            ]
        }
    }
}
  1. Make sure to replace USERNAME and adjust paths according to your system.

  2. Restart Claude Desktop to apply the changes.

  3. 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:

  1. Click the hammer icon in Claude Desktop.

  2. You should see GreeumMCP tools listed (like add_memory, query_memory, etc.).

  3. Try adding a memory with a query like "Save this information: Claude was developed by Anthropic."

  4. 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/python3

3๋‹จ๊ณ„: ์˜์กด์„ฑ ์„ค์น˜

# ๊ฐ€์ƒํ™˜๊ฒฝ ์ƒ์„ฑ (๊ถŒ์žฅ)
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-global

5๋‹จ๊ณ„: Claude Code์—์„œ MCP ์—ฐ๊ฒฐ

Claude Code์—์„œ MCP ์„œ๋ฒ„์— ์—ฐ๊ฒฐํ•˜๋Š” ๋ฐฉ๋ฒ•:

  1. ํ”„๋กœ์ ํŠธ ๋””๋ ‰ํ† ๋ฆฌ์—์„œ ์ž‘์—…

    cd /Users/dryrain/DevRoom/GreeumMCP
  2. working_mcp_server.py ์‹คํ–‰

    # ํ„ฐ๋ฏธ๋„์—์„œ ๋ฐฑ๊ทธ๋ผ์šด๋“œ ์‹คํ–‰
    GREEUM_DATA_DIR="/Users/dryrain/greeum-global" python3 working_mcp_server.py &
  3. 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 greeum

2. "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.py

4. ๋ฉ”๋ชจ๋ฆฌ ์ €์žฅ/๊ฒ€์ƒ‰ ์‹คํŒจ

# ํ•ด๊ฒฐ: ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ์ดˆ๊ธฐํ™”
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 ๋„๊ตฌ ์ž‘๋™ ํ™•์ธ

๐Ÿ’ก ์„ฑ๋Šฅ ์ตœ์ ํ™” ํŒ

  1. ๋ฐ์ดํ„ฐ ๋””๋ ‰ํ† ๋ฆฌ ์ตœ์ ํ™”

    # SSD ๋””์Šคํฌ ์‚ฌ์šฉ ๊ถŒ์žฅ
    export GREEUM_DATA_DIR="/Users/dryrain/greeum-ssd"
    
    # ๋Œ€์šฉ๋Ÿ‰ ๋ฉ”๋ชจ๋ฆฌ ์‚ฌ์šฉ ์‹œ ์ „์šฉ ๋””๋ ‰ํ† ๋ฆฌ
    export GREEUM_DATA_DIR="/Volumes/ExternalSSD/greeum-data"
  2. ๋ฉ”๋ชจ๋ฆฌ ๊ด€๋ฆฌ ์„ค์ •

    # 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 ์‚ฌ์šฉ
  3. ๋กœ๊น… ์ตœ์ ํ™”

    # ์šด์˜ ํ™˜๊ฒฝ์—์„œ๋Š” ๋กœ๊ทธ ๋ ˆ๋ฒจ ์กฐ์ •
    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 ./data

This 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.65

Development

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             # Dependencies

Running Tests

pip install -e ".[dev]"
pytest

License

GreeumMCP is licensed under the MIT License.

Acknowledgments

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelogโ€ฆ

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Persistent 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.
      15
      512 npm
      2
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Persistent 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
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      A 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.
      5
      MIT