A

Agent Memory

by semurg.io · io.semurg/agent-memory

Enables AI agents to persistently store, recall, and share scoped knowledge through a self-hosted MCP server that combines a knowledge graph, vector storage, and graph RAG.

pypi Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-semurg-agent-memory": {
      "command": "uvx",
      "args": [
        "semurg"
      ],
      "env": {
        "SEMURG_URL": "http://127.0.0.1:4000",
        "SEMURG_API_TOKEN": "<YOUR_VALUE>",
        "SEMURG_SCOPE": "<VALUE>",
        "SEMURG_AUTH": "<VALUE>"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-semurg-agent-memory": {
      "command": "uvx",
      "args": [
        "semurg"
      ],
      "env": {
        "SEMURG_URL": "http://127.0.0.1:4000",
        "SEMURG_API_TOKEN": "<YOUR_VALUE>",
        "SEMURG_SCOPE": "<VALUE>",
        "SEMURG_AUTH": "<VALUE>"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-semurg-agent-memory": {
      "command": "uvx",
      "args": [
        "semurg"
      ],
      "env": {
        "SEMURG_URL": "http://127.0.0.1:4000",
        "SEMURG_API_TOKEN": "<YOUR_VALUE>",
        "SEMURG_SCOPE": "<VALUE>",
        "SEMURG_AUTH": "<VALUE>"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-semurg-agent-memory": {
      "command": "uvx",
      "args": [
        "semurg"
      ],
      "env": {
        "SEMURG_URL": "http://127.0.0.1:4000",
        "SEMURG_API_TOKEN": "<YOUR_VALUE>",
        "SEMURG_SCOPE": "<VALUE>",
        "SEMURG_AUTH": "<VALUE>"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-semurg-agent-memory": {
      "command": "uvx",
      "args": [
        "semurg"
      ],
      "env": {
        "SEMURG_URL": "http://127.0.0.1:4000",
        "SEMURG_API_TOKEN": "<YOUR_VALUE>",
        "SEMURG_SCOPE": "<VALUE>",
        "SEMURG_AUTH": "<VALUE>"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-semurg-agent-memory": {
      "command": "uvx",
      "args": [
        "semurg"
      ],
      "env": {
        "SEMURG_URL": "http://127.0.0.1:4000",
        "SEMURG_API_TOKEN": "<YOUR_VALUE>",
        "SEMURG_SCOPE": "<VALUE>",
        "SEMURG_AUTH": "<VALUE>"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
SEMURG_URL No Your Semurg node (http://127.0.0.1:4000 by default) Default: http://127.0.0.1:4000
SEMURG_API_TOKEN secret Yes The API token stored on your node. Used when connecting Claude Code or another MCP client: the header is sent as "Authorization: Bearer ${SEMURG_API_TOKEN}" to the node's streamable HTTP endpoint at /v1/mcp (a fresh node serves http://127.0.0.1:4000/v1/mcp; behind your own TLS proxy use its https address). Claude Code reads the token from this environment variable when it starts.
SEMURG_SCOPE No A default memory scope for this connection
SEMURG_AUTH No Alternative place for the token in the Claude Desktop configuration, where the mcp-remote bridge is launched with --header "Authorization:${SEMURG_AUTH}". Set it to the value "Bearer <token>" with your node's API token in place of <token>.

Similar servers