MCP ExplorerExplorer

Mcp Memory Graph

@DMontgomery40on a year ago
4 MIT
FreeCommunity
AI Systems
Memory Graph implementation for Model Context Protocol (MCP) with separate Python and TypeScript implementations

Overview

What is Mcp Memory Graph

mcp-memory-graph is a Memory Graph implementation for the Model Context Protocol (MCP) designed to enhance the memory capabilities of Claude Desktop through pattern matching and type inference.

Use cases

Use cases for mcp-memory-graph include adding patterns for different document types, inferring types based on document attributes, and retrieving stored patterns for further processing.

How to use

To use mcp-memory-graph, install the package via pip for Python or npm for TypeScript. Then, initialize the MemoryGraphMCP tool and register it with Claude Desktop to start using its functionalities.

Key features

Key features include real-time type inference with confidence scoring, pattern matching with attribute validation, SQLite-based pattern storage, availability in both Python and TypeScript, and full MCP integration for Claude Desktop.

Where to use

mcp-memory-graph can be used in applications that require advanced memory management and data categorization, particularly in AI systems like Claude Desktop that benefit from enhanced document understanding.

Content

MCP Memory Graph

A Model Context Protocol (MCP) implementation of the Memory Graph system for Claude Desktop, available in both Python and TypeScript.

Overview

This project provides a semantic layer that enhances Claude Desktop’s memory capabilities with pattern matching and type inference. It allows Claude to understand and categorize different types of documents and data structures based on their attributes.

Features

  • Real-time type inference with confidence scoring
  • Pattern matching with attribute validation
  • SQLite-based pattern storage
  • Available in both Python and TypeScript
  • Full MCP integration for Claude Desktop

Quick Start

Python Implementation

pip install mcp-memory-graph
from mcp_memory_graph import MemoryGraphMCP
from mcp_core import register_tool

# Initialize the tool
memory_graph = MemoryGraphMCP()

# Register with Claude Desktop
register_tool('memory_graph', memory_graph)

TypeScript Implementation

npm install mcp-memory-graph-ts
import { MemoryGraphMCP } from 'mcp-memory-graph-ts';
import { registerTool } from 'mcp-core';

// Initialize the tool
const memoryGraph = new MemoryGraphMCP();

// Register with Claude Desktop
registerTool('memory_graph', memoryGraph);

Usage in Claude Desktop

Once registered, you can use the memory_graph tool with the following commands:

  1. Add a pattern:
{
  "command": "add_pattern",
  "parameters": {
    "name": "pdf_document",
    "required_attributes": {
      "format": "string",
      "title": "string"
    },
    "optional_attributes": {
      "author": "string",
      "pages": "number"
    },
    "confidence_threshold": 0.7
  }
}
  1. Infer types:
{
  "command": "infer",
  "parameters": {
    "id": "doc1",
    "attributes": {
      "title": "Project Report",
      "format": "pdf",
      "author": "John Doe"
    }
  }
}
  1. Get patterns:
{
  "command": "get_patterns",
  "parameters": {}
}

Documentation

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers