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
remember and query, and the three tools of the research agents. 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.
Research agents
Three tools run the handlers of the research agent endpoints:research_start is POST /v1/gb/research, research_list is GET /v1/gb/research and research_get is GET /v1/gb/research/{id}. A research runs in the background and costs money (model calls and web searches): start it, then read it with research_get until its status is completed (the report is in it, with every state the agent went through) or failed.
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.