Memory Mcp Server avatar
Memory Mcp Server

Pricing

Pay per usage

Go to Apify Store
Memory Mcp Server

Memory Mcp Server

Persistent memory for AI agents via knowledge graph. Store entities, relations, and observations that persist across sessions. MCP-compatible.

Pricing

Pay per usage

Rating

0.0

(0)

Developer

Quadruped

Quadruped

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Share

Memory MCP Server - Knowledge Graph

Persistent memory and knowledge graph for AI agents. Store entities, relations, and observations that persist across sessions.

Features

  • Entities - Store named nodes with types and observations
  • Relations - Connect entities with directional relationships
  • Observations - Attach discrete facts to entities
  • Search - Find entities by name, type, or observation content
  • Persistence - Memory persists in Apify Key-Value Store
  • Multi-tenant - Separate memory spaces using memoryKey

Tools

ToolDescription
memory.create_entitiesCreate new entities in the graph
memory.create_relationsCreate relations between entities
memory.add_observationsAdd facts to existing entities
memory.delete_entitiesRemove entities (cascades relations)
memory.delete_observationsRemove specific observations
memory.delete_relationsRemove specific relations
memory.read_graphGet complete graph with all data
memory.search_nodesSearch entities by query
memory.open_nodesGet specific entities by name

Data Model

Entity

{
"name": "John Doe",
"entityType": "person",
"observations": [
"Works at Acme Corp",
"Lives in New York",
"Prefers email communication"
]
}

Relation

{
"from": "John Doe",
"to": "Acme Corp",
"relationType": "works_at"
}

Examples

Create Entities

{
"tool": "memory.create_entities",
"memoryKey": "my-project",
"entities": "[{\"name\": \"Alice\", \"entityType\": \"person\", \"observations\": [\"Team lead\", \"Prefers Slack\"]}]"
}

Create Relations

{
"tool": "memory.create_relations",
"memoryKey": "my-project",
"relations": "[{\"from\": \"Alice\", \"to\": \"Engineering Team\", \"relationType\": \"leads\"}]"
}

Add Observations

{
"tool": "memory.add_observations",
"memoryKey": "my-project",
"entityName": "Alice",
"observations": "[\"Recently promoted\", \"Working on Q4 roadmap\"]"
}

Search Nodes

{
"tool": "memory.search_nodes",
"memoryKey": "my-project",
"searchQuery": "engineering"
}

Read Full Graph

{
"tool": "memory.read_graph",
"memoryKey": "my-project"
}

Use Cases

  • Personal Assistant Memory - Remember user preferences, contacts, projects
  • CRM Knowledge Base - Store customer information and relationships
  • Project Context - Track team members, decisions, and dependencies
  • Research Notes - Connect concepts, papers, and findings
  • Conversation History - Persist important facts across chat sessions

Memory Keys

Use memoryKey to create separate memory spaces:

  • user-123 - Per-user memory
  • project-alpha - Per-project memory
  • session-xyz - Per-session memory

Memory persists in Apify Key-Value Store under key memory_{memoryKey}.

MCP Integration

Works with Claude Desktop, VS Code, and any MCP-compatible agent.

Claude Desktop (claude_desktop_config.json):

{
"mcpServers": {
"memory": {
"url": "https://mcp.apify.com?actors=YOUR_USERNAME/memory-mcp-server"
}
}
}

System Prompt Example

Add to your AI agent's system prompt:

You have access to a persistent memory system. At the start of each conversation:
1. Use memory.read_graph to recall what you know about the user
2. As you learn new information, use memory.create_entities and memory.add_observations to save it
3. Use memory.create_relations to connect related concepts
Important information to remember:
- User's name, preferences, and goals
- Projects they're working on
- People and organizations they mention
- Decisions and agreements made

Pricing

Apify compute costs only. No external API required.

Limits

LimitValue
Max entities10,000
Max observations per entity1,000
Max observation length10,000 chars
Memory file size10 MB

Support

For issues or feature requests, open a ticket on the Issues tab.