Skip to main content

MCP Server

The SharedMemory MCP server lets any MCP-compatible AI assistant (Claude Desktop, Cursor, Windsurf, VS Code Copilot) access persistent memory.

npx @sharedmemory/mcp-server

Setup​

Edit ~/Library/Application Support/Claude/claude_desktop_config.json:

{
"mcpServers": {
"sharedmemory": {
"command": "npx",
"args": ["@sharedmemory/mcp-server"],
"env": {
"SHAREDMEMORY_API_KEY": "sm_agent_...",
"SHAREDMEMORY_API_URL": "https://api.sharedmemory.ai",
"SHAREDMEMORY_VOLUME_ID": "your-volume-id"
}
}
}
}

Environment Variables​

VariableRequiredDescription
SHAREDMEMORY_API_KEYYesYour agent API key (sm_agent_... or sm_proj_rw_...)
SHAREDMEMORY_API_URLNoAPI base URL (default: https://api.sharedmemory.ai)
SHAREDMEMORY_VOLUME_IDNoDefault project (volume) ID for all operations

Tools​

The MCP server exposes 7 tools to the AI assistant:

remember​

Store a fact, note, or piece of information. The memory pipeline handles classification, conflict checking, entity extraction, and graph building automatically.

Parameters:

NameTypeRequiredDescription
contentstringYesThe information to remember
volume_idstringNoVolume ID (uses default)
memory_typeenumNofactual, preference, event, relationship, technical

recall​

Search memories by semantic similarity. Returns matching memories plus knowledge graph facts.

Parameters:

NameTypeRequiredDescription
querystringYesWhat to search for
volume_idstringNoVolume ID
limitnumberNoMax results (1–50, default: 10)

get_entity​

Get everything known about a specific entity (person, project, concept). Returns summary, facts, and relationships.

Parameters:

NameTypeRequiredDescription
entity_namestringYesName of the entity
volume_idstringNoVolume ID

search_entities​

Search for entities in the knowledge graph by name.

Parameters:

NameTypeRequiredDescription
querystringYesSearch term
volume_idstringNoVolume ID
limitnumberNoMax results (1–50, default: 20)

explore_graph​

Overview of the entire knowledge graph — all entities and relationships.

Parameters:

NameTypeRequiredDescription
volume_idstringNoVolume ID
limitnumberNoMax entities (1–200, default: 50)

list_volumes​

List all memory projects (volumes) accessible to this agent. No parameters.

manage_memory​

Delete or update an existing memory by ID.

Parameters:

NameTypeRequiredDescription
actionenumYesdelete or update
memory_idstringYesUUID of the memory to manage
volume_idstringNoVolume ID (uses default)
contentstringNoNew content (required for update)

Resources​

URIDescription
memory://graphJSON representation of the knowledge graph for the default volume

Prompts​

summarize-knowledge​

Generates a comprehensive summary of all knowledge in a volume. Useful as a conversation starter.

what-do-you-know-about​

Asks the AI to synthesize everything SharedMemory knows about a specific topic, combining entity data, memories, and graph facts.

Usage Examples​

Once configured, just talk to your AI naturally:

"Remember that our quarterly meeting is on March 15th"

"What do you know about the React migration project?"

"Show me everyone who works on the backend team"

"What did I tell you about deployment procedures?"

The MCP server handles the API calls behind the scenes.