Cursor MCP connector for XMem persistent memory and code context.
This package connects Cursor to XMem through the XMem MCP server. It writes local connector configuration and agent-facing memory instructions, while keeping XMem credentials in environment variables.
npx xmem-cursor@latest installFor local development:
node src/cli.js install --config-root ./tmp/cursorSet credentials in your shell, OS secret store, or the client environment before launching Cursor:
export XMEM_API_URL="https://api.xmem.in"
export XMEM_API_KEY="xmem_..."
export XMEM_USERNAME="your-xmem-username"The installer intentionally writes ${XMEM_API_KEY} as a placeholder instead of copying secret values into config files.
| Command | Description |
|---|---|
install |
Write .cursor/mcp.json and Cursor rule. |
doctor |
Check whether generated connector files exist. |
smoke-test |
Verify XMem API access via environment variables without printing secrets. |
XMEM_API_KEY="xmem_..." XMEM_USERNAME="connector-test" npm run smokeThe smoke test calls XMem search with a low-risk read query. It never logs the API key.
- Requires the XMem MCP server to be available as
uvx xmem-mcp. - Uses stdio transport by default for local agent clients.
- You can override the API URL with
--api-urlduring install.
Apache-2.0