MCP Directory

llm-router vs Memory (Knowledge Graph)

A side-by-side comparison of two AI, Data & Knowledge servers — tools, transport, auth, maintenance, and copy-paste config for each.

 llm-router

Local-first LLM router for AI coding tools — routes prompts to the cheapest capable model with automatic provider fallback.

Unverified
stdio (local)
No auth
Python
Memory (Knowledge Graph)

Official MCP server providing persistent, file-backed knowledge-graph memory across sessions.

Verified
stdio (local)
No auth
TypeScript
CategoryAI, Data & KnowledgeAI, Data & Knowledge
LanguagePythonTypeScript
Transportstdio (local)stdio (local)
AuthNoneNone
GitHub stars3374k
Last commit5 days ago5 months ago
Verified
Actively maintained
Installpip install llm-routing && llm-router installnpx -y @modelcontextprotocol/server-memory
RepoOpen Open

Verdict

Pick llm-router if you need the broadest set of tools.

Pick Memory (Knowledge Graph) if you want the official, vendor-maintained server, and you prefer the more popular, battle-tested option.

Add llm-router

Install / run
pip install llm-routing && llm-router install

Paste into ~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "llm-router": {
      "command": "llm-router",
      "args": [
        "install"
      ]
    }
  }
}

Add Memory (Knowledge Graph)

Install / run
npx -y @modelcontextprotocol/server-memory

Paste into ~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "memory-knowledge-graph": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-memory"
      ],
      "env": {
        "MEMORY_FILE_PATH": "/absolute/path/to/memory.jsonl"
      }
    }
  }
}

FAQ

llm-router or Memory (Knowledge Graph) — which is better?

Pick llm-router if you need the broadest set of tools. Pick Memory (Knowledge Graph) if you want the official, vendor-maintained server, and you prefer the more popular, battle-tested option.

Can I use both llm-router and Memory (Knowledge Graph)?

Yes — MCP clients let you enable multiple servers at once. Add both configs to your client's mcpServers and use whichever tool fits the task.

Do llm-router and Memory (Knowledge Graph) work with Claude, Cursor and Windsurf?

Both do. Copy the per-client config below into Claude Desktop, Cursor, or Windsurf.