ต้นแบบ · รุ่นทดลอง: มีทุก server ในทะเบียนทางการ อัปเดตทุก 30 นาที เข้าสู่ระบบด้วย Google เพื่อเขียนรีวิวได้แล้วต้นแบบ · อัปเดตทุก 30 นาที
PopNx MCPที่รวม MCP สำหรับคนใช้ AI · วิธีติดตั้งภาษาไทยทุกตัว

MCP Neo4j Memory

โดย neo4j-contribรุ่น 1.0.0i★ 989 (ดาวรวมทั้งรีโป)iรันบนเครื่อง
ชื่อใน registryio.github.neo4j-contrib/mcp-neo4j-memory

วิธีติดตั้ง

ใช้ทำอะไรได้

ยังไม่มีคำอธิบายภาษาไทย ดูข้อเท็จจริงด้านล่าง หรือเปิดคำอธิบายต้นฉบับจากผู้ทำ

  • ต่อแบบ ติดตั้งในเครื่อง
  • บัญชีหรือคีย์ ต้องมี NEO4J_URI, NEO4J_USERNAME, NEO4J_PASSWORD
  • หมวด ค้นข้อมูลและความจำของ AI
คำอธิบายต้นฉบับจากผู้ทำ (อังกฤษ)
MCP Neo4j Knowledge Graph Memory Server

ติดตั้ง

เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง

ผลตรวจผ่าน 3/3 · ทำงานบนเครื่องคุณ · ✓ ตรวจคำสั่งแล้ว 13 พ.ย. 2569

ขั้นแรก: คุณใช้ AI ตัวไหน

เลือกแอปที่คุณใช้ ขั้นตอนจะขึ้นด้านล่าง

ต่อกับ Claude ได้ แต่ต้องเตรียมก่อน

ต้องมีคีย์ของ MCP Neo4j Memory (สร้างที่เว็บของผู้ทำ) · ต้องลง Python (uv) ในเครื่องก่อน (ทำครั้งเดียว) · ใช้ได้เฉพาะแอป Claude บนคอม (Windows หรือ Mac) ไม่ใช่บนเว็บหรือมือถือ

  1. ลง Python (uv) ในเครื่อง

    ทำครั้งเดียว ใช้ได้กับทุกตัวที่ต้องใช้ Python (uv)

    เปิดหน้าดาวน์โหลด Python (uv) ↗

  2. สมัครและสร้างคีย์ของ MCP Neo4j Memory

    เปิดเว็บของผู้ทำ สมัครบัญชีแล้วสร้างคีย์ (API key) เก็บไว้ ใช้ในขั้นถัดไป ราคาและแผนฟรีดูที่เว็บของผู้ทำ

    วิธีขอคีย์อยู่ใน README ของผู้ทำด้านล่าง

  3. เปิดไฟล์ตั้งค่าของแอป Claude บนคอม

    SettingsDeveloperEdit Config

  4. วางค่าตั้งนี้แล้วบันทึกไฟล์

    {
      "mcpServers": {
        "neo4j-memory": {
          "command": "uvx",
          "args": [
            "mcp-neo4j-memory"
          ],
          "env": {
            "NEO4J_URI": "ใส่ค่าของคุณ",
            "NEO4J_USERNAME": "ใส่ค่าของคุณ",
            "NEO4J_PASSWORD": "ใส่ค่าของคุณ",
            "NEO4J_DATABASE": "ใส่ค่าของคุณ",
            "NEO4J_NAMESPACE": "ใส่ค่าของคุณ"
          }
        }
      }
    }

    วางคีย์ในช่องของแอปเท่านั้น อย่าวางในแชตหรือส่งให้ใคร

  5. ปิดแอป Claude แล้วเปิดใหม่

  6. ลองเลย

    ใช้ MCP Neo4j Memory บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง

    ✓ ถ้า Claude บอกว่ากำลังใช้ MCP Neo4j Memory หรือมีชื่อเครื่องมือของ MCP Neo4j Memory ขึ้นในคำตอบ แปลว่าต่อสำเร็จ

