Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| NODE_ENV | No | Runtime environment (development/production) | |
| BRAIN_MCP_STORAGE_PATH | No | The storage path for memory data | ./memory_data |
| BRAIN_MCP_AUTO_SAVE_INTERVAL | No | Auto-save interval in milliseconds (default is 5 minutes) | 300000 |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| addShortTermMemory | Add a temporary memory to the short-term cache (FIFO, limited capacity) |
| getShortTermMemory | Retrieve all short-term memories (newest first) |
| clearShortTermMemory | Clear all short-term memories |
| addLongTermMemory | Create a new persistent memory node with optional associations to other nodes |
| getLongTermMemory | Retrieve a memory node by ID with its associations up to specified depth |
| searchLongTermMemory | Search memory nodes by keyword (text matching) |
| updateLongTermMemory | Update a memory node's text and/or associations |
| deleteLongTermMemory | Delete a memory node and remove it from all associations |
| getAssociations | Get all direct association IDs of a memory node |
| saveMemory | Manually trigger saving all long-term memories to disk |
| getMemoryStats | Get statistics about the memory system |
| startThoughtProcess | Start a new thought process chain with a goal |
| addThought | Add a thought to an existing thought chain |
| branchThought | Create a branch from an existing thought to explore alternative paths |
| evaluateThought | Evaluate and update the confidence level of a thought |
| completeThoughtProcess | Mark a thought process as complete and store the conclusion |
| getCurrentThoughtChain | Retrieve the current state of a thought chain with all thoughts |
| pauseThinking | Pause an active thought process |
| resumeThinking | Resume a paused thought process |
| switchCognitiveMode | Switch the cognitive mode for thinking processes |
| getOptimalModeForTask | Get the recommended cognitive mode for a specific task type |
| getThinkingProgress | Get progress statistics for a thought chain |
| getActiveChains | Get all currently active thought chains |
| getThinkingStats | Get overall thinking process statistics |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |