# GreeumMCP
This project has been archived.
The maintainers of this project have marked this project as archived. No new releases are expected.
Project description
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
Installation
๐ ๋น ๋ฅธ ์ค์น (UV ์ฌ์ฉ - ๊ถ์ฅ)
์ค์น ์์ด ๋ฐ๋ก ์คํ (uvx)
# 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)
Linux / macOS (bash / zsh)
# 1) ๊ฐ์ ํ๊ฒฝ(๊ถ์ฅ)
python3 -m venv venv && source venv/bin/activate
# 2) ์ต์ ์์ ํ ์ค์น
pip install greeummcp
# 3) ๊ฐ๋ฐ ๋๊ตฌ๊น์ง ์ค์นํ๋ ค๋ฉด
pip install "greeummcp[dev]"
Windows (PowerShell)
# 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 8000
Claude Desktop ์ฐ๋
๐ ๋ฐฉ๋ฒ 1: UV ์ฌ์ฉ (๊ฐ์ฅ ๊ฐ๋จ)
๋ชจ๋ OS ๊ณตํต
{
"mcpServers": {
"greeum_mcp": {
"command": "uvx",
"args": ["greeummcp"]
}
}
}
์ปค์คํ ๋ฐ์ดํฐ ๋๋ ํ ๋ฆฌ ์ง์ :
{
"mcpServers": {
"greeum_mcp": {
"command": "uvx",
"args": ["greeummcp", "/path/to/data"]
}
}
}
๐ฆ ๋ฐฉ๋ฒ 2: pip ์ค์น ํ ์ฌ์ฉ
Windows
{
"mcpServers": {
"greeum_mcp": {
"command": "greeummcp.exe",
"args": ["C:\\Users\\USERNAME\\greeum-data"]
}
}
}
๊ธฐ๋ณธ ์ค์ (./data ์ฌ์ฉ):
{
"mcpServers": {
"greeum_mcp": {
"command": "greeummcp.exe"
}
}
}
macOS / Linux
{
"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 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:
-
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
- Windows:
-
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
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
- GreeumMCP is built on the Model Context Protocol standard
- GreeumMCP uses the Greeum Memory Engine as its core component
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file greeummcp-1.0.0.tar.gz.
File metadata
- Download URL: greeummcp-1.0.0.tar.gz
- Upload date:
- Size: 35.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c3941fcf9db1711477615f0e022acc6300c90e1079bb795d1a7a8842436bff9
|
|
| MD5 |
34e4ea280fd4c9cd54e45f8df709ac5a
|
|
| BLAKE2b-256 |
cb4de7cb1eee0c72cac0ac8bb7f002d6befe75c0b6395528b6a8c44f4582483b
|
File details
Details for the file greeummcp-1.0.0-py3-none-any.whl.
File metadata
- Download URL: greeummcp-1.0.0-py3-none-any.whl
- Upload date:
- Size: 20.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9228d226fc3a2ed4019f85e5b6ea64f0433d380b73bb3f20597c862aea461fc
|
|
| MD5 |
573d4fb69df2df8c9fff16137b7f61dd
|
|
| BLAKE2b-256 |
6831c400cdc3e4ac4a21c956bd4d19a1fa3d1c8050801ede047eb4396409f804
|