Momento MCP Server
A simple Model Context Protocol (MCP) server implementation for Momento Cache.
Available on npmjs as @gomomento/mcp-momento
Tools
get- Get the cache value stored for the given key.
- Inputs:
keystring -- the key to look up in the cache.
- Returns:
Hitwith the found value if the key was found.Missif the key was not found.Errorif the request failed.
set- Sets 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.
- Returns:
Successif the key was successfully written to the cache.Errorif the request failed.
Quickstart
Get a Momento API key from the Momento Console.
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
Usage with MCP Inspector
npx -y @modelcontextprotocol/inspector npx @gomomento/mcp-momento@latest
Usage 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
bash export MOMENTO_API_KEY="your-api-key" npx @modelcontextprotocol/inspector node dist/index.js
Momento Cache
Project Details
- momentohq/mcp-momento
- Apache License 2.0
- Last Updated: 4/4/2025
Categories
Recomended MCP Servers
BICScan MCP Server
一个用来实现简单页面倒计时的轻量级工具
Enable AI Agents to Control Unity
Official Vectorize MCP Server
Infisical's official MCP server.
Official MCP server for Tripo
MCP server for Israel Government Data
A Model Context Protocol Server for connecting with Adfin APIs
Vite plugin that enables a MCP server helping models to understand your Vue app better.
Official MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech and video generation...
The official TypeScript library for the Dodo Payments API





