Skip to main content

MCP Integration

Remem ships an MCP server package (remem-mcp) that proxies MCP tool calls to your Remem API.

Available tools

Required environment variables

Claude configuration

Codex MCP configuration

Add this block in ~/.codex/config.toml:

Namespace-aware tool arguments

Read tools accept namespaces:
Write tools accept namespace:
If a write tool omits namespace, the packaged MCP server falls back to REMEM_DEFAULT_NAMESPACE. If that env var is also unset, the Remem API falls back to the API key’s default namespace.

Query filters for session recall

remem_query forwards filters exactly as API payload. Example:

Memory Layer tools

The MCP server exposes dedicated tools for the Memory Layer knowledge graph.

remem_memory_query

Query for facts relevant to a topic or entity:
Returns formatted fact lines with type, confidence, and entity associations.

remem_list_entities

Browse entities in the knowledge base:
Returns a formatted list of entities with their fact counts and mention counts.

remem_get_entity_facts

Get all facts for a specific entity:

remem_extract_facts

Manually trigger fact extraction for a document that has already been ingested:

Security notes

  • MCP runs locally and uses your API key to call Remem.
  • Use lower-scope keys where appropriate (for example internal instead of personal).
  • Never commit REMEM_API_KEY values to source control.