|
| 1 | +# Neo4j Memory MCP Server |
| 2 | + |
| 3 | +Provide persistent memory capabilities through Neo4j graph database integration. |
| 4 | + |
| 5 | +[What is an MCP Server?](https://www.anthropic.com/news/model-context-protocol) |
| 6 | + |
| 7 | +## Characteristics |
| 8 | +Attribute|Details| |
| 9 | +|-|-| |
| 10 | +**Image Source**|Official Image |
| 11 | +**Docker Image**|[mcp/neo4j-memory](https://hub.docker.com/repository/docker/mcp/neo4j-memory) |
| 12 | +**Author**|[neo4j-contrib](https://github.com/neo4j-contrib) |
| 13 | +**Repository**|https://github.com/neo4j-contrib/mcp-neo4j |
| 14 | +**Dockerfile**|https://github.com/neo4j-contrib/mcp-neo4j/blob/main/servers/mcp-neo4j-memory/Dockerfile |
| 15 | +**Docker Image built by**|Docker Inc. |
| 16 | +**Docker Scout Health Score**|  |
| 17 | +**Verify Signature**|`COSIGN_REPOSITORY=mcp/signatures cosign verify mcp/neo4j-memory --key https://raw.githubusercontent.com/docker/keyring/refs/heads/main/public/mcp/latest.pub` |
| 18 | +**Licence**|MIT License |
| 19 | + |
| 20 | +## Available Tools |
| 21 | +Tools provided by this Server|Short Description |
| 22 | +-|- |
| 23 | +`add_observations`|Add new observations to existing entities in the knowledge graph| |
| 24 | +`create_entities`|Create multiple new entities in the knowledge graph| |
| 25 | +`create_relations`|Create multiple new relations between entities in the knowledge graph.| |
| 26 | +`delete_entities`|Delete multiple entities and their associated relations from the knowledge graph| |
| 27 | +`delete_observations`|Delete specific observations from entities in the knowledge graph| |
| 28 | +`delete_relations`|Delete multiple relations from the knowledge graph| |
| 29 | +`find_nodes`|Open specific nodes in the knowledge graph by their names| |
| 30 | +`read_graph`|Read the entire knowledge graph| |
| 31 | +`search_nodes`|Search for nodes in the knowledge graph based on a query| |
| 32 | + |
| 33 | +--- |
| 34 | +## Tools Details |
| 35 | + |
| 36 | +#### Tool: **`add_observations`** |
| 37 | +Add new observations to existing entities in the knowledge graph |
| 38 | +Parameters|Type|Description |
| 39 | +-|-|- |
| 40 | +`observations`|`array`| |
| 41 | + |
| 42 | +--- |
| 43 | +#### Tool: **`create_entities`** |
| 44 | +Create multiple new entities in the knowledge graph |
| 45 | +Parameters|Type|Description |
| 46 | +-|-|- |
| 47 | +`entities`|`array`| |
| 48 | + |
| 49 | +--- |
| 50 | +#### Tool: **`create_relations`** |
| 51 | +Create multiple new relations between entities in the knowledge graph. Relations should be in active voice |
| 52 | +Parameters|Type|Description |
| 53 | +-|-|- |
| 54 | +`relations`|`array`| |
| 55 | + |
| 56 | +--- |
| 57 | +#### Tool: **`delete_entities`** |
| 58 | +Delete multiple entities and their associated relations from the knowledge graph |
| 59 | +Parameters|Type|Description |
| 60 | +-|-|- |
| 61 | +`entityNames`|`array`|An array of entity names to delete |
| 62 | + |
| 63 | +--- |
| 64 | +#### Tool: **`delete_observations`** |
| 65 | +Delete specific observations from entities in the knowledge graph |
| 66 | +Parameters|Type|Description |
| 67 | +-|-|- |
| 68 | +`deletions`|`array`| |
| 69 | + |
| 70 | +--- |
| 71 | +#### Tool: **`delete_relations`** |
| 72 | +Delete multiple relations from the knowledge graph |
| 73 | +Parameters|Type|Description |
| 74 | +-|-|- |
| 75 | +`relations`|`array`|An array of relations to delete |
| 76 | + |
| 77 | +--- |
| 78 | +#### Tool: **`find_nodes`** |
| 79 | +Open specific nodes in the knowledge graph by their names |
| 80 | +Parameters|Type|Description |
| 81 | +-|-|- |
| 82 | +`names`|`array`|An array of entity names to retrieve |
| 83 | + |
| 84 | +--- |
| 85 | +#### Tool: **`read_graph`** |
| 86 | +Read the entire knowledge graph |
| 87 | +#### Tool: **`search_nodes`** |
| 88 | +Search for nodes in the knowledge graph based on a query |
| 89 | +Parameters|Type|Description |
| 90 | +-|-|- |
| 91 | +`query`|`string`|The search query to match against entity names, types, and observation content |
| 92 | + |
| 93 | +--- |
| 94 | +## Use this MCP Server |
| 95 | + |
| 96 | +```json |
| 97 | +{ |
| 98 | + "mcpServers": { |
| 99 | + "neo4j-memory": { |
| 100 | + "command": "docker", |
| 101 | + "args": [ |
| 102 | + "run", |
| 103 | + "-i", |
| 104 | + "--rm", |
| 105 | + "-e", |
| 106 | + "NEO4J_URL", |
| 107 | + "-e", |
| 108 | + "NEO4J_USERNAME", |
| 109 | + "-e", |
| 110 | + "NEO4J_PASSWORD", |
| 111 | + "mcp/neo4j-memory" |
| 112 | + ], |
| 113 | + "env": { |
| 114 | + "NEO4J_URL": "bolt://host.docker.internal:7687", |
| 115 | + "NEO4J_USERNAME": "neo4j", |
| 116 | + "NEO4J_PASSWORD": "password" |
| 117 | + } |
| 118 | + } |
| 119 | + } |
| 120 | +} |
| 121 | +``` |
| 122 | + |
| 123 | +[Why is it safer to run MCP Servers with Docker?](https://www.docker.com/blog/the-model-context-protocol-simplifying-building-ai-apps-with-anthropic-claude-desktop-and-docker/) |
0 commit comments