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

beli-mcp

v0.2.0

Published

MCP server for Beli — log in once, then search places, rank reviews, manage photos and bookmarks via tools.

Readme

beli-mcp

npm version MIT License Model Context Protocol

An MCP server for Beli. Log in once, then search places, rank reviews, manage photos, and bookmark places from any MCP client (Claude Desktop, Cursor, VS Code, etc.).

Install in Cursor Install in VS Code

Unofficial. Built on a reverse-engineered private API (app v9.3.1); Beli makes no compatibility guarantee. Use with your own account and rate-limit politely.

Install / run

No install needed — run it with npx:

npx beli-mcp

Claude Desktop / Cursor config

{
  "mcpServers": {
    "beli": {
      "command": "npx",
      "args": ["-y", "beli-mcp"]
    }
  }
}

On Windows, wrap the command with cmd /c:

{
  "mcpServers": {
    "beli": {
      "command": "cmd",
      "args": ["/c", "npx", "-y", "beli-mcp"]
    }
  }
}

No credentials go in the config — authenticate once with npx beli-mcp login (below). Login is by phone number (E.164), not email.

Log in once

beli-mcp authenticates with a one-time browser login — no credentials in any client config, works the same for every MCP client:

npx beli-mcp login

This opens a small localhost page in your browser, you enter your Beli phone

  • password, and it's validated against Beli before the session is saved. Only tokens are persisted (to ~/.beli/session.json, mode 0600) — your password is never stored. A single login lasts ~7 days (the refresh token lifetime); the 20-minute access token is refreshed automatically.
npx beli-mcp whoami    # show the saved user id
npx beli-mcp logout    # clear the saved session

logout clears the local session file only. It does not revoke the tokens server-side — the refresh token remains valid on Beli until it expires (~7 days). Don't share the session file.

The login server binds to loopback only, uses an ephemeral port + a one-time nonce, rejects forged Host headers (anti DNS-rebinding), and exits after you sign in (or after 5 minutes).

Once logged in, point any MCP client at the server with no secrets in its config:

{
  "mcpServers": {
    "beli": { "command": "npx", "args": ["-y", "beli-mcp"] }
  }
}

Headless / CI

For non-interactive environments, set BELI_PHONE + BELI_PASSWORD and beli-mcp login will authenticate without opening a browser. Set BELI_NO_BROWSER=1 to never attempt to launch a browser.

VS Code (secure prompt, no hardcoding)

VS Code can prompt for credentials and store them in its secret storage via input variables, then run a one-time headless login:

// .vscode/mcp.json
{
  "inputs": [
    { "id": "beli-phone", "type": "promptString", "description": "Beli phone (+1…)" },
    { "id": "beli-password", "type": "promptString", "description": "Beli password", "password": true }
  ],
  "servers": {
    "beli": {
      "command": "npx",
      "args": ["-y", "beli-mcp"],
      "env": { "BELI_PHONE": "${input:beli-phone}", "BELI_PASSWORD": "${input:beli-password}" }
    }
  }
}

Login is by phone number (E.164), not email.

Tools

| Tool | Kind | Description | |------|------|-------------| | search_places | read | Place typeahead near a location (Google Places). | | find_business | read | Resolve a name+location to a Beli business_id. | | business_detail | read | Full business details by id. | | get_been | read | A user's ranked "Been" list. | | get_want_to_try | read | A user's "Want to Try" bookmarks. | | rank_place | write | Create a ranked review (score is computed by Beli). | | upload_photo | write | Upload a photo for a business from a local file. | | list_photos | read | List your photos for a business. | | delete_photo | write | Soft-delete a photo. | | bookmark / unbookmark | write | Add/remove from "Want to Try". | | draft_* | local | Compose a review offline and draft_submit it atomically. |

Write safety

Write tools mutate your real account. By default they are gated: either start the server with BELI_ALLOW_WRITES=1, or pass confirm: true on each write call.

Environment variables

| Var | Default | Purpose | |-----|---------|---------| | BELI_PHONE | – | E.164 phone (headless/CI login only) | | BELI_PASSWORD | – | account password (headless/CI login only; never stored) | | BELI_NO_BROWSER | 0 | set 1 to never launch a browser during login | | BELI_ALLOW_WRITES | 0 | set 1 to allow writes without per-call confirm | | BELI_HOME | ~/.beli | base dir for session + drafts | | BELI_SESSION_PATH | $BELI_HOME/session.json | session file path | | BELI_MIN_INTERVAL_MS | 350 | politeness throttle between API calls |

License

MIT