remember and query as tools of an MCP (Model Context Protocol) server, so that MCP clients (Claude Desktop, Claude Code, IDE agents, …) can use it as their memory. It is built on the official Go SDK, modelcontextprotocol/go-sdk.
Endpoint
/v1/gb/mcp, the MCP streamable HTTP transport (POST; GET and DELETE are answered too, as the transport requires). The server is stateless: no session is kept between calls, and answers are plain JSON (no event stream).
Tools
Only these two tools are exposed for now. Each runs the handler of the matching REST endpoint in process, so validation, limits, errors, monitoring events (remember.completed, query.completed, …) and results are those of the endpoint; see its page for the details of every field.
remember
Stores a text in memory, like POST /v1/gb/remember with a text.
The other options of the endpoint (
image, models, reasoning, web_search, timeseries) are not available through MCP yet.
query
Answers a question from the graph, like POST /v1/gb/query.
Results
On success the result is the JSON response of the endpoint, both as the tool’s structured content and as text. If the endpoint answers with an error status (invalid argument400, dataset not found 404, no LLM key 503, failed LLM call 502, …) the result is a tool error (isError: true) whose text is the endpoint’s message and status, so that the model can see what went wrong and correct the call. Arguments that do not match the tool’s input schema (a missing user_id or text) are rejected by the MCP layer before the handler runs.