SDKs

SDKs

Official MemHQ client libraries for Python, TypeScript, and the Model Context Protocol.

SDKs

First-party clients cover the surfaces most developers use.

  • Python — pip install memhq. Type-hinted, sync and async clients, batteries included for chatbots, agent loops, and RAG pipelines.
  • TypeScript — npm install @memhq/sdk. Pure-TypeScript types generated from the OpenAPI spec, works in Node and edge runtimes.
  • MCP server — hosted at https://memhq.ai/mcp. Drop MemHQ into Claude Code, Claude Desktop, Cursor, or any MCP-compatible client to give the agent persistent memory it calls on purpose.
  • Claude Code plugin — always-on memory for Claude Code. Injects relevant context at every prompt and captures significant work automatically, without the agent having to reach for a tool.
  • Framework adapters — drop-in memory for LangChain, LlamaIndex, and the Vercel AI SDK, in both Python and TypeScript. Each implements that framework's own memory interface, so MemHQ becomes the persistence layer behind an abstraction you already use.

All of them sit on top of the same REST surface documented under Endpoints. If you need a language that isn't in this list, you can call the API directly — see the API Reference for request shapes.

On this page