MCP server: setup, scope, and tools
Connect compatible MCP clients to MeMorae tools. MCP exposes callable tools; it does not automatically capture every conversation.
#What MCP does
The MeMorae MCP server exposes memory operations to a compatible agent client. The client can search, store, inspect, correct, or delete scoped memory by calling tools. A registered server does not itself observe every prompt, invoke tools automatically, or replace the application’s chat history. Use a separate supported hook when automatic handling of a client event is needed.
#What you need before connecting
Create or select a project, set up its personal connection in Projects → Connection details, and create a project API key. Hosted MCP tools derive the project, Subject ID, and existing namespace from that key and saved connection. Keep the key private. REST and LangChain calls still pass a stable Subject ID explicitly.
#Choose a transport
The deployed MeMorae MCP server uses Streamable HTTP at https://memora-singapore.onrender.com/mcp/. Configure your client to send Authorization: Bearer YOUR_PROJECT_API_KEY. No local Docker service is needed to use the hosted endpoint. Self-hosted installations may instead run stdio or deploy their own HTTP endpoint.
Hosted MCP URL: https://memora-singapore.onrender.com/mcp/
Authorization: Bearer YOUR_PROJECT_API_KEY#Configure your MCP client
In your client's MCP settings, register the hosted Streamable HTTP endpoint and Authorization header shown above. Follow that client's documented configuration format and secret-storage mechanism. Replace the credential placeholder, preserve unrelated settings, save, and reload if required. Configuration formats and file locations vary; do not paste one client's settings into another client. Confirm the server connection before testing memory tools.
#Hosted MCP scope
Hosted memory_store, memory_search, memory_stats, and memory_graph use the key-bound project’s saved personal Subject ID and namespace automatically. Do not pass Project ID or Subject ID as tool arguments. If the project has no personal connection, set it up or select an existing scope in Projects → Connection details. REST and LangChain adapters require the same Subject ID explicitly for save and search.
memory_stats()
memory_search(query="What preference did I share?")#Available memory tools
The server registers ten tools: memory_store submits a source message; memory_search returns relevant active memories with evidence; memory_context returns compact cited context; memory_get reads one scoped memory; memory_update records a correction and version; memory_delete soft-deletes a memory; memory_timeline returns version history and sources; memory_explain describes evidence and lifecycle; memory_stats counts memory state by type; memory_graph explores bounded, source-linked graph data. Use only the tools needed for the current task, and preserve citations when relying on returned facts.
#Production security and operations
Keep the API key in a managed secret store and rotate or revoke it when access changes. For Streamable HTTP, use HTTPS, restrict network access where possible, configure allowed host and origin values for the actual deployment, and monitor authentication failures without logging keys or prompts. Limit tool access to trusted clients. The service validates project ownership and the requested scope; never accept arbitrary scope values from an untrusted user without your application’s authorization checks. Treat tool output as untrusted data and apply your agent’s normal prompt-injection defenses.
#Verify the connection
Call memory_stats with no arguments, then memory_search for a known fact. A memory_store response is asynchronous: wait for extraction and indexing before searching. For automatic capture, configure and authorize a supported client lifecycle handler using the Hooks guide. If search is empty, check the project key, saved personal scope, source status, and index health. A 401 indicates an invalid key; a 503 indicates an unavailable retrieval dependency.