Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MAX_MEMORYNoMaximum memory usage in bytes (100MB). Prevents excessive memory consumption. When exceeded, least recently used items are removed.104857600
CONFIG_PATHNoPath to a custom config.json file
DEFAULT_TTLNoDefault time-to-live in seconds (1 hour). Items are automatically removed after this time. Prevents stale data from consuming memory.3600
MAX_ENTRIESNoMaximum number of items that can be stored in cache. Prevents cache from growing indefinitely. When exceeded, oldest unused items are removed first.1000
CHECK_INTERVALNoCleanup interval in milliseconds (1 minute). How often the server checks for expired items.60000
STATS_INTERVALNoStats update interval in milliseconds (30 seconds). How often cache statistics are updated.30000

Tools

Functions exposed to the LLM to take actions

NameDescription
store_data

Store data in the cache with optional TTL

retrieve_data

Retrieve data from the cache

clear_cache

Clear specific or all cache entries

get_cache_stats

Get cache statistics

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
Cache StatisticsReal-time cache performance metrics

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/tosin2013/mcp-memory-cache-server'

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