AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
MCP verified MIT Self-run

Postg Mem

mcp-dariogriffo-postg-mem · by dariogriffo

MCP server to store memories in postgres

No reviews yet
0 installs
10 views
0.0% view→install

Install

$ agentstack add mcp-dariogriffo-postg-mem

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets Used
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/mcp-dariogriffo-postg-mem)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
stale · 1y ago

Declared compatibility

Claude CodeClaude DesktopCursorWindsurf

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Postg Mem? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

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:

``sql CREATE EXTENSION vector; ``

  1. Create the memories table:

``sql 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 ``

  1. 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

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]

Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.