Postg Mem
PostgMem is a .NET - based MCP service that uses PostgreSQL and the pgvector extension to provide vector memory storage and retrieval functions for AI applications, supporting semantic search and tag filtering.
2 points
9.0K

What is PostgMem?

PostgMem is an MCP server built with .NET for storing, retrieving, and searching memories with vector embeddings. It enables efficient similarity search through the PostgreSQL database and the pgvector extension.

How to use PostgMem?

PostgMem allows you to store memories, retrieve memories by ID, perform semantic searches, and filter results. You can start using it in just a few simple steps.

Use Cases

PostgMem is well - suited for application scenarios that require large - scale vector storage and fast retrieval, such as chatbots, knowledge graphs, and recommendation systems.

Main Features

Store Memories
Supports storing memories with vector embeddings into the PostgreSQL database.
Retrieve Memories
Quickly retrieve specific memories based on memory IDs.
Semantic Search
Search for the most relevant memories to the given text through vector similarity search.
Tag Filtering
Filter memories based on tags for easy classification and management.
MCP Protocol Integration
Supports the Model Context Protocol (MCP) for easy integration with other AI systems.
Advantages
Powerful performance and scalability based on PostgreSQL
Efficient vector similarity search
Support for multiple filtering conditions (e.g., tags)
Easy integration into existing AI systems
Limitations
Requires installation and configuration of PostgreSQL and the pgvector extension
May require certain database optimizations for complex queries

How to Use

Install Dependencies
Ensure that the .NET 9.0 SDK and the PostgreSQL database are installed.
Create Database Tables
Run a script in PostgreSQL to create the 'memories' table.
Configure Environment Variables
Set the connection string and other necessary parameters.
Start the Service
Run the dotnet run command to start the PostgMem service.

Usage Examples

Store Memories
Store a conversation in PostgMem.
Search Memories
Find memories similar to the input text.

Frequently Asked Questions

How to install PostgreSQL?
Does PostgMem support custom models?
How to update the database schema?

Related Resources

PostgreSQL Official Website
Official documentation and tutorials for PostgreSQL.
pgvector GitHub
Homepage of the pgvector open - source project.
PostgMem Examples
Practical use cases of PostgMem.

Installation

Copy the following command to your Client for configuration
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

A
Airweave
Airweave is an open - source context retrieval layer for AI agents and RAG systems. It connects and synchronizes data from various applications, tools, and databases, and provides relevant, real - time, multi - source contextual information to AI agents through a unified search interface.
Python
15.1K
5 points
V
Vestige
Vestige is an AI memory engine based on cognitive science. By implementing 29 neuroscience modules such as prediction error gating, FSRS - 6 spaced repetition, and memory dreaming, it provides long - term memory capabilities for AI. It includes a 3D visualization dashboard and 21 MCP tools, runs completely locally, and does not require the cloud.
Rust
9.4K
4.5 points
M
Moltbrain
MoltBrain is a long-term memory layer plugin designed for OpenClaw, MoltBook, and Claude Code, capable of automatically learning and recalling project context, providing intelligent search, observation recording, analysis statistics, and persistent storage functions.
TypeScript
10.0K
4.5 points
H
Haiku.rag
Haiku RAG is an intelligent retrieval - augmented generation system built on LanceDB, Pydantic AI, and Docling. It supports hybrid search, re - ranking, Q&A agents, multi - agent research processes, and provides local - first document processing and MCP server integration.
Python
16.9K
5 points
C
Cipher
Cipher is an open-source memory layer framework designed for programming AI agents. It integrates with various IDEs and AI coding assistants through the MCP protocol, providing core functions such as automatic memory generation, team memory sharing, and dual-system memory management.
TypeScript
0
5 points
A
Apple Notes MCP
A server that provides local Apple Notes database access for the Claude desktop client, supporting reading and searching of note content.
Python
15.5K
4.3 points
M
MCP Alchemy
Certified
MCP Alchemy is a tool that connects Claude Desktop to multiple databases, supporting SQL queries, database structure analysis, and data report generation.
Python
15.2K
4.2 points
P
Postgresql MCP
A PostgreSQL database MCP service based on the FastMCP library, providing CRUD operations, schema inspection, and custom SQL query functions for specified tables.
Python
15.7K
4 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
39.0K
5 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
81.2K
4.3 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
27.2K
4.3 points
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
24.8K
4.5 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
69.4K
4.5 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
37.3K
5 points
G
Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
24.9K
4.5 points
M
Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
56.2K
4.8 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2026AIBase