Momento

Momento

Momento Cache lets you quickly improve your performance, reduce costs, and handle load at any scale.

3
Stars
4
Forks
4
Releases

Overview

Momento MCP Server is a lightweight MCP server that exposes cache operations backed by Momento Cache. It implements the core MCP tools used by clients to interact with caches: get, set, list-caches, create-cache, and delete-cache. The get operation retrieves a value for a given key, with an optional cache name, and returns Hit with the value if found, Miss if not, or Error on failure. The set operation writes a value with an optional TTL, replacing any existing value and regardless of the previous data type. The list-caches operation returns a comma-separated list of all caches in the Momento account. The create-cache and delete-cache operations create and delete caches by name, returning Success or Error. The server is configured via environment variables, including MOMENTO_API_KEY (required), MOMENTO_CACHE_NAME (optional, defaults to mcp-momento), and DEFAULT_TTL_SECONDS (optional, defaults to 60). It can be run with MCP Inspector for testing and integration and can be installed from npm as @gomomento/mcp-momento. Typical usage involves building with npm run build, setting the API key, and invoking the inspector to connect to node dist/index.js.

Details

Owner
momentohq
Language
JavaScript
License
Apache License 2.0
Updated
2025-12-07

Features

Get

Fetch a value for a given key from the cache; optional cacheName; returns Hit, Miss, or Error.

Set

Store a value in the cache with an optional TTL; replaces existing value regardless of type; optional cacheName.

List Caches

List the names of all caches in the Momento account; returns a comma-separated list or Error.

Create Cache

Create a new cache by name; returns Success or Error.

Delete Cache

Delete a cache by name; returns Success or Error.

Configurable Environment Setup

Configure API key, cache name, and default TTL via environment variables (MOMENTO_API_KEY, MOMENTO_CACHE_NAME, DEFAULT_TTL_SECONDS) with defaults.

Tags

MCPMomento CachecachegetsetTTLlist-cachescreate-cachedelete-cacheinspectornodenpm