MCP Server

MCP Server Overview

Understanding HyperMemory as an MCP server

MCP Server Overview

HyperMemory exposes its memory capabilities through the Model Context Protocol (MCP) — an open standard for connecting AI agents to external tools.

What is MCP?

The Model Context Protocol is a standard interface for AI agents to interact with external services. Think of it like USB for AI: a universal connector that any compatible agent can plug into.

Key benefits:

  • No SDK required — Standard protocol, no library dependencies
  • Universal compatibility — Works with any MCP-compatible agent
  • Streaming support — Real-time responses via SSE
  • Structured tools — Well-defined inputs and outputs

HyperMemory as an MCP server

HyperMemory runs as a remote MCP server at api.hypermemory.io. Your agent connects over HTTP/SSE, authenticates with an API key, and gains access to memory tools.

┌─────────────────┐         ┌─────────────────┐         ┌─────────────────┐
│                 │  HTTP   │                 │  Query  │                 │
│   Your Agent    │ ◄─────► │   MCP Server    │ ◄─────► │   Hypergraph    │
│  (Claude, etc.) │  /SSE   │  hypermemory.io │         │    Database     │
│                 │         │                 │         │                 │
└─────────────────┘         └─────────────────┘         └─────────────────┘

Available memory tools

HyperMemory exposes 8 MCP tools for memory operations:

ToolDescriptionQuery Cost
memory_storeStore a new memory nodeFree
memory_recallQuery memories by natural language1 query
memory_find_relatedFind nodes related to a given node1 query
memory_get_relationshipsGet edges/hyperedges for a node1 query
memory_updateUpdate an existing nodeFree
memory_forgetDelete a nodeFree
memory_export_subgraphExport a portion of the graph1 query
memory_load_linkImport a subgraphFree

Write operations (store, update, forget, load_link) are free and don’t count against your query limit.

How tools appear to your agent

When your agent connects to HyperMemory, it discovers these tools automatically. Here’s what Claude sees:

{
  "tools": [
    {
      "name": "memory_store",
      "description": "Store a new memory in the knowledge graph",
      "inputSchema": {
        "type": "object",
        "properties": {
          "content": {
            "type": "string",
            "description": "The memory content to store"
          },
          "node_type": {
            "type": "string",
            "description": "Category of the memory"
          },
          "metadata": {
            "type": "object",
            "description": "Additional key-value data"
          }
        },
        "required": ["content"]
      }
    }
  ]
}

Your agent can then call these tools naturally:

User: "Remember that our Q3 priority is API performance"

Agent (thinking): I should store this as a memory
Agent (calls): memory_store(
  content="Q3 priority is API performance",
  node_type="decision"
)

Supported clients

HyperMemory works with any MCP-compatible client:

ClientStatusNotes
Claude Desktop✅ SupportedNative MCP support
OpenClaw✅ SupportedNative MCP support
CrewAI✅ SupportedVia MCP tools
OpenAI Agents✅ SupportedVia function calling adapter
Custom Python✅ SupportedUse MCP client library
Custom Node.js✅ SupportedUse MCP client library

Connection flow

  1. Configure — Add HyperMemory to your agent’s MCP server list
  2. Authenticate — Provide your API key in the Authorization header
  3. Discover — Your agent learns available tools via MCP handshake
  4. Use — Your agent calls memory tools as needed

Connect your agent

Step-by-step connection guide

Error handling

MCP tools return structured errors:

{
  "error": {
    "code": "INVALID_PARAMETER",
    "message": "node_id is required",
    "details": {
      "parameter": "node_id",
      "expected": "string"
    }
  }
}

Common error codes:

CodeDescription
INVALID_PARAMETERMissing or invalid parameter
NODE_NOT_FOUNDReferenced node doesn’t exist
UNAUTHORIZEDInvalid or missing API key
RATE_LIMITEDToo many requests
QUOTA_EXCEEDEDQuery limit reached

Next steps