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

premanmcp

v0.3.5

Published

Turn APIs into agent-callable MCP tools with auth, testing, and audit logs

Readme

PreMan MCP

Turn your APIs into MCP tools that coding agents can discover, call, test, and audit.

PreMan is agent-first API infrastructure. It lets backend teams expose endpoints to AI coding agents through MCP, add an auth layer around those tools, and see exactly which agent called what.

Install

npm exec -y premanmcp@latest -- install

Local development form:

node bin/cli.js install

First-time users are prompted for email, OTP, and password directly in the terminal. PreMan creates or connects the account, generates an API key, saves it to ~/.preman/credentials.json, then writes a preman MCP server into ~/.cursor/mcp.json:

{
  "mcpServers": {
    "preman": {
      "command": "npm",
      "args": ["exec", "-y", "--package", "premanmcp@latest", "--", "premanmcp"],
      "env": {
        "PREMAN_BACKEND": "https://api.preman.live",
        "PREMAN_FRONTEND": "https://app.preman.live"
      }
    }
  }
}

Restart Cursor or toggle the MCP server off/on after install. The MCP server loads the saved key automatically.

You can also create or connect your account before install:

npm exec -y premanmcp@latest -- login

You can also pass the key directly:

npm exec -y premanmcp@latest -- install --api-key pm_live_xxx

For project-local installation:

npm exec -y premanmcp@latest -- install --project

What It Does

  • Converts API endpoints into agent-callable MCP tools.
  • Creates/connects a PreMan account from the terminal or IDE agent.
  • Lets agents test real backend endpoints from the IDE.
  • Syncs endpoint inventory across backend and frontend workflows.
  • Adds API-key auth for PreMan MCP access.
  • Supports hosted MCPs with consumer tokens for customer-facing agent access.
  • Records per-call observability so teams can audit which agent did what.

Common Agent Commands

After installing, ask your coding agent:

Use the PreMan MCP to scan this codebase, deploy a hosted MCP, and give me the install command.
Use PreMan to sign me up, verify my email OTP, create my API key, then scan this project.
Use PreMan to test POST /auth/login.
Convert these endpoints into an MCP.
Show me the audit log for this hosted MCP.

Cursor

The installer targets Cursor by default:

npm exec -y premanmcp@latest -- install

Manual Cursor config:

{
  "mcpServers": {
    "preman": {
      "command": "npm",
      "args": ["exec", "-y", "--package", "premanmcp@latest", "--", "premanmcp"]
    }
  }
}

Claude Code

claude mcp add preman -- npm exec -y --package premanmcp@latest -- premanmcp

CLI

npm exec -y premanmcp@latest --       # Start the MCP server
npm exec -y premanmcp@latest -- login # Create/login and generate a PreMan API key
npm exec -y premanmcp@latest -- install          # Install Cursor MCP config
npm exec -y premanmcp@latest -- install --project # Write .cursor/mcp.json in current repo
npm exec -y premanmcp@latest -- install --print   # Print config without writing
npm exec -y premanmcp@latest -- install --api-key KEY # Install with your PreMan API key

Options:

  • --api-key <key>: PreMan API key.
  • --backend <url>: PreMan backend URL. Defaults to https://api.preman.live.
  • --frontend <url>: PreMan frontend URL. Defaults to https://app.preman.live.
  • --name <name>: MCP server name. Defaults to preman.
  • --project: Write .cursor/mcp.json in the current project.
  • --skip-login: Install config without interactive terminal auth.
  • --print: Print the generated MCP config without writing it.

Environment Variables

  • PREMAN_API_KEY: PreMan API key.
  • PREMAN_BACKEND: PreMan backend URL.
  • PREMAN_FRONTEND: PreMan frontend URL.

If PREMAN_API_KEY is omitted, the MCP server loads credentials from ~/.preman/credentials.json.

Product

PreMan helps teams make APIs usable by agents without giving up control. Developers can turn endpoints into MCP servers, hand customers an install snippet or hosted MCP URL, and audit every tool call through PreMan.

Dashboard: https://app.preman.live

License

MIT