The hosted service exposes 12 MCP tools at https://memory.neo4jlabs.com/mcp.
Each language SDK ships the same surface so you can register it on your own
MCP server with one helper call.
The 12 tools
| Tool | Description |
|---|---|
|
Create a new conversation session for a user. |
|
Append one or more messages to a conversation. |
|
Three-tier context (reflections + observations + recent messages). |
|
Search messages within a conversation. |
|
Search the knowledge graph for entities. |
|
Fetch one entity (with relationships) by id. |
|
Manually create an entity. |
|
All conversations that mentioned this entity. |
|
Log a reasoning step under a conversation. |
|
Log a tool invocation tied to a reasoning step. |
|
Full reasoning trace for a conversation. |
|
Detailed explanation of one reasoning step. |
Wiring into your stack
- Claude Desktop / Cursor / Windsurf
-
Point your MCP config at
https://memory.neo4jlabs.com/mcpover Streamable HTTP transport with yournams_*token. No SDK install required. - TypeScript MCP server
-
import { createMemoryTools, handleMemoryToolCall } from "@neo4j-labs/agent-memory/mcp"; import { MemoryClient } from "@neo4j-labs/agent-memory"; const client = new MemoryClient({ endpoint: "...", apiKey: "..." }); const tools = createMemoryTools(); // 12 standard tools // Wire each tool to the dispatcher in your MCP framework for (const t of tools) { myMcpServer.registerTool(t, async (args) => handleMemoryToolCall(client, t.name, args)); } - Go HTTP handler
-
client, _ := memory.New(memory.WithEndpoint("..."), memory.WithAPIKey("...")) http.Handle("/mcp/", client.MCPHandler()) // Exposes /tools/list and /tools/call http.ListenAndServe(":8080", nil) - C# (any HTTP framework)
-
using var client = new MemoryClient(...); var tools = Neo4j.AgentMemory.Mcp.McpHandler.Tools(); var result = await Neo4j.AgentMemory.Mcp.McpHandler.DispatchAsync(client, name, args); - R (plumber)
-
client <- MemoryClient$new(endpoint = "...", api_key = "...") tools <- mcp_tools() # Plug into your plumber routes: # pr$handle("POST", "/tools/call", function(req, res) mcp_dispatch(client, name, args))
Backwards compatibility (TS)
Older memory.<verb> tool names from @neo4j-labs/agent-memory v0.1 are
honored as deprecated aliases. They emit a console warning and forward to the
new tool. Aliases will be removed in v0.3.
| Old name | New name |
|---|---|
|
|
|
|
|
|
|
|
|
|