Momento MCP Server
OfficialThis server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Momento MCP Server
A simple Model Context Protocol (MCP) server implementation for Momento Cache.
Available on npmjs as @gomomento/mcp-momento
Tools
getGet the cache value stored for the given key.
Inputs:
keystring -- the key to look up in the cache.cacheNamestring -- the name cache where the key presides (optional)
Returns:
Hitwith the found value if the key was found.Missif the key was not found.Errorif the request failed.
setSets the value in cache with a given Time To Live (TTL) seconds. If a value for this key is already present, it will be replaced by the new value regardless of the previous value's data type.
Inputs:
key: string -- the key to set in the cachevalue: string -- the value to set for the given keyttl: integer -- the number of seconds to keep this value in the cache (optional)cacheName: string -- the name of the cache to store the key in (optional)
Returns:
Successif the key was successfully written to the cache.Errorif the request failed.
list-cachesLists the names of all the caches in your Momento account.
Inputs:
(none)
Returns:
Successwith a comma separated list of cache namesErrorif the request failed
create-cacheCreates a new cache in your Momento account
Inputs:
name: string - the name of the cache to create
Returns:
Successif the cache was successfully createdErrorif the request failed
delete-cacheDeletes a cache from your Momento account
Inputs:
name: string - the name of the cache to delete
Returns:
Successif the cache was successfully deletedErrorif the request failed
Related MCP server: Momento MCP Server
Quickstart
Get a Momento API key from the Momento Console. Note - to run control plane tools (
list-caches,create-cache,delete-cache), you must use a super user API key.Set environment variables to configure the cache name and Time To Live (TTL) for items in the cache.
# required export MOMENTO_API_KEY="your-api-key" # optional export MOMENTO_CACHE_NAME="your-cache-name" export DEFAULT_TTL_SECONDS=60
If you do not set these values, it will use mcp-momento as the cache name and 60 seconds for the default time to live.
Usage with MCP Inspector
npx -y @modelcontextprotocol/inspector npx @gomomento/mcp-momento@latestUsage with NPX on Claude Desktop
Note: if you're using nodenv, replace the plain npx with the path to your npx binary (e.g. /Users/username/.nodenv/shims/npx).
{
"mcpServers": {
"momento": {
"command": "npx",
"args": [
"-y",
"@gomomento/mcp-momento"
],
"env": {
"MOMENTO_API_KEY": "your-api-key",
"MOMENTO_CACHE_NAME": "your-cache-name",
"DEFAULT_TTL_SECONDS": 60
}
}
}
}Setup for local development
Install dependencies:
npm installBuild the server:
npm run buildRun with MCP Inspector
export MOMENTO_API_KEY="your-api-key" npx @modelcontextprotocol/inspector node dist/index.js
This server cannot be deployed
Maintenance
Related MCP Connectors
Persistent cloud memory for AI agents. Store and search key-value memories across sessions.
Hosted Upstash MCP server: Redis, QStash, Workflow, Vector, Search, Box and Blob, with OAuth.
MCP-first toolbox for agents: KV storage, auth, queue, and utility tools. Free in early access.
Shared memory for your AI tools: tasks, notes and context every tool can read and write over MCP.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables key-value storage operations using multiple backends (memory, filesystem, redis, MongoDB, HTTP) via MCP tools like get, set, and list.9 npm1MIT
- AlicenseNot gradedqualityDmaintenanceA simple MCP server for Momento Cache enabling get, set, list, create, and delete cache operations with optional TTL and cache name configuration.22 npmApache 2.0
- AlicenseNot gradedqualityCmaintenanceExposes get, set, and delete operations over a Redis/Valkey-compatible key-value store as MCP tools, with per-user key namespacing and TTL support on writes. Enables clients to cache and retrieve arbitrary string values statelessly over SSE or direct HTTP, using their own backend.MIT
- AlicenseNot gradedqualityBmaintenanceEnables agents to store LLM query-response pairs and retrieve them via fuzzy cosine similarity matching, reducing duplicate inference calls; it exposes tools for setting cache entries, semantic lookup, and hit-rate statistics.7MIT