PostgMem MCP vector memory server

PostgMem MCP vector memory server

postg-mem•bydariogriffo

A .NET-based MCP server that lets AI agents store, retrieve, and semantically search memories using PostgreSQL with the pgvector extension.

License: Not specified•Runtime: Awaiting documentation review•Category: databases storage

WHAT IT DOES

  • •Stores structured memories with vector embeddings in PostgreSQL.
  • •Searches memories by vector similarity with optional tag filtering.
  • •Retrieves or deletes a specific memory by its ID.
  • •Exposes memory operations as MCP tools for use by AI agents.

BEST FOR

  • •Giving AI agents persistent vector-based memory backed by PostgreSQL.
  • •Semantic search over stored memories with similarity thresholds and tag filters.

ABOUT POSTG-MEM

PostgMem MCP vector memory server is cataloged as an MCP server attributed to dariogriffo. A .NET-based MCP server that lets AI agents store, retrieve, and semantically search memories using PostgreSQL with the pgvector extension. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for PostgMem MCP vector memory server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What database does PostgMem require?

It requires PostgreSQL with the pgvector extension installed.

How does PostgMem generate embeddings?

It uses a configurable text embedding API, defaulting to Ollama.

Upstream README

View this exact version on GitHub

README.md · 8f9c724c0e13 · Fetched 2026-11-13 10:04:52 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

PostgMem

A Model Context Protocol (MCP) server implementation that provides vector memory storage using PostgreSQL and pgvector for AI applications.

Overview

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:

  • Store structured memories with vector embeddings
  • Retrieve memories by ID
  • Semantic search through memories using vector similarity
  • Filter search results using tags
  • MCP (Model Context Protocol) integration for easy use with AI agents

Technologies

  • .NET 9.0
  • PostgreSQL with pgvector extension
  • Model Context Protocol (MCP)
  • ASP.NET Core
  • Npgsql for PostgreSQL connectivity

Prerequisites

  • .NET 9.0 SDK
  • PostgreSQL database with pgvector extension installed
  • Text embedding API (default configuration uses Ollama)

Setup

Database Configuration

  1. Create a PostgreSQL database for the application
  2. Install the pgvector extension in your database:
    CREATE EXTENSION vector;
    
  3. Create the memories table:
    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
    );
    

Environment Configuration

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 string
  • Embeddings__ApiUrl: URL of your embedding API (defaults to Ollama)
  • Embeddings__Model: The embedding model to use

Running the Application

  1. Navigate to the PostgMem directory
  2. Run the application:
    dotnet run
    
  3. The MCP server will be available at http://localhost:5000 by default

MCP Tools

The following MCP tools are available:

Store

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 object
  • source (string): The source of the memory (e.g., 'user', 'system', etc.)
  • tags (string[]): Optional tags to categorize the memory
  • confidence (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 memories
  • limit (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 memories

Get

Retrieve a specific memory by ID.

Parameters:

  • id (Guid): The ID of the memory to retrieve

Delete

Delete a memory by ID.

Parameters:

  • id (Guid): The ID of the memory to delete

Implementation Details

  • Memory.cs: Defines the data model for memories
  • Storage.cs: Handles database operations for storing and retrieving memories
  • EmbeddingService.cs: Generates vector embeddings for text
  • MemoryTools.cs: Implements MCP tools for interacting with the memory storage

License

[Your license information here]

Contributing

[Your contribution guidelines here]

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for PostgMem MCP vector memory server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/postg-mem)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related databases storage MCP Servers

Alternative and complementary servers in the same category

View all in databases storage →
AIStor MCP server
mcp-server-aistor•minio

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

Repository stats unavailable
Databases & Storage
InfluxDB v2 MCP Server
influxdb-mcp-server•idoru

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.

Repository stats unavailable
Databases & Storage