ชื่อเมนูตรวจกับหน้าช่วยเหลือของ Anthropic เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป

ChatGPT ยังต่อ MCP Neo4j Memory ไม่ได้

MCP Neo4j Memory ต้องติดตั้งในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะตัวที่ทำงานบนเว็บ

คุณทำแบบนี้แทนได้

ก · ใช้แอปที่ต่อ MCP Neo4j Memory ได้

  • ต้องมีคีย์ของ MCP Neo4j Memory (สร้างที่เว็บของผู้ทำ) · ต้องลง Python (uv) ในเครื่องก่อน (ทำครั้งเดียว) · ใช้ได้เฉพาะแอป Claude บนคอม (Windows หรือ Mac) ไม่ใช่บนเว็บหรือมือถือ
  • ต้องมีคีย์ของ MCP Neo4j Memory (สร้างที่เว็บของผู้ทำ) · ต้องลง Python (uv) ในเครื่องก่อน (ทำครั้งเดียว)
  • ต้องมีคีย์ของ MCP Neo4j Memory (สร้างที่เว็บของผู้ทำ) · ต้องลง Python (uv) ในเครื่องก่อน (ทำครั้งเดียว)
  • ต้องมีคีย์ของ MCP Neo4j Memory (สร้างที่เว็บของผู้ทำ) · ต้องลง Python (uv) ในเครื่องก่อน (ทำครั้งเดียว)

ข · ตัวอื่นในหมวด ค้นข้อมูลและความจำของ AI ที่ต่อกับ ChatGPT ได้

เลือกจากตัวที่ใช้มากในหมวดเดียวกัน เฉพาะตัวที่ต่อด้วยที่อยู่ได้โดยไม่ต้องใส่คีย์

ต่อกับ Claude Code ได้ แต่ต้องเตรียมก่อน

ต้องมีคีย์ของ MCP Neo4j Memory (สร้างที่เว็บของผู้ทำ) · ต้องลง Python (uv) ในเครื่องก่อน (ทำครั้งเดียว)

  1. ลง Python (uv) ในเครื่อง

    ทำครั้งเดียว ใช้ได้กับทุกตัวที่ต้องใช้ Python (uv)

    เปิดหน้าดาวน์โหลด Python (uv) ↗

  2. สมัครและสร้างคีย์ของ MCP Neo4j Memory

    เปิดเว็บของผู้ทำ สมัครบัญชีแล้วสร้างคีย์ (API key) เก็บไว้ ใช้ในขั้นถัดไป ราคาและแผนฟรีดูที่เว็บของผู้ทำ

    วิธีขอคีย์อยู่ใน README ของผู้ทำด้านล่าง

  3. เปิด Terminal

    Mac: กด Command+Space พิมพ์ Terminal · Windows: เปิด PowerShell

  4. วางคำสั่งนี้แล้วกด Enter

    claude mcp add --scope user neo4j-memory --env NEO4J_URI='ใส่ค่าของคุณ' --env NEO4J_USERNAME='ใส่ค่าของคุณ' --env NEO4J_PASSWORD='ใส่ค่าของคุณ' --env NEO4J_DATABASE='ใส่ค่าของคุณ' --env NEO4J_NAMESPACE='ใส่ค่าของคุณ' -- uvx mcp-neo4j-memory

    แก้ “ใส่ค่าของคุณ” เป็นคีย์ของคุณก่อนกด Enter

    วางคีย์ในช่องของแอปเท่านั้น อย่าวางในแชตหรือส่งให้ใคร

  5. พิมพ์ /mcp ใน Claude Code

    ต้องเห็น MCP Neo4j Memory ในรายการและขึ้นว่าเชื่อมต่อแล้ว

  6. ลองเลย

    ใช้ MCP Neo4j Memory บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง

    ✓ ถ้า Claude Code บอกว่ากำลังใช้ MCP Neo4j Memory หรือมีชื่อเครื่องมือของ MCP Neo4j Memory ขึ้นในคำตอบ แปลว่าต่อสำเร็จ

