GNB MemoryMCP
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.
GNB MemoryMCP
A vendor-independent personal memory layer (MCP server) that can be commonly referenced and updated by multiple LLMs and AI agents (ChatGPT, Claude, Claude Code, Gemini, Antigravity, etc.).
This project is implemented in Go and is designed to seamlessly switch between local environment (SQLite) and production environment (AWS Lambda + Turso / libSQL).
Features
Memory sharing across multiple LLMs: Without being locked into a specific vendor, you can carry over your settings, project context, and knowledge to all AI agents.
Two types of local connections supported:
HTTP server mode: Start with a specified port and access from multiple clients. Authentication uses
Authorization: Bearer <API_KEY>.Standard input/output (stdio) mode: The binary is executed and communicates directly with MCP clients such as Claude Desktop, without opening a port.
Full-text search (FTS5): Supports fast and lightweight full-text search using SQLite's FTS5.
Schema persistence: Since
tagsandmetadataare stored as JSON, internal implementations such as vector search and batch summarization can be evolved in the future without changing the API specification.
Related MCP server: Synapse Memory
Directory Structure
cmd/gnb-memorymcp/: Entry point for the local integrated binary (server/stdiomode)cmd/lambda/: Entry point for AWS Lambda startuppkg/auth/: Bearer authentication, JWT verification, and CIMD client ID determinationpkg/domain/: Memory model and database store interface definitionspkg/infra/sqlite/: SQLite / libSQL DB storage, full-text search (FTS5), and trigger synchronization implementationpkg/mcp/: MCP tool execution handler compliant with JSON-RPC 2.0
Installation Methods
Installation via Scoop (Windows recommended)
# バケットの追加
scoop bucket add gnb-bucket https://github.com/GennoBou/scoop-bucket
# インストール
scoop install gnb-memorymcpBuilding from Source
# 全部入りバイナリ(ローカル用)のビルド
go build -o bin/gnb-memorymcp.exe ./cmd/gnb-memorymcp/main.goUsage
1. Configuration Example for Standard Input/Output (stdio) Mode
This is the easiest way to run MCP locally. Register the binary directly in the configuration file of the connecting client (Claude Desktop, Antigravity, OpenCode, etc.). By explicitly passing stdio as the first argument, it starts in standard input/output mode.
A. For Claude Desktop
Configuration file: AppData\Roaming\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"gnb-memorymcp": {
"command": "gnb-memorymcp.exe",
"args": ["stdio", "--db-url", "file:D:/Data/Projects/GitHub/gnb-memorymcp/data/local_v2.db"]
}
}
}B. For Antigravity
Configuration file: ~/.gemini/antigravity-cli/settings.json (for Windows: C:\Users\<ユーザー名>\.gemini\antigravity-cli\settings.json)
{
"mcpServers": {
"gnb-memorymcp": {
"command": "gnb-memorymcp.exe",
"args": ["stdio", "--db-url", "file:D:/Data/Projects/GitHub/gnb-memorymcp/data/local_v2.db"]
}
}
}C. For OpenCode
Configuration file: ~/.config/opencode/opencode.jsonc
{
"mcp": {
"gnb-memorymcp": {
"type": "local",
"enabled": true,
"command": [
"gnb-memorymcp.exe",
"stdio",
"--db-url",
"file:D:/Data/Projects/GitHub/gnb-memorymcp/data/local_v2.db"
]
}
}
}After applying the configuration, restart the target client, and the memory tools (such as memory_create) will be automatically loaded and ready to use.
2. HTTP Server Mode (Local SQLite)
Start as an HTTP server on your local machine or another device, referencing a local SQLite database. Pass server as the first argument to start. For security, it binds to localhost (127.0.0.1) by default.
Startup Method (PowerShell)
Method 1: Start with command-line arguments
# ローカルホストからのみ接続可能として起動 (APIキーが未指定の場合は自動的に 'dev-key' が使われます) ./bin/gnb-memorymcp.exe server --port 8080 --db-url "file:data/local_v2.db" # 外部ネットワークに公開して起動 (--host 0.0.0.0 指定時は、安全な独自の --api-key 設定が必須) ./bin/gnb-memorymcp.exe server --host 0.0.0.0 --port 8080 --api-key "your-secure-secret-key" --db-url "file:data/local_v2.db"Method 2: Start with environment variables
$env:HOST="127.0.0.1" $env:API_KEY="your-secret-key" $env:PORT="8080" $env:DB_URL="file:data/local_v2.db" ./bin/gnb-memorymcp.exe server
How to Make Requests from a Client
URL:
http://localhost:8080/Method:
POSTRequired header:
Authorization: Bearer your-secret-keyRequest body (JSON-RPC 2.0):
{ "jsonrpc": "2.0", "method": "tools/list", "id": 1 }
3. Local HTTP + Turso Mode (Cloud DB Integration)
Start an HTTP server locally and have it reference a remote Turso (libSQL) database only.
Startup Method (PowerShell)
Method 1: Start with command-line arguments ※ It is recommended to set
DB_TOKENas an environment variable for security.$env:DB_TOKEN="your-turso-auth-token" ./bin/gnb-memorymcp.exe server --port 8080 --api-key "your-secret-key" --db-url "libsql://your-database-name-username.turso.io"Method 2: Start with environment variables
$env:API_KEY="your-secret-key" $env:PORT="8080" $env:DB_URL="libsql://your-database-name-username.turso.io" $env:DB_TOKEN="your-turso-auth-token" ./bin/gnb-memorymcp.exe server
4. AWS Lambda + Turso Mode (Production Cloud Operation)
A serverless deployment on AWS Lambda, operating in conjunction with Turso.
Entry point:
cmd/lambda/main.goSupports one-command build and deploy script (
npm run build-and-deploy-lambda) and SAM template (template.yaml).
For detailed deployment steps, refer to the AWS Lambda + Turso Deployment Guide.
Provided MCP Tool Specifications
GNB MemoryMCP provides the following 10 tools.
Tool Name | Description | Main Arguments |
| Saves a new memory (max 10,000 characters, max 10 tags, importance 0–10). |
|
| Hybrid recall using Japanese FTS5 trigram and LIKE. Re-ranked by importance and freshness. |
|
| Retrieves a list of memories. Supports sorting and pagination. |
|
| Retrieves a single memory by ID. |
|
| Diff update of an existing memory (supports clearing by empty value and optimistic locking). |
|
| Physically deletes an unwanted memory by ID. |
|
| Checks the total number of records in the database and whether cleanup is needed. | none |
| Lightweight extraction of potentially duplicate or contradictory memory pairs (fast similarity scan). |
|
| Records the completion of cleanup and updates the last cleanup date/time. | none |
| Retrieves a list of unique tags registered so far. | none |
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
An MCP memory server. One memory your agents share — across models, devices and apps.
Hosted memory for AI agents over MCP. One memory shared by all your agents.
Persistent memory, knowledge graph, task management and more for AI agents via MCP.
Persistent personal memory for AI assistants — save, search, and recall across every MCP client.
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server that provides persistent memory capabilities for AI agents using Mem0, enabling storage, search, and management of contextual information across conversations with support for multiple backends and LLM providers.18112 PyPIMIT
- AlicenseNot gradedqualityCmaintenanceA lightweight MCP server that provides long-term memory for LLMs by storing and retrieving important facts, decisions, and preferences through smart semantic search and automatic organization.12MIT
- FlicenseNot gradedqualityBmaintenanceA persistent memory server for AI agents using MCP protocol, enabling semantic storage and retrieval of dialogues, documents, and agent states.-
- AlicenseNot gradedqualityDmaintenanceA lightweight, local-first MCP memory server for LLM agents that enables storing, searching, and retrieving agent memories with zero external dependencies.1MIT