Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
NODE_ENVNoRuntime environment (development/production)
BRAIN_MCP_STORAGE_PATHNoThe storage path for memory data./memory_data
BRAIN_MCP_AUTO_SAVE_INTERVALNoAuto-save interval in milliseconds (default is 5 minutes)300000

Tools

Functions exposed to the LLM to take actions

NameDescription
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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/DDguan2010/brain-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server