Memory MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Memory MCPremember that I prefer dark mode"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Memory MCP
A persistent, cross-provider memory server using FastMCP, Langchain, and Postgres.
Features
MCP Server that agents can use to store facts about the user
Transferrable across providers - usable across multiple agents
Compatible with any MCP-capable agent (Claude Desktop, Claude Code, Opencode, etc.)
Backed by Postgres to ensure data persistence and scalability
Support multiple users from a single server
Exposes two tools to your agent:
search_memory: Search the database for memories about the userupsert_memory: Add/update memories for the user
Related MCP server: persistent-memory
Prerequisites
Docker/Podman compose
Openshift CLI
Usage
Local
Clone the repository:
git clone https://github.com/taagarwa-rh/memory_mcp.git cd memory_mcpSpin up the services:
# For Podman podman compose up -d # For Docker docker compose up -dThe MCP server will now be available at
http://localhost:1313/mcp
Openshift
(Optional) Update the postgres username and password in secret.yaml
Deploy the resources
oc apply -n <your-namespace> -f deployFetch the route:
ROUTE=$(oc get route memory-mcp -o jsonpath='{.spec.host}') ROUTE="https://$ROUTE/mcp" echo $ROUTE
Connect to Agents
Claude Desktop
{
"mcpServers": {
"memory": {
"transport": "http",
"url": "<mcp-route>",
"headers": {
"X-User-Id": "your_user_id"
}
}
}
}Claude Code
claude mcp add --transport http memory https://<mcp-route>/mcp --header "X-User-Id: <your-username>"OpenCode
opencode mcp addLocation: Either Name: memory Type: Remote URL: https:///mcp
Then in your opencode.json, add the user ID header:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"memory": {
"type": "remote",
"url": "https://<mcp-route>/mcp",
"headers": {
"X-User-Id": "<your-username>"
}
}
}
}This server cannot be deployed
Maintenance
Related MCP Connectors
- KogniteOAuthdev.kognite
Hosted agent memory: store, search, and recall facts across sessions from any MCP client.
Persistent memory for AI agents across Claude, ChatGPT and any MCP client.
- memnodeOAuthdev.memnode
Persistent, inspectable memory for AI agents with lineage, correction, and a hosted MCP endpoint.
Cross-tool persistent memory and context for AI assistants over MCP.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceFramework-agnostic MCP server for agent memory with Postgres + pgvector, enabling persistent memory, recall, and task management across sessions.MIT
- AlicenseNot gradedqualityBmaintenanceA self-hostable MCP server that provides permanent memory for AI agents using Postgres + pgvector for semantic search and Markdown file sync.3 npmMIT
- AlicenseNot gradedqualityBmaintenanceMCP server providing agents with persistent working, episodic, and semantic memory backed by CockroachDB, exposed via tools to store, recall, list, and forget memories.MIT
- FlicenseNot gradedqualityCmaintenanceMCP server that provides AI assistants persistent context memory across sessions, using Supabase PostgreSQL and pgvector to save, search, list, and delete memories via natural language.573 npm-