MCP integration

One memory store. Every MCP client.

Remnic speaks MCP natively over both stdio and HTTP. Any client that supports the protocol (Cursor, Cline, Windsurf, Amp, Replit, or your own custom agent) can recall, store, and search memories through the same set of tools.

Cursor

Start the Remnic server and point Cursor's MCP config at the HTTP endpoint.

export REMNIC_AUTH_TOKEN="$(openssl rand -base64 32)"
npx remnic-server --host 127.0.0.1 --port 4318 \
  --auth-token "$REMNIC_AUTH_TOKEN"

Add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "remnic": {
      "url": "http://localhost:4318/mcp",
      "headers": {
        "Authorization": "Bearer ${REMNIC_AUTH_TOKEN}"
      }
    }
  }
}

Restart Cursor. Over 100 Remnic MCP tools become available, including remnic.recall, remnic.memory_store, remnic.entity_get, and the LCM tools.

Replit

Replit only supports MCP (no hooks), so recall is on-demand rather than automatic.

remnic connectors install replit

The connector generates a token and shows the exact config block to paste into Replit's Integrations pane.

Cline, Windsurf, Amp, and generic MCP clients

Any MCP-compatible client takes the same HTTP config as Cursor: point it at http://localhost:4318/mcp with the bearer token. For stdio-based clients, use:

npx remnic-server --stdio --auth-token "$REMNIC_AUTH_TOKEN"

Full per-client setup snippets live in the Connector Setup Guide.

HTTP REST for custom agents

If you're building a custom agent framework, skip MCP and hit the REST API directly.

curl -X POST http://localhost:4318/engram/v1/recall \
  -H "Authorization: Bearer $REMNIC_AUTH_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"query":"authentication patterns","topK":8,"mode":"minimal"}'

Full API reference: docs/api.md. REST routes and the legacy engram.* MCP tool aliases still carry the engram name from before the rename; see the rename note.

Multi-tenant deployments

Run Remnic as a standalone server that multiple agents and users share. Isolate tenants with namespace policies, multi-token auth, and per-namespace principals. Ideal for teams and multi-machine setups.

See the Standalone Server Guide and Deployment Topologies doc for localhost, LAN, remote, containerized, and stand-alone setups.

MCP tools reference

ToolPurpose
remnic.recallRetrieve relevant memories for a query.
remnic.recall_explainDebug the last recall: per-tier breakdown.
remnic.memory_getFetch a specific memory by ID.
remnic.memory_storeStore a new memory.
remnic.memory_timelineView a memory's lifecycle history.
remnic.entity_getLook up a known entity.
remnic.day_summaryGenerate structured end-of-day summary.
remnic.observeFeed conversation messages into the pipeline.
remnic.lcm_searchFull-text search across archived conversation history.
remnic_context_expandRetrieve raw lossless messages for a turn range.
remnic.review_queue_listView the governance review queue.
remnic.suggestion_submitQueue a memory for review.

Over 100 Remnic MCP tools total, each shipping an output schema. See docs/api.md for the full list.