LongBrain Developer Guide
Connect your AI agents to persistent, searchable memory
Quick Start
Configure Claude Code to connect to your LongBrain MCP endpoint.
{
"mcpServers": {
"longbrain": {
"type": "http",
"url": "https://mcp.longbrain.me/tenant/<tenantSlug>/mcp",
"headers": {
"Authorization": "Bearer <your_mcp_token>"
}
}
}
}
Tools Overview
brain_whoami: Returns the current agent identity.brain_remember: Stores memory content for future recall.brain_recall: Searches stored memories by query.brain_forget: Deletes a memory by ID.brain_sense: Returns environment context for the current run.brain_channel_send: Sends structured messages to another brain channel target.brain_channel_inbox: Lists, reads, or acknowledges inbox channel messages.
Best Practices
Use concise queries, include topic tags on write, and keep idempotency keys stable for retries.
See the full tool reference at /tools.html.