CuratedMCP
OpenAI Agents SDK
Free

How to Install Memory MCP Server in OpenAI Agents SDK

Persistent memory for AI agents using a local knowledge graph — remember facts across sessions

What Memory MCP Server does

Give your AI agent a persistent memory that survives across conversations. The Memory MCP server stores entities, relationships, and observations in a local knowledge graph that Claude can read and update. Features: - Store named entities (people, projects, concepts) with properties - Create relationships between entities - Add observations and notes to existing entities - Query the knowledge graph with natural language - Persistent storage — memory survives session restarts - Delete outdated or incorrect memories - Local storage — your data never leaves your machine Real-world use cases: - "Remember that our production database is on AWS us-east-1" - "Note that Alice is the lead on the payments project" - "Store my API keys and configurations" - Remember user preferences across sessions in AI applications This is one of the most-requested MCP capabilities and the official implementation is the most trusted option in the ecosystem.

memory
knowledge-graph
persistence
context
agents

Installation steps

  1. 1Install: pip install openai-agents
  2. 2Copy the snippet below into your agent code
  3. 3Replace placeholder env values with your real keys
  4. 4Pass mcp_servers=[mcp_server] to your Agent()

Python snippet

Python snippetpython
from agents import Agent
from agents.mcp import MCPServerStdio

mcp_server = MCPServerStdio(
    command="npx",
    args=["-y", "@modelcontextprotocol/server-memory"],
)

agent = Agent(
    name="My Agent",
    model="gpt-4o",
    mcp_servers=[mcp_server],
)
Full server details GitHub Open Config Editor

Install in other clients

For maintainers

If you maintain Memory MCP Server, add this badge to your README to show it's verified on CuratedMCP:

CuratedMCP Verified
[![CuratedMCP Verified](https://curatedmcp.com/api/badge/memory-mcp-server)](https://curatedmcp.com/marketplace/memory-mcp-server)