MCP ExplorerExplorer

Mcp Dbmem

@tyrmon 21 days ago
1 MIT
FreeCommunity
AI Systems
MCP-DBMEM is a Go-based memory management system for MCP, implementing a knowledge graph with PostgreSQL.

Overview

What is Mcp Dbmem

mcp-dbmem is a poorly written Go-based memory management system designed for the Metoro Control Protocol (MCP). It provides a persistent knowledge graph implementation using PostgreSQL as the backend storage.

Use cases

Use cases for mcp-dbmem include managing complex relationships in datasets, facilitating research in AI, and providing a structured way to store and query information in applications.

How to use

To use mcp-dbmem, you can either run it via Docker or as a binary. For Docker, use the command provided in the installation section, ensuring the necessary environment variables are set. For binary, execute the mcp-dbmem binary with the required environment variables.

Key features

Key features of mcp-dbmem include creating and managing entities, relations, and observations in the knowledge graph, searching and querying the graph, and full graph reading capabilities.

Where to use

mcp-dbmem can be used in fields that require knowledge graph management, such as data science, artificial intelligence, and any application that benefits from structured data representation.

Content

MCP-DBMEM

A poorly written Go-based memory management system for the Metoro Control Protocol (MCP), providing a persistent knowledge graph implementation.

Overview

MCP-DBMEM is a memory management service that implements a knowledge graph using PostgreSQL as the backend storage. It provides a set of tools for managing entities, relations, and observations within the knowledge graph.

Features

  • Create and manage entities in the knowledge graph
  • Create and manage relations between entities
  • Add and manage observations for entities
  • Search and query the knowledge graph
  • Delete entities, relations, and observations
  • Full graph reading capabilities

Tools

The service provides the following tools:

  • create_entities: Create multiple new entities in the knowledge graph
  • create_relations: Create multiple new relations between entities (in active voice)
  • add_observations: Add new observations to existing entities
  • delete_entities: Delete multiple entities and their associated relations
  • delete_observations: Delete specific observations from entities
  • delete_relations: Delete multiple relations from the graph
  • read_graph: Read the entire knowledge graph
  • search_nodes: Search for nodes based on a query
  • open_nodes: Open specific nodes by their names

Installation

Claude

Docker

{
  "mcpServers": {
    "memory": {
      "command": "docker",
      "env": {
        "DB_ADDRESS": "localhost",
        "DB_USER": "mcp-dbmem",
        "DB_PASSWORD": "mcp-dbmem",
        "DB_DATABASE": "mcp-dbmem"
      },
      "args": [
        "run",
        "-i",
        "--rm",
        "tyrm/mcp-dbmem",
        "direct"
      ]
    }
  }
}

Binary

{
  "mcpServers": {
    "memory": {
      "command": "/path/to/mcp-dbmem",
      "env": {
        "DB_ADDRESS": "localhost",
        "DB_USER": "mcp-dbmem",
        "DB_PASSWORD": "mcp-dbmem",
        "DB_DATABASE": "mcp-dbmem"
      },
      "args": [
        "direct"
      ]
    }
  }
}

Development

Prerequisites

  • Go 1.x
  • PostgreSQL
  • Make (for build commands)

Building

make build

Running

./bin/mcp-dbmem

Project Structure

Tools

No tools

Comments