Buildd Memory
MCP

MCP Tools

Reference for the Buildd Memory MCP tool actions

MCP Tools

The Memory MCP server exposes a single memory tool with six actions. The tool is designed for AI agents — it accepts an action and params object.

Setup

Add to your .mcp.json:

{
  "mcpServers": {
    "memory": {
      "command": "npx",
      "args": ["@buildd/memory"],
      "env": {
        "MEMORY_API_URL": "https://memory.buildd.dev",
        "MEMORY_API_KEY": "mem_your_key_here"
      }
    }
  }
}

Actions

context

Load all team memories formatted as markdown. Call this at the start of every session.

Params:

ParamTypeRequiredDescription
projectstringNoFilter memories by project

Example:

{ "action": "context", "params": { "project": "my-app" } }

Returns: Formatted markdown with all relevant memories, or "(No memories yet)".


Search memories with filters. Returns compact index results (no full content).

Params:

ParamTypeRequiredDescription
querystringNoText search query
typestringNoFilter by memory type
projectstringNoFilter by project
filesstringNoFilter by associated files
limitnumberNoMax results
offsetnumberNoPagination offset

Example:

{ "action": "search", "params": { "query": "database", "type": "gotcha" } }

Returns: List of matching memories with titles, types, and IDs. Use get to fetch full content.


save

Save a new memory.

Params:

ParamTypeRequiredDescription
typestringYesgotcha, architecture, pattern, decision, discovery, or summary
titlestringYesShort descriptive title
contentstringYesFull memory content
projectstringNoProject name
tagsstring[]NoCategorization tags
filesstring[]NoAssociated file paths
sourcestringNoOrigin identifier

Example:

{
  "action": "save",
  "params": {
    "type": "gotcha",
    "title": "Don't use db.transaction() with Neon HTTP",
    "content": "The neon-http driver doesn't support interactive transactions. Use atomic UPDATE...WHERE with .returning() instead.",
    "project": "buildd",
    "tags": ["database", "neon"]
  }
}

Returns: Confirmation with the saved memory's title and ID.


get

Fetch full content for a single memory.

Params:

ParamTypeRequiredDescription
idstringYesMemory ID

Example:

{ "action": "get", "params": { "id": "mem_abc123" } }

Returns: Full memory content including title, type, content, tags, files, and metadata.


update

Update an existing memory.

Params:

ParamTypeRequiredDescription
idstringYesMemory ID to update
titlestringNoNew title
contentstringNoNew content
projectstringNoNew project
tagsstring[]NoNew tags
filesstring[]NoNew files
sourcestringNoNew source

Example:

{
  "action": "update",
  "params": {
    "id": "mem_abc123",
    "content": "Updated content with more detail."
  }
}

Returns: Confirmation with the updated memory's title.


delete

Delete a memory.

Params:

ParamTypeRequiredDescription
idstringYesMemory ID to delete

Example:

{ "action": "delete", "params": { "id": "mem_abc123" } }

Returns: Confirmation of deletion.

On this page