Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MEMORY_STORENoMemory store type: 'memory', 'file', or 'mysql'.memory
QWEN_API_KEYNoAPI key for Qwen on Alibaba Cloud (DashScope). Falls back to offline deterministic intelligence if not set.
MCP_TRANSPORTNoTransport mode: 'stdio' or 'http'.stdio
QWEN_BASE_URLNoOptional base URL for Qwen API (e.g., for different region).
MCP_AUTH_TOKENNoBearer token for HTTP transport authentication.
MEMORY_FILE_PATHNoPath to JSON file when MEMORY_STORE is 'file'.

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
memory_writeA

Persist something worth remembering about a user (a preference, fact, commitment, or event). Qwen derives a short summary, tags, importance (salience), and kind. Call this whenever the user reveals durable information you should recall in future sessions.

memory_searchA

Semantic search over a user's memories, ranked by similarity, importance, recency, and how often each memory has been recalled. Returns the top matches. Recalled memories are reinforced.

memory_recall_contextB

Returns the most critical memories for a query, greedily packed to fit a token budget, as a ready-to-inject context block. Use this to load long-term memory into a limited context window before answering.

memory_forgetA

Runs the maintenance pass: clusters of related memories are merged by Qwen into one canonical memory, contradicted/outdated items are forgotten, and stale low-importance memories decay away. Returns a report of what was consolidated, archived, forgotten, and retained.

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/John-CEO-HQ/qwen-memory-mcp'

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