
Mcp Neo4j Memory
io.github.neo4j-contrib由 GitHub 帳號 neo4j-contrib 發布v1.0.0更新於 Oct 27, 2026
MCP Neo4j Knowledge Graph Memory Server
發布方自己的服務:Memory.fit
概覽
為助理提供存放在 Neo4j 的持久化知識圖譜記憶,可跨工作階段建立、檢索與刪除實體、關係與觀察紀錄。
- 可以做什麼
- 讀取與檢索記憶圖譜:讀取整張圖譜、依名稱/類型/觀察內容搜尋節點,或依名稱取得指定實體
- 建立與刪除實體,包含名稱、類型與初始觀察內容
- 建立與刪除實體之間具類型的關聯
- 為既有實體新增觀察內容,或刪除指定的觀察內容
- 可為工具名稱加上命名空間前綴,方便多租戶部署
- 適用情境
- 適合希望助理跨對話或跨工作階段記住事實及其相互關係,並以圖譜方式查詢這些累積知識的情境。適用於已自行運行或能部署 Neo4j 資料庫(本機或 Neo4j Aura)的使用者。
- 執行需求
- 以本機 Python 套件(pip 或 uvx)或 Docker 映像執行。需要可連線的 Neo4j 執行個體與憑證:NEO4J_URI、NEO4J_USERNAME、NEO4J_PASSWORD,另可選用 NEO4J_DATABASE 與 NEO4J_NAMESPACE。預設使用 stdio 傳輸,也支援 HTTP 與 SSE 模式。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Mcp Neo4j Memory,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
🧠🕸️ Neo4j Knowledge Graph Memory MCP Server
mcp-name: io.github.neo4j-contrib/mcp-neo4j-memory
🌟 Overview
A Model Context Protocol (MCP) server implementation that provides persistent memory capabilities through Neo4j graph database integration.
By storing information in a graph structure, this server maintains complex relationships between entities as memory nodes and enables long-term retention of knowledge that can be queried and analyzed across multiple conversations or sessions.
With Neo4j Aura you can host your own database server for free or share it with your collaborators. Otherwise you can run your own Neo4j server locally.
The MCP server leverages Neo4j's graph database capabilities to create an interconnected knowledge base that serves as an external memory system. Through Cypher queries, it allows exploration and retrieval of stored information, relationship analysis between different data points, and generation of insights from the accumulated knowledge. This memory can be further enhanced with Claude's capabilities.
🕸️ Graph Schema
Memory- A node representing an entity with a name, type, and observations.Relationship- A relationship between two entities with a type.
🔍 Usage Example
Results in Claude calling the create_entities and create_relations tools.
📦 Components
🔧 Tools
The server offers these core tools:
🔎 Query Tools
-
read_graph- Read the entire knowledge graph
- No input required
- Returns: Complete graph with entities and relations
-
search_nodes- Search for nodes based on a query
- Input:
query(string): Search query matching names, types, observations
- Returns: Matching subgraph
-
find_nodes- Find specific nodes by name
- Input:
names(array of strings): Entity names to retrieve
- Returns: Subgraph with specified nodes
♟️ Entity Management Tools
-
create_entities- Create multiple new entities in the knowledge graph
- Input:
entities: Array of objects with:name(string): Name of the entitytype(string): Type of the entityobservations(array of strings): Initial observations about the entity
- Returns: Created entities
-
delete_entities- Delete multiple entities and their associated relations
- Input:
entityNames(array of strings): Names of entities to delete
- Returns: Success confirmation
🔗 Relation Management Tools
-
create_relations- Create multiple new relations between entities
- Input:
relations: Array of objects with:source(string): Name of source entitytarget(string): Name of target entityrelationType(string): Type of relation
- Returns: Created relations
-
delete_relations- Delete multiple relations from the graph
- Input:
relations: Array of objects with same schema as create_relations
- Returns: Success confirmation
📝 Observation Management Tools
-
add_observations- Add new observations to existing entities
- Input:
observations: Array of objects with:entityName(string): Entity to add tocontents(array of strings): Observations to add
- Returns: Added observation details
-
delete_observations- Delete specific observations from entities
- Input:
deletions: Array of objects with:entityName(string): Entity to delete fromobservations(array of strings): Observations to remove
- Returns: Success confirmation
🔧 Usage with Claude Desktop
💾 Installation
⚙️ Configuration
Add the server to your claude_desktop_config.json with configuration of:
Alternatively, you can set environment variables:
Namespacing
For multi-tenant deployments, add --namespace to prefix tool names:
Tools become: myapp-read_graph, myapp-create_entities, etc.
Can also use NEO4J_NAMESPACE environment variable.
🌐 HTTP Transport Mode
The server supports HTTP transport for web-based deployments and microservices:
Environment variables for HTTP configuration:
🔄 Transport Modes
The server supports three transport modes:
- STDIO (default): Standard input/output for local tools and Claude Desktop
- SSE: Server-Sent Events for web-based deployments
- HTTP: Streamable HTTP for modern web deployments and microservices
🐳 Using with Docker
🔒 Security Protection
The server includes comprehensive security protection with secure defaults that protect against common web-based attacks while preserving full MCP functionality when using HTTP transport.
🛡️ DNS Rebinding Protection
TrustedHost Middleware validates Host headers to prevent DNS rebinding attacks:
Secure by Default:
- Only
localhostand127.0.0.1hosts are allowed by default
Environment Variable:
🌐 CORS Protection
Cross-Origin Resource Sharing (CORS) protection blocks browser-based requests by default:
Environment Variable:
🔧 Complete Security Configuration
Development Setup:
Production Setup:
🚨 Security Best Practices
For allow_origins:
- Be specific:
["https://example.com", "https://example.com"] - Never use
"*"in production with credentials - Use HTTPS origins in production
For allowed_hosts:
- Include your actual domain:
["example.com", "www.example.com"] - Include localhost only for development
- Never use
"*"unless you understand the risks
🐳 Docker Deployment
The Neo4j Memory MCP server can be deployed using Docker for remote deployments. Docker deployment should use HTTP transport for web accessibility. In order to integrate this deployment with applications like Claude Desktop, you will have to use a proxy in your MCP configuration such as mcp-remote.
📦 Using Your Built Image
After building locally with docker build -t mcp-neo4j-memory:latest .:
🔧 Environment Variables
🌐 SSE Transport for Legacy Web Access
When using SSE transport (for legacy web clients), the server exposes an HTTP endpoint:
🚀 Development
📦 Prerequisites
- Install
uv(Universal Virtualenv):
- Clone the repository and set up development environment:
🐳 Docker
Build and run the Docker container:
📄 License
This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.
來源:servers/mcp-neo4j-memory/README.md,提交 1c7ad07
工具
0版本歷史
1- v1.0.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
其他 Memory 整合

Memory.fit
fit.memory官方發布者
託管式 Memory.fit 伺服器,讓 AI 讀取你的訓練、睡眠、恢復與飲食資料,並寫回每週計畫、每日目標和飲食計畫。
pg.ddx.io: the PostgreSQL community's memory
io.ddx.pg官方發布者
pg.ddx.io: the PostgreSQL community's memory 的託管 MCP 服務,由 pg.ddx.io 發布;無需登入;Streamable HTTP;29 個工具。
var.gg Naming Memory
gg.var官方發布者
遠端 MCP 伺服器,可依領域概念推薦並檢索韓、日、中、越、英多語言的程式識別字名稱,並提供 ERD 結構查詢。

Counterparts
ai.counterparts
為 Claude Code 與 Claude Desktop 提供的本地優先長期記憶:助理自行寫下關於你與專案的筆記,並在之後的對話中回想起來。

LAHZE - Persian AI Memory Platform
由 GitHub 帳號 pedramgholizadeh 發布
以波斯語為先的地理記憶平臺:發現地點,起草併發布僅限波斯語的記憶。AI 翻譯