npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@gomomento/mcp-momento

v0.1.3

Published

Momento MCP server implementation

Readme

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:
      • key string -- the key to look up in the cache.
      • cacheName string -- the name cache where the key presides (optional)
    • Returns:
      • Hit with the found value if the key was found.
      • Miss if the key was not found.
      • Error if 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.
    • Inputs:
      • key: string -- the key to set in the cache
      • value: string -- the value to set for the given key
      • ttl: 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:
      • Success if the key was successfully written to the cache.
      • Error if the request failed.
  • list-caches
    • Lists the names of all the caches in your Momento account.
    • Inputs:
      • (none)
    • Returns:
      • Success with a comma separated list of cache names
      • Error if the request failed
  • create-cache
    • Creates a new cache in your Momento account
    • Inputs:
      • name: string - the name of the cache to create
    • Returns:
      • Success if the cache was successfully created
      • Error if the request failed
  • delete-cache
    • Deletes a cache from your Momento account
    • Inputs:
      • name: string - the name of the cache to delete
    • Returns:
      • Success if the cache was successfully deleted
      • Error if the request failed

Quickstart

  1. 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.

  2. 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@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

  1. Install dependencies:

    npm install
  2. Build the server:

    npm run build
  3. Run with MCP Inspector

    export MOMENTO_API_KEY="your-api-key"
    npx @modelcontextprotocol/inspector node dist/index.js