# เซิร์ฟเวอร์หน่วยความจำกราฟความรู้ MCP — เอนทิตีและการจัดเก็บความสัมพันธ์แบบถาวร (`mcp-knowledge-graph-memory`)

> กราฟการสังเกตความสัมพันธ์เอนทิตี-ความสัมพันธ์-การสังเกตที่ได้รับการสนับสนุนจาก JSONL ในเครื่อง ทำให้เอเจนต์โค้ดมีหน่วยความจำโปรเจ็กต์ถาวรตลอดเซสชัน

- **Canonical URL:** https://syndipath.com/th/mcp/mcp-knowledge-graph-memory
- **Runtime:** `npm` | **Transport:** STDIO | **License:** MIT | **Package:** `@modelcontextprotocol/server-memory`
- **Upvotes:** 814 | **GitHub Stars:** 7620 | **Weekly Installs:** 72400
- **Security Note:** HTTP-200 ตรวจสอบแล้วบนรีจิสทรี NPM (@modelcontextprotocol/server-memory); ทำงานผ่าน npx ภายในเซสชัน STDIO ที่กำหนดขอบเขตพื้นที่ทำงาน

## Quick CLI Setup
```bash
# Run directly via Node npx
npx -y @modelcontextprotocol/server-memory

# Add to Claude Code CLI
claude mcp add mcp-knowledge-graph-memory -- npx -y @modelcontextprotocol/server-memory
```

## MCP Manifest (`mcp.json`)
```json
{
  "mcpServers": {
    "mcp-knowledge-graph-memory": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-memory"
      ]
    }
  }
}
```

## Exposed MCP Tools
- `mcp_knowledge_graph_memo_semantic_search(query: string, top_k?: number)`: Local JSONL-backed entity-relation-observation graph giving coding agents persistent project memory across sessions.
- `mcp_knowledge_graph_memo_upsert_context(content: string, metadata?: object)`: Indexes chunked technical context with deterministic metadata filters.
