Skip to content
This page was generated and translated with the assistance of AI. If you spot any inaccuracies, feel free to help improve it. Edit on GitHub

MCP Integration ​

PRX-Memory is built as a native MCP (Model Context Protocol) server. It exposes memory operations as MCP tools, governance skills as MCP resources, and payload templates for standardized memory interactions.

Transport Modes ​

stdio ​

The stdio transport communicates over standard input/output, making it ideal for direct integration with MCP clients like Claude Code, Codex, and OpenClaw.

bash
PRX_MEMORYD_TRANSPORT=stdio \
PRX_MEMORY_DB=./data/memory-db.json \
prx-memoryd

HTTP ​

The HTTP transport provides a network-accessible server with additional operational endpoints.

bash
PRX_MEMORYD_TRANSPORT=http \
PRX_MEMORY_HTTP_ADDR=127.0.0.1:8787 \
PRX_MEMORY_DB=./data/memory-db.json \
prx-memoryd

HTTP-only endpoints:

EndpointDescription
GET /healthHealth check
GET /metricsPrometheus metrics
GET /metrics/summaryJSON metrics summary
POST /mcp/session/renewRenew streaming session

MCP Client Configuration ​

Add PRX-Memory to your MCP client's configuration file:

json
{
  "mcpServers": {
    "prx_memory": {
      "command": "/path/to/prx-memoryd",
      "env": {
        "PRX_MEMORYD_TRANSPORT": "stdio",
        "PRX_MEMORY_BACKEND": "json",
        "PRX_MEMORY_DB": "/path/to/data/memory-db.json"
      }
    }
  }
}

TIP

Use absolute paths for both command and PRX_MEMORY_DB to avoid path resolution issues.

MCP Tools ​

PRX-Memory exposes the following tools through the MCP tools/call interface:

Core Memory Operations ​

ToolDescription
memory_storeStore a new memory entry with text, scope, tags, and metadata
memory_recallRecall memories matching a query using lexical, vector, and reranked search
memory_updateUpdate an existing memory entry
memory_forgetDelete a memory entry by ID

Bulk Operations ​

ToolDescription
memory_exportExport all memories to a portable JSON format
memory_importImport memories from an export
memory_migrateMigrate between storage backends
memory_reembedRe-embed all memories with the current embedding model
memory_compactCompact and optimize storage

Evolution ​

ToolDescription
memory_evolveEvolve memory using train/holdout acceptance with constraint gating

Skill Discovery ​

ToolDescription
memory_skill_manifestReturn the skill manifest for governance skills

MCP Resources ​

PRX-Memory exposes governance skill packages as MCP resources:

json
{"jsonrpc": "2.0", "id": 1, "method": "resources/list", "params": {}}

Read a specific resource:

json
{"jsonrpc": "2.0", "id": 2, "method": "resources/read", "params": {"uri": "prx://skills/governance"}}

Resource Templates ​

Payload templates help clients construct standardized memory operations:

json
{"jsonrpc": "2.0", "id": 1, "method": "resources/templates/list", "params": {}}

Use a template to generate a store payload:

json
{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "resources/read",
  "params": {
    "uri": "prx://templates/memory-store?text=Pitfall:+always+handle+errors&scope=global"
  }
}

Streaming Sessions ​

The HTTP transport supports Server-Sent Events (SSE) for streaming responses. Sessions have a configurable TTL:

bash
PRX_MEMORY_STREAM_SESSION_TTL_MS=300000  # 5 minutes

Renew a session before it expires:

bash
curl -X POST "http://127.0.0.1:8787/mcp/session/renew?session=SESSION_ID"

Standardization Profiles ​

PRX-Memory supports two standardization profiles that control how memory entries are tagged and validated:

ProfileDescription
zero-configMinimal constraints, accepts any tags and scopes (default)
governedStrict tag normalization, ratio bounds, and quality constraints
bash
PRX_MEMORY_STANDARD_PROFILE=governed
PRX_MEMORY_DEFAULT_PROJECT_TAG=my-project
PRX_MEMORY_DEFAULT_TOOL_TAG=mcp
PRX_MEMORY_DEFAULT_DOMAIN_TAG=backend

Next Steps ​

Released under the Apache-2.0 License.