Configure MemoryGraph with VS Code and GitHub Copilot.

Prerequisites

  • VS Code with GitHub Copilot extension
  • Copilot Chat extension (for MCP support)
  • Python 3.10 or higher
  • MemoryGraph installed

Setup Steps

Step 1: Install MemoryGraph

pipx install memorygraphMCP

Step 2: Find memorygraph Path

which memorygraph
# Example: /Users/yourname/.local/bin/memorygraph

Step 3: Configure VS Code

Open VS Code Settings (JSON) and add MCP configuration:

{
  "github.copilot.chat.mcpServers": {
    "memorygraph": {
      "command": "/Users/yourname/.local/bin/memorygraph",
      "args": []
    }
  }
}

Step 4: Reload VS Code

Reload the VS Code window (Cmd/Ctrl+Shift+P β†’ "Reload Window").

Verify Setup

Open Copilot Chat and ask it to use memorygraph tools:

"@workspace Store a memory about setting up MemoryGraph"

Notes

MCP support in VS Code Copilot may require a recent version of the Copilot Chat extension. Check for updates if MCP features aren't available.

Troubleshooting

  • Ensure Copilot Chat extension is updated
  • Check VS Code Output panel for MCP errors
  • Verify memorygraph path is correct and absolute

See the Troubleshooting Guide for more help.