ชื่อเมนูตรวจกับหน้าช่วยเหลือของ Anthropic เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป

ต่อกับ Cursor ได้ แต่ต้องเตรียมก่อน

ต้องมีคีย์ของ MCP Neo4j Memory (สร้างที่เว็บของผู้ทำ) · ต้องลง Python (uv) ในเครื่องก่อน (ทำครั้งเดียว)

  1. ลง Python (uv) ในเครื่อง

    ทำครั้งเดียว ใช้ได้กับทุกตัวที่ต้องใช้ Python (uv)

    เปิดหน้าดาวน์โหลด Python (uv) ↗

  2. สมัครและสร้างคีย์ของ MCP Neo4j Memory

    เปิดเว็บของผู้ทำ สมัครบัญชีแล้วสร้างคีย์ (API key) เก็บไว้ ใช้ในขั้นถัดไป ราคาและแผนฟรีดูที่เว็บของผู้ทำ

    วิธีขอคีย์อยู่ใน README ของผู้ทำด้านล่าง

  3. กดปุ่มนี้เพื่อเปิด Cursor

    เปิดใน Cursor

    Cursor จะถามยืนยันการติดตั้ง ให้กด Install

  4. ใส่คีย์ในช่องที่ว่างไว้

    ในค่าตั้งของ MCP Neo4j Memory ช่อง NEO4J_URI, NEO4J_USERNAME, NEO4J_PASSWORD, NEO4J_DATABASE, NEO4J_NAMESPACE ยังว่าง ใส่คีย์ของคุณแล้วบันทึก

    วางคีย์ในช่องของแอปเท่านั้น อย่าวางในแชตหรือส่งให้ใคร

  5. เปิดแชตของ AI ใน Cursor โหมด Agent

  6. ลองเลย

    ใช้ MCP Neo4j Memory บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง

    ✓ ถ้า Cursor บอกว่ากำลังใช้ MCP Neo4j Memory หรือมีชื่อเครื่องมือของ MCP Neo4j Memory ขึ้นในคำตอบ แปลว่าต่อสำเร็จ

ชื่อเมนูตรวจกับหน้าช่วยเหลือของ Cursor เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป

ต่อกับ VS Code ได้ แต่ต้องเตรียมก่อน

ต้องมีคีย์ของ MCP Neo4j Memory (สร้างที่เว็บของผู้ทำ) · ต้องลง Python (uv) ในเครื่องก่อน (ทำครั้งเดียว)

  1. ลง Python (uv) ในเครื่อง

    ทำครั้งเดียว ใช้ได้กับทุกตัวที่ต้องใช้ Python (uv)

    เปิดหน้าดาวน์โหลด Python (uv) ↗

  2. สมัครและสร้างคีย์ของ MCP Neo4j Memory

    เปิดเว็บของผู้ทำ สมัครบัญชีแล้วสร้างคีย์ (API key) เก็บไว้ ใช้ในขั้นถัดไป ราคาและแผนฟรีดูที่เว็บของผู้ทำ

    วิธีขอคีย์อยู่ใน README ของผู้ทำด้านล่าง

  3. กดปุ่มนี้เพื่อเปิด VS Code

    เปิดใน VS Code

    VS Code จะถามยืนยันการติดตั้ง ให้กด Install

  4. ใส่คีย์ในช่องที่ว่างไว้

    ในค่าตั้งของ MCP Neo4j Memory ช่อง NEO4J_URI, NEO4J_USERNAME, NEO4J_PASSWORD, NEO4J_DATABASE, NEO4J_NAMESPACE ยังว่าง ใส่คีย์ของคุณแล้วบันทึก

    วางคีย์ในช่องของแอปเท่านั้น อย่าวางในแชตหรือส่งให้ใคร

  5. เปิดแชตของ AI ใน VS Code โหมด Agent

  6. ลองเลย

    ใช้ MCP Neo4j Memory บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง

    ✓ ถ้า VS Code บอกว่ากำลังใช้ MCP Neo4j Memory หรือมีชื่อเครื่องมือของ MCP Neo4j Memory ขึ้นในคำตอบ แปลว่าต่อสำเร็จ

ชื่อเมนูตรวจกับหน้าช่วยเหลือของ VS Code เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป

โปรแกรมอื่นที่ใช้ MCP ได้ เช่น Windsurf, Zed หรือ Gemini CLI มีวิธีเพิ่มต่างกัน ดูวิธีของแต่ละตัวในหน้ารวมโปรแกรม

ดูโปรแกรมที่ใช้ MCP ทั้งหมด →

ค่าตั้งแบบไฟล์ JSON อยู่ในหัวข้อ “สำหรับคนเขียนโค้ด” ด้านล่าง

ติดตรงไหน? ถามคนที่ใช้ MCP Neo4j Memory อยู่💬 พูดคุย →
สำหรับคนเขียนโค้ด: คำสั่ง Terminal และค่าตั้ง JSON

ติดตั้งในเครื่อง

Claude Code

claude mcp add --scope user neo4j-memory --env NEO4J_URI='ใส่ค่าของคุณ' --env NEO4J_USERNAME='ใส่ค่าของคุณ' --env NEO4J_PASSWORD='ใส่ค่าของคุณ' --env NEO4J_DATABASE='ใส่ค่าของคุณ' --env NEO4J_NAMESPACE='ใส่ค่าของคุณ' -- uvx mcp-neo4j-memory

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "neo4j-memory": {
      "command": "uvx",
      "args": [
        "mcp-neo4j-memory"
      ],
      "env": {
        "NEO4J_URI": "ใส่ค่าของคุณ",
        "NEO4J_USERNAME": "ใส่ค่าของคุณ",
        "NEO4J_PASSWORD": "ใส่ค่าของคุณ",
        "NEO4J_DATABASE": "ใส่ค่าของคุณ",
        "NEO4J_NAMESPACE": "ใส่ค่าของคุณ"
      }
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "neo4j-memory": {
      "command": "uvx",
      "args": [
        "mcp-neo4j-memory"
      ],
      "env": {
        "NEO4J_URI": "ใส่ค่าของคุณ",
        "NEO4J_USERNAME": "ใส่ค่าของคุณ",
        "NEO4J_PASSWORD": "ใส่ค่าของคุณ",
        "NEO4J_DATABASE": "ใส่ค่าของคุณ",
        "NEO4J_NAMESPACE": "ใส่ค่าของคุณ"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "neo4j-memory": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-neo4j-memory"
      ],
      "env": {
        "NEO4J_URI": "ใส่ค่าของคุณ",
        "NEO4J_USERNAME": "ใส่ค่าของคุณ",
        "NEO4J_PASSWORD": "ใส่ค่าของคุณ",
        "NEO4J_DATABASE": "ใส่ค่าของคุณ",
        "NEO4J_NAMESPACE": "ใส่ค่าของคุณ"
      }
    }
  }
}

ค่าที่ต้องใส่เอง

  • NEO4J_URI จำเป็น env
    Neo4j connection URI
  • NEO4J_USERNAME จำเป็น env
    Neo4j username
  • NEO4J_PASSWORD ความลับ จำเป็น env
    Neo4j password
  • NEO4J_DATABASE env
    Neo4j database name
  • NEO4J_NAMESPACE env
    Tool namespace prefix

ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README

สรุป

ดาว GitHubi
989 (ดาวรวมทั้งรีโป)
รีโปนี้มี MCP หลายรายการ ดาวนับในอันดับแค่รายการเดียว
ดาวน์โหลดต่อสัปดาห์i
6,509/สัปดาห์
การเชื่อมต่อ
รันบนเครื่อง
รุ่นล่าสุดi
1.0.0
ส่งเข้า registryi
8 พ.ย. 2568
แก้โค้ดล่าสุดi
9 ก.ย. 2569
ผู้ทำ
neo4j-contrib
แพ็กเกจ
pypi: mcp-neo4j-memory
สถานะใน registry
ใช้งานอยู่

ใช้กับโปรแกรมไหนได้

ดูจากแบบการต่อของ server ตัวนี้ และเอกสารของผู้ทำโปรแกรมแต่ละตัว ตรวจเมื่อ 10 พ.ย. 2569

ติดตั้งบนเครื่องได้ใน

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

ดูโปรแกรมทั้งหมดพร้อมข้อดีข้อเสีย →

คู่มือที่เกี่ยวข้อง

ทำอะไรได้บ้าง

รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง

ผลตรวจเบื้องต้นi

เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 14 พ.ย. 2569

  • ✓ ผ่าน

    ตัวตนผู้ทำตรงกับ repo

    ชื่อใน registry ยืนยันด้วยบัญชี GitHub neo4j-contrib ซึ่งเป็นเจ้าของ repo

  • ✓ ผ่าน

    ยังมีคนดูแล

    มีการแก้โค้ดล่าสุด 2 เดือนที่ผ่านมา

  • ✓ ผ่าน

    มีสัญญาอนุญาต (license)

    ใช้ MIT

  • – ไม่เกี่ยว

    endpoint ตอบ

    ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต

  • – ไม่เกี่ยว

    ล็อกอินแบบ OAuth

    ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน

  • … ยังไม่ตรวจ

    คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง

    รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต

พูดคุย

ถาม แชร์เคล็ดลับ หรือแจ้งว่าใช้ไม่ได้ เรียงตามที่คนกดว่ามีประโยชน์

ยังไม่มีใครโพสต์ ถามหรือแชร์เป็นคนแรกได้เลย

ข้อความในส่วนนี้เขียนโดยผู้ใช้ ไม่ใช่ทีม PopNx

เข้าสู่ระบบด้วย Google เพื่อโพสต์

รีวิวจากผู้ใช้

ยังไม่มีรีวิว

เข้าสู่ระบบด้วย Google เพื่อเขียนรีวิว

เทียบกับตัวอื่นในหมวด ค้นข้อมูลและความจำของ AIi

  • ดาวมากกว่า 0% ของอีก 6075 ตัวในหมวดนี้
  • ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 0% ของอีก 6075 ตัวในหมวดนี้
  • ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 100% ของอีก 6075 ตัวในหมวดนี้

เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo

คำถามที่พบบ่อย

MCP Neo4j Memory ปลอดภัยไหม?

จากการตรวจเบื้องต้นของเรา ผ่าน 3 จาก 3 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น

ต้องใช้กุญแจหรือรหัสอะไรบ้าง?

ต้องใส่ค่าเหล่านี้: NEO4J_URI, NEO4J_USERNAME, NEO4J_PASSWORD

ตัวนี้รันบนเครื่องหรือบนคลาวด์?

รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)

ยังมีคนดูแลอยู่ไหม?

repo บน GitHub มีการแก้โค้ดล่าสุด 2 เดือนที่ผ่านมา และส่งรุ่นล่าสุด (1.0.0) เข้า registry 12 เดือนที่ผ่านมา

ใช้กับโปรแกรมไหนได้บ้าง?

โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย

มีตัวไหนใช้แทนได้บ้าง?

ในหมวดเดียวกันมี Context7, Codebase Memory, OpenSEO

ตัวอื่นในหมวดเดียวกัน

server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว

อ่านการ์ด:↓ ดาวน์โหลดต่อสัปดาห์i★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi

Context7

ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว

โดย upstashใช้กันมาก↓ 1.2M/สัปดาห์★ 64.8Kอัปเดต เมื่อวานซืน

บนเครื่องหรือคลาวด์

Codebase Memory

Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.

โดย DeusDataใช้กันมาก↓ 16.8K/สัปดาห์★ 48.6Kอัปเดต 28 วันที่ผ่านมา

รันบนเครื่อง

OpenSEO

Keyword research, site audits, rank tracking and AI visibility for your AI agent.

โดย every-appใช้กันมาก★ 27.6Kอัปเดต วันนี้

รันบนคลาวด์✓ everyapp.com

README จากผู้ทำ

เปิดอ่าน README

ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ

🧠🕸️ 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
Let's add some memories 

I, Michael, living in Dresden, Germany work at Neo4j which is headquartered in Sweden with my colleagues Andreas (Cambridge, UK) and Oskar (Gothenburg, Sweden) I work in Product Management, Oskar in Engineering and Andreas in Developer Relations.

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 entity
  • type (string): Type of the entity
  • observations (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 entity
  • target (string): Name of target entity
  • relationType (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 to
  • contents (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 from
  • observations (array of strings): Observations to remove
  • Returns: Success confirmation

🔧 Usage with Claude Desktop

💾 Installation
pip install mcp-neo4j-memory
⚙️ Configuration

Add the server to your claude_desktop_config.json with configuration of:

"mcpServers": {

"neo4j": { "command": "uvx", "args": [ "mcp-neo4j-memory@0.4.5", "--db-url", "neo4j+s://xxxx.databases.neo4j.io", "--username", " ", "--password", " " ] } }

Alternatively, you can set environment variables:

"mcpServers": {

"neo4j": { "command": "uvx", "args": [ "mcp-neo4j-memory@0.4.5" ], "env": { "NEO4J_URL": "neo4j+s://xxxx.databases.neo4j.io", "NEO4J_USERNAME": " ", "NEO4J_PASSWORD": " " } } }

Namespacing

For multi-tenant deployments, add --namespace to prefix tool names:

"args": [ "mcp-neo4j-memory@0.4.5", "--namespace", "myapp", "--db-url", "..." ]

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:

# Basic HTTP mode (defaults: host=127.0.0.1, port=8000, path=/mcp/)

mcp-neo4j-memory --transport http

Custom HTTP configuration

mcp-neo4j-memory --transport http --host 127.0.0.1 --port 8080 --path /mcp/

Environment variables for HTTP configuration:

export NEO4J_TRANSPORT=http

export NEO4J_MCP_SERVER_HOST=127.0.0.1 export NEO4J_MCP_SERVER_PORT=8080 export NEO4J_MCP_SERVER_PATH=/mcp/ export NEO4J_NAMESPACE=myapp mcp-neo4j-memory

🔄 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
"mcpServers": {

"neo4j": { "command": "docker", "args": [ "run", "--rm", "-e", "NEO4J_URL=neo4j+s://xxxx.databases.neo4j.io", "-e", "NEO4J_USERNAME= ", "-e", "NEO4J_PASSWORD= ", "mcp/neo4j-memory:0.4.5" ] } }

🔒 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 localhost and 127.0.0.1 hosts are allowed by default

Environment Variable:

export NEO4J_MCP_SERVER_ALLOWED_HOSTS="example.com,www.example.com"
🌐 CORS Protection

Cross-Origin Resource Sharing (CORS) protection blocks browser-based requests by default:

Environment Variable:

export NEO4J_MCP_SERVER_ALLOW_ORIGINS="https://example.com,https://app.example.com"
🔧 Complete Security Configuration

Development Setup:

mcp-neo4j-memory --transport http \

--allowed-hosts "localhost,127.0.0.1" \ --allow-origins "http://localhost:3000"

Production Setup:

mcp-neo4j-memory --transport http \

--allowed-hosts "example.com,www.example.com" \ --allow-origins "https://example.com,https://app.example.com"

🚨 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 .:

# Run with http transport (default for Docker)

docker run --rm -p 8000:8000 \ -e NEO4J_URI="bolt://host.docker.internal:7687" \ -e NEO4J_USERNAME="neo4j" \ -e NEO4J_PASSWORD="password" \ -e NEO4J_DATABASE="neo4j" \ -e NEO4J_TRANSPORT="http" \ -e NEO4J_MCP_SERVER_HOST="0.0.0.0" \ -e NEO4J_MCP_SERVER_PORT="8000" \ -e NEO4J_MCP_SERVER_PATH="/mcp/" \ mcp/neo4j-memory:latest

Run with security middleware for production

docker run --rm -p 8000:8000 \ -e NEO4J_URI="bolt://host.docker.internal:7687" \ -e NEO4J_USERNAME="neo4j" \ -e NEO4J_PASSWORD="password" \ -e NEO4J_DATABASE="neo4j" \ -e NEO4J_TRANSPORT="http" \ -e NEO4J_MCP_SERVER_HOST="0.0.0.0" \ -e NEO4J_MCP_SERVER_PORT="8000" \ -e NEO4J_MCP_SERVER_PATH="/mcp/" \ -e NEO4J_MCP_SERVER_ALLOWED_HOSTS="example.com,www.example.com" \ -e NEO4J_MCP_SERVER_ALLOW_ORIGINS="https://example.com" \ mcp/neo4j-memory:latest

🔧 Environment Variables
VariableDefaultDescription
NEO4J_URIbolt://localhost:7687Neo4j connection URI
NEO4J_USERNAMEneo4jNeo4j username
NEO4J_PASSWORDpasswordNeo4j password
NEO4J_DATABASEneo4jNeo4j database name
NEO4J_TRANSPORTstdio (local), http (remote)Transport protocol (stdio, http, or sse)
NEO4J_MCP_SERVER_HOST127.0.0.1 (local)Host to bind to
NEO4J_MCP_SERVER_PORT8000Port for HTTP/SSE transport
NEO4J_MCP_SERVER_PATH/mcp/Path for accessing MCP server
NEO4J_MCP_SERVER_ALLOW_ORIGINS_(empty - secure by default)_Comma-separated list of allowed CORS origins
NEO4J_MCP_SERVER_ALLOWED_HOSTSlocalhost,127.0.0.1Comma-separated list of allowed hosts (DNS rebinding protection)
NEO4J_NAMESPACE_(empty - no prefix)_Namespace prefix for tool names (e.g., myapp-read_graph)
🌐 SSE Transport for Legacy Web Access

When using SSE transport (for legacy web clients), the server exposes an HTTP endpoint:

# Start the server with SSE transport

docker run -d -p 8000:8000 \ -e NEO4J_URI="neo4j+s://demo.neo4jlabs.com" \ -e NEO4J_USERNAME="recommendations" \ -e NEO4J_PASSWORD="recommendations" \ -e NEO4J_DATABASE="neo4j" \ -e NEO4J_TRANSPORT="sse" \ -e NEO4J_MCP_SERVER_HOST="0.0.0.0" \ -e NEO4J_MCP_SERVER_PORT="8000" \ --name neo4j-memory-mcp-server \ mcp-neo4j-memory:latest

Test the SSE endpoint

curl http://localhost:8000/sse

Use with MCP Inspector

npx @modelcontextprotocol/inspector http://localhost:8000/sse

🚀 Development

📦 Prerequisites
  1. Install uv (Universal Virtualenv):
# Using pip

pip install uv

Using Homebrew on macOS

brew install uv

Using cargo (Rust package manager)

cargo install uv

  1. Clone the repository and set up development environment:
# Clone the repository

git clone https://github.com/yourusername/mc

ตัดมาแค่ช่วงต้น อ่านต่อใน repo