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

agentlock-mcp-server

v0.3.1

Published

AgentLock MCP server for Claude, Cursor, and other MCP-compatible AI agents

Readme

agentlock-mcp-server

MCP (Model Context Protocol) server that lets Claude Desktop, Cursor, and other MCP-compatible clients call AgentLock as a tool provider. The agent submits actions, polls results, drives browser sessions, and exchanges messages with the user — all through AgentLock's approval + policy engine.

Install

npm install -g agentlock-mcp-server
# or run ad-hoc:
npx agentlock-mcp-server

Authentication

Two modes are supported. Secrets must come from environment variables — CLI flags like --token, --key, --agent-id are hard-rejected because argv is world-readable on Unix via ps aux and /proc/<pid>/cmdline.

1. API Token (recommended)

Create a bearer token in the AgentLock dashboard under the agent's detail page, then:

AGENTLOCK_TOKEN=<token> agentlock-mcp

2. Ed25519 Signing (advanced)

For stricter environments where you want cryptographic request signing:

AGENT_ID=<uuid> \
AGENT_PRIVATE_KEY=<base64> \
agentlock-mcp

The agent's public key must already be registered in the dashboard. The private key stays on the client — the server only ever sees signatures.

Configuration options

| Var | Default | Description | |---|---|---| | AGENTLOCK_URL | https://app.agentlock.net | Base URL of the AgentLock gateway. Override for self-hosted. | | AGENTLOCK_TOKEN | — | Bearer token (auth mode 1). | | AGENT_ID | — | Agent UUID (auth mode 2). | | AGENT_PRIVATE_KEY | — | base64-encoded Ed25519 private key (auth mode 2). |

--url <url> is the only accepted CLI flag. All others exit with a migration message pointing at the env var.

Exposed tools

| Tool | Purpose | |---|---| | request_action | Submit a generic action (HTTP, MCP, any connector). Use for every external call by default. | | get_result | Poll for the result of a previously submitted request. | | browser_open | Start a browser session. Requires human approval. Returns session_id + a11y snapshot. | | browser_action | Drive an open browser session (click, type, navigate, snapshot). No extra approval inside the session. | | browser_login | Fill a login form from a stored credential. The agent never sees the password or TOTP code. | | list_credentials | List available credentials by name/type. Secret values are never returned. | | get_messages | Fetch messages from the user — replies on approvals, or direct DMs from the dashboard. | | send_message | Reply in an existing thread. | | start_thread | Proactively start a new thread to ask the user something. |

Claude Desktop setup

Add the server to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or the equivalent on your OS:

{
  "mcpServers": {
    "agentlock": {
      "command": "npx",
      "args": ["-y", "agentlock-mcp-server"],
      "env": {
        "AGENTLOCK_TOKEN": "<your-token>"
      }
    }
  }
}

Restart Claude Desktop. The request_action / browser_open / ... tools should appear in the tool picker.

Cursor setup

Add to .cursor/mcp.json in your project (or ~/.cursor/mcp.json globally):

{
  "mcpServers": {
    "agentlock": {
      "command": "npx",
      "args": ["-y", "agentlock-mcp-server"],
      "env": {
        "AGENTLOCK_TOKEN": "<your-token>"
      }
    }
  }
}

Transport

Communicates over stdio. There is no HTTP listener — the MCP client is expected to spawn the binary and pipe JSON-RPC over stdin/stdout per the MCP spec. Logs go to stderr and are passed through to the MCP client's log stream.

Build from source

pnpm install
cd packages/mcp-server
pnpm build
node dist/index.js