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

@serpstat/llm-brand-monitor-mcp

v1.0.1

Published

MCP server for LLM Brand Monitor — track how AI models mention your brand

Readme

LLM Brand Monitor MCP Server

npm version MCP Badge License: MIT

MCP server for LLM Brand Monitor — a platform that tracks how AI models mention your brand.

Connect Claude, Cursor, Windsurf, or any MCP-compatible client to manage brand monitoring projects, run scans across 350+ LLMs, and analyze results — all through natural language.

Quick Start

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "lbm": {
      "command": "npx",
      "args": ["-y", "@serpstat/llm-brand-monitor-mcp"],
      "env": {
        "LBM_API_KEY": "lbm_your_key_here"
      }
    }
  }
}

Claude Code

claude mcp add lbm-mcp -e LBM_API_KEY=lbm_your_key_here -- npx -y @serpstat/llm-brand-monitor-mcp

From Source

git clone https://github.com/SerpstatGlobal/llm-brand-monitor-mcp.git
cd llm-brand-monitor-mcp
npm install && npm run build

Then add to your MCP client config:

{
  "mcpServers": {
    "lbm": {
      "command": "node",
      "args": ["/path/to/llm-brand-monitor-mcp/dist/index.js"],
      "env": {
        "LBM_API_KEY": "lbm_your_key_here"
      }
    }
  }
}

MCP Inspector

LBM_API_KEY=lbm_your_key_here npx @modelcontextprotocol/inspector node dist/index.js

Getting an API Key

  1. Sign up at llmbrandmonitor.com
  2. Open your Profile page
  3. Copy your API key (starts with lbm_)

Tools

17 tools across 4 categories:

Projects (7 tools)

| Tool | What it does | |---|---| | lbm_list_projects | List all brand monitoring projects | | lbm_get_project | Get project details with prompts and models | | lbm_create_project | Create a new project | | lbm_update_project | Update project name, models, or monitoring settings | | lbm_archive_project | Archive a project | | lbm_add_prompts | Add monitoring prompts to a project | | lbm_delete_prompt | Remove a prompt from a project |

Scans (3 tools)

| Tool | What it does | |---|---| | lbm_run_scan | Start a scan — sends prompts to LLMs and collects responses | | lbm_get_scan_status | Check scan progress | | lbm_list_scans | View scan history |

Results (5 tools)

| Tool | What it does | |---|---| | lbm_list_results | Browse monitoring results (brand mentions, status) | | lbm_get_transcript | Read the full LLM response for a specific result | | lbm_list_competitors | See which competitor brands LLMs mention | | lbm_list_links | See which URLs and domains LLMs cite | | lbm_get_history | Competitor mention trends over time |

Models & Usage (2 tools)

| Tool | What it does | |---|---| | lbm_list_models | List 350+ available LLM models | | lbm_get_usage | Check credit balance and usage stats |

Typical Workflow

You: "What brand monitoring projects do I have?"
Claude: → lbm_list_projects

You: "Run a scan on the Serpstat project"
Claude: → lbm_run_scan (asks you to confirm — scans spend credits)
       → lbm_get_scan_status (polls until complete)

You: "Show me the results — which models mentioned my brand?"
Claude: → lbm_list_results

You: "What did GPT-5 say exactly?"
Claude: → lbm_get_transcript

You: "Who are my competitors according to AI models?"
Claude: → lbm_list_competitors

Token-Efficient Responses

All list tools return compact CSV by default instead of verbose JSON. This reduces token usage by 80–96%, keeping responses within context limits.

# Default (CSV) — 3-6 key columns
competitor,mentions,visibility_pct
Competitor A,178,72.4
Competitor B,105,42.7

# Full JSON — pass include_all_fields: true
{"data": [{"competitor_id": "...", "competitor_name": "Competitor A", ...}]}

All list tools support offset and limit for pagination.

Configuration

| Variable | Required | Default | Description | |---|---|---|---| | LBM_API_KEY | Yes | — | API key from llmbrandmonitor.com | | LBM_API_BASE_URL | No | https://llmbrandmonitor.com/api/v1 | API base URL | | LOG_LEVEL | No | info | error, warn, info, debug |

Error Handling

Errors include actionable hints for the LLM:

| Error | Hint | |---|---| | INSUFFICIENT_CREDITS | Check balance with lbm_get_usage. Top up at llmbrandmonitor.com/pricing | | RATE_LIMITED | Wait a few seconds and retry | | NOT_FOUND | Call lbm_list_projects to verify the ID exists | | UNAUTHORIZED | API key is invalid — check LBM_API_KEY |

Development

npm install
npm run build    # TypeScript → dist/
npm test         # 126 tests

API Documentation

Full REST API docs: llmbrandmonitor.com/api-docs

License

MIT