# MCP ナレッジ グラフ メモリ サーバー — 永続的なエンティティおよび関係ストア (`mcp-knowledge-graph-memory`)

> ローカル JSONL ベースのエンティティ関係観察グラフにより、コーディング エージェントにセッション間で永続的なプロジェクト メモリを提供します。

- **Canonical URL:** https://syndipath.com/ja/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) で検証されました。ワークスペーススコープの STDIO セッション内で npx 経由で実行します。

## 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.
