by momentohq
Offers a simple Model Context Protocol server implementation for Momento Cache, enabling get, set, and cache management operations through a lightweight Node.js package.
Provides a Model Context Protocol (MCP) server that connects to Momento Cache, exposing commands to retrieve, store, list, create, and delete caches.
export MOMENTO_API_KEY="your-api-key"
export MOMENTO_CACHE_NAME="your-cache-name" # optional
export DEFAULT_TTL_SECONDS=60 # optional
npx -y @modelcontextprotocol/inspector npx @gomomento/mcp-momento@latest
or configure in a client JSON:
{
"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
}
}
}
}
@gomomento/mcp-momento).\n- Compatible with MCP Inspector, Claude Desktop, and other MCP clients.\n- Configurable default cache name and TTL via environment variables.Q: Do I need a super‑user API key?\nA: Yes, a super‑user key is required for control‑plane commands (list‑caches, create‑cache, delete‑cache).
Q: What defaults are used if I don’t set environment variables?\nA: The server defaults to cache name mcp-momento and TTL of 60 seconds.
Q: Can I run the server without MCP Inspector?\nA: Yes, you can invoke the packaged server directly with npx @gomomento/mcp-momento and connect any MCP‑compatible client.
A simple Model Context Protocol (MCP) server implementation for Momento Cache.
Available on npmjs as @gomomento/mcp-momento
get
key string -- the key to look up in the cache.cacheName string -- the name cache where the key presides (optional)Hit with the found value if the key was found.Miss if the key was not found.Error if the request failed.set
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)Success if the key was successfully written to the cache.Error if the request failed.list-caches
Success with a comma separated list of cache namesError if the request failedcreate-cache
name: string - the name of the cache to createSuccess if the cache was successfully createdError if the request faileddelete-cache
name: string - the name of the cache to deleteSuccess if the cache was successfully deletedError if the request failedGet 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.
npx -y @modelcontextprotocol/inspector npx @gomomento/mcp-momento@latest
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
}
}
}
}
Install dependencies:
npm install
Build the server:
npm run build
Run with MCP Inspector
export MOMENTO_API_KEY="your-api-key"
npx @modelcontextprotocol/inspector node dist/index.js
Please log in to share your review and rating for this MCP.
{
"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"
}
}
}
}claude mcp add momento npx -y @gomomento/mcp-momentoExplore related MCPs that share similar capabilities and solve comparable challenges
by awslabs
Provides specialized servers that expose AWS capabilities through the Model Context Protocol, enabling AI assistants to retrieve up-to-date documentation, execute API calls, and automate infrastructure workflows directly within development environments.
by cloudflare
Provides a collection of Model Context Protocol servers that enable MCP‑compatible clients to interact with Cloudflare services such as Workers, Observability, Radar, and more, allowing natural‑language driven management of configurations, data, and operations.
by Flux159
Connects to a Kubernetes cluster and offers a unified MCP interface for kubectl, Helm, port‑forwarding, diagnostics, and non‑destructive read‑only mode.
by TencentEdgeOne
Deploy HTML, folders, or zip archives to EdgeOne Pages and instantly obtain a public URL for fast edge delivery.
by rishikavikondala
Provides Model Context Protocol tools for performing AWS S3 and DynamoDB operations, with automatic logging and audit access via the `audit://aws-operations` endpoint.
by confluentinc
Enables AI assistants to manage Confluent Cloud resources such as Kafka topics, connectors, and Flink SQL statements through natural‑language interactions.
by aliyun
Enables AI assistants to operate Alibaba Cloud resources such as ECS, Cloud Monitor, OOS and other services through seamless integration with Alibaba Cloud APIs via the Model Context Protocol.
by heroku
Enables large language models to manage and operate Heroku platform resources directly through the Heroku CLI, exposing a set of tools for app, dyno, add‑on, pipeline, database, and team operations.
by aws-samples
Retrieve PDF documents and other S3 objects through Model Context Protocol resources, enabling LLMs to pull data directly from AWS S3 buckets.