A community-driven registry for Claude, Cursor, Windsurf, Cline & more. Not affiliated with Anthropic.
Are you the author? Sign in to claim
MCP server to store memories in postgres
A Model Context Protocol (MCP) server implementation that provides vector memory storage using PostgreSQL and pgvector for AI applications.
PostgMem is a .NET-based service that allows AI agents to store, retrieve, and search through memories using vector embeddings. It leverages PostgreSQL with the pgvector extension to provide efficient similarity search capabilities.
Key features:
CREATE EXTENSION vector;
CREATE TABLE memories (
id UUID PRIMARY KEY,
type TEXT NOT NULL,
content JSONB NOT NULL,
source TEXT NOT NULL,
embedding VECTOR(384) NOT NULL,
tags TEXT[] NOT NULL,
confidence DOUBLE PRECISION NOT NULL,
created_at TIMESTAMP WITH TIME ZONE NOT NULL,
updated_at TIMESTAMP WITH TIME ZONE NOT NULL
);
Configure the application settings in the .env file:
ConnectionStrings__Storage="Host=localhost;Database=mcp_memory;Username=postgres;Password=postgres"
Embeddings__ApiUrl=http://localhost:11434/
Embeddings__Model=all-minilm:33m-l12-v2-fp16
ConnectionStrings__Storage: PostgreSQL connection stringEmbeddings__ApiUrl: URL of your embedding API (defaults to Ollama)Embeddings__Model: The embedding model to usedotnet run
http://localhost:5000 by defaultThe following MCP tools are available:
Store a new memory in the database.
Parameters:
type (string): The type of memory (e.g., 'conversation', 'document', etc.)content (string): The content of the memory as a JSON objectsource (string): The source of the memory (e.g., 'user', 'system', etc.)tags (string[]): Optional tags to categorize the memoryconfidence (double): Confidence score for the memory (0.0 to 1.0)Search for memories similar to the provided text.
Parameters:
query (string): The text to search for similar memorieslimit (int): Maximum number of results to return (default: 10)minSimilarity (double): Minimum similarity threshold (0.0 to 1.0) (default: 0.7)filterTags (string[]): Optional tags to filter memoriesRetrieve a specific memory by ID.
Parameters:
id (Guid): The ID of the memory to retrieveDelete a memory by ID.
Parameters:
id (Guid): The ID of the memory to deleteMemory.cs: Defines the data model for memoriesStorage.cs: Handles database operations for storing and retrieving memoriesEmbeddingService.cs: Generates vector embeddings for textMemoryTools.cs: Implements MCP tools for interacting with the memory storage[Your license information here]
[Your contribution guidelines here]
Run Claude Code as an MCP server so any agent can delegate coding tasks to it
Browser automation using accessibility snapshots instead of screenshots
MCP server integration for DaVinci Resolve Studio
A Jetbrains IDE IntelliJ plugin aimed to provide coding agents the ability to leverage intelliJ's indexing of the codeba