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

blockmine-mcp

v0.2.0

Published

stdio↔HTTP bridge and setup wizard for the BlockMine MCP endpoint. Lets stdio-only MCP clients (Claude Desktop, Cursor, Cline, etc.) connect to a running BlockMine panel.

Readme

blockmine-mcp

English | Русский

npm version license

Model Context Protocol мост и setup-визард для BlockMine. Сам MCP-сервер встроен в BlockMine — этот npm-пакет нужен как тонкий клиент для AI-приложений, которые умеют только stdio (Claude Desktop, старые Cursor/Cline).

Архитектура

                            Authorization: Bearer pk_...
  AI клиент ───HTTP MCP─────────────────────────────────► BlockMine /api/mcp
  (Claude Code, Cursor, Cline,
   Claude Desktop, ...)

           или, для stdio-only клиентов:

  AI клиент ─stdio─► blockmine-mcp (npm) ──HTTP MCP──► BlockMine /api/mcp

MCP endpoint — часть самого BlockMine. Авторизация — обычным Panel API Key. Можно подключаться с любого хоста, лишь бы BlockMine был доступен.

Быстрый старт

npx blockmine-mcp setup

Визард сам:

  1. спросит URL BlockMine (по умолчанию http://localhost:3001),
  2. подскажет где создать pk_... ключ,
  3. проверит токен,
  4. зарегистрирует сервер в выбранном AI-клиенте (Claude Code через CLI, Claude Desktop через конфиг-файл, либо просто напечатает сниппет).

Перезапусти AI-клиент — готово.

Установка вручную

Нативный HTTP (рекомендуется)

Для клиентов которые умеют HTTP MCP — Claude Code, свежие Cursor и Claude Desktop:

Claude Code (CLI):

claude mcp add --scope user --transport http blockmine \
  http://localhost:3001/api/mcp \
  --header "Authorization: Bearer pk_твой_ключ"

Через конфиг-файл:

{
  "mcpServers": {
    "blockmine": {
      "type": "http",
      "url": "http://localhost:3001/api/mcp",
      "headers": { "Authorization": "Bearer pk_твой_ключ" }
    }
  }
}

Fallback на stdio (через этот пакет)

Для старых клиентов которые умеют только stdio (некоторые сборки Cline, Zed):

{
  "mcpServers": {
    "blockmine": {
      "command": "npx",
      "args": ["-y", "blockmine-mcp"],
      "env": {
        "BLOCKMINE_URL": "http://localhost:3001",
        "BLOCKMINE_API_TOKEN": "pk_твой_ключ"
      }
    }
  }
}

Требования

  • Node.js 18+.
  • Запущенный BlockMine, доступный по HTTP.
  • Panel API Key (pk_...) из BlockMine → Настройки → API ключи.

Переменные окружения (для proxy-режима)

| Переменная | По умолчанию | Назначение | | --- | --- | --- | | BLOCKMINE_URL | http://localhost:3001 | Базовый URL панели. | | BLOCKMINE_API_TOKEN | (обязательно) | Panel API Key. | | BLOCKMINE_API_TIMEOUT_MS | 30000 | Таймаут запроса. |

Tools которые отдаёт BlockMine MCP

Жизненный цикл ботов: list_bots, get_bot, get_bot_states, start_bot, stop_bot, restart_bot, send_message_to_bot, get_bot_logs

Плагины: get_bot_plugins, get_plugin_settings, get_plugin_store, update_plugin_settings, enable_disable_plugin, install_local_plugin

Управление: get_bot_users, get_user_info, get_bot_groups, get_bot_permissions, get_bot_commands

Права проверяются per-tool теми же scope'ами что и обычное API панели (bot:start_stop, plugin:settings:edit, management:view и т.д.). Какие tools доступны — зависит от роли ключа.

Решение проблем

Cannot reach BlockMine at ... — панель оффлайн или неверный URL. Запусти BlockMine и перезапусти setup.

401 / токен не авторизуется — ключ неверный, просрочен или отозван. Сгенерируй новый и снова setup.

403 / permission denied — у токена нет нужного scope. Поправь роль в панели или используй ключ с более широкими правами.

Лицензия

MIT — см. LICENSE.