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

runenv-mcp

v0.1.0

Published

MCP server for RunEnv — secure secret access for AI agents

Readme

RunEnv AI Agent Integration (MCP)

Secure, time-scoped, and audit-logged secret access for your AI companions (Claude, Cursor, etc.) via the Model Context Protocol.

🚀 Quick Start Guide

If you want to give your AI agent secure access to your environment variables without copy-pasting .env files into chat, you are in the right place!

1. Generate an Agent Token

First, you need a specialized Agent Token. Do not use a standard Service Token (rtk_...) for AI agents.

  1. Open your RunEnv Dashboard.
  2. Navigate to your Project and go to the MCP Agents panel.
  3. Click "Create Agent Session" or "Generate Agent Token".
  4. Copy the token. It will always start with rma_ (RunEnv MCP Agent).

2. Configure Your AI

You don't need to install anything globally, you can just use npx directly in your AI's configuration file!

For Claude Desktop

Open your Claude config file:

  • Mac: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Add the runenv server to your mcpServers object:

{
  "mcpServers": {
    "runenv": {
      "command": "npx",
      "args": ["-y", "runenv-mcp"],
      "env": {
        "RUNENV_TOKEN": "rma_your_token_here",
        "RUNENV_API_URL": "https://runenv.dev"
      }
    }
  }
}

⚠️ Important: After saving the file, you must fully quit and restart Claude Desktop, and click New Chat to ensure the tools are loaded into the chat context.

For Cursor

  1. Go to Cursor Settings > Features > MCP.
  2. Click + Add new MCP server.
  3. Name it runenv, select command type, and enter: npx -y runenv-mcp.
  4. Add the necessary environment variables (RUNENV_TOKEN and RUNENV_API_URL).

🛠️ How it Works & Available Tools

To ensure your environment stays incredibly secure, your AI Agent cannot just read all your secrets immediately. It must explicitly request time-scoped permission first!

This server exposes exactly three tools to the AI:

| Tool | What it does | |------|-------------| | runenv_list_secrets | Lists the names of the available secret keys in the environment (but NOT their values). | | runenv_request_access | The AI must call this to request temporary "Just-In-Time" access to specific keys. This generates a detailed audit log in your RunEnv Dashboard. | | runenv_read_secret | Reads the decrypted value of a secret (Only works after temporary access has been granted!). |

Recommended Prompts

Because the AI needs to know which environment to request access for, use specific prompts like this:

"I need to debug the database for the production environment. Please use your tools to request access to the DATABASE_URL."


🔐 End-to-End Encryption (E2EE)

If your RunEnv project has strict End-to-End Encryption enabled, the AI will need your Project Key to decrypt the secret values locally on your machine. Simply append the project key to the end of your token separated by a dot:

"RUNENV_TOKEN": "rma_your_token_here.YOUR_PROJECT_KEY"

License

Proprietary