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

@hieco/mirror-mcp

v1.0.0

Published

MCP server for Hedera Mirror Node REST API

Downloads

47

Readme

@hieco/mirror-mcp

@hieco/mirror-mcp turns Hieco’s Mirror client into a local MCP server so agents can explore Hedera data through a clean, validated, read-only tool surface.

If @hieco/mirror-cli is for humans in a terminal, this package is for agents in an MCP-compatible host.

Why This Package Exists

AI agents should not need custom wrappers every time they need blockchain reads. This package gives them:

  • a ready-to-run stdio MCP server
  • read-only tools across the main Mirror domains
  • validated input schemas
  • environment-driven startup config
  • optional session-level network switching

When To Use It

Choose @hieco/mirror-mcp when you want to:

  • expose Hedera data to a local MCP client
  • give an agent safe, structured Mirror access
  • avoid hand-building tool definitions around the Mirror REST API
  • keep agent tooling aligned with the same package family used elsewhere in the repo

Run Without Installing

bunx @hieco/mirror-mcp
npx -y @hieco/mirror-mcp
pnpm dlx @hieco/mirror-mcp
yarn dlx @hieco/mirror-mcp

Global Installation

npm install --global @hieco/mirror-mcp
pnpm add --global @hieco/mirror-mcp
yarn global add @hieco/mirror-mcp
bun add --global @hieco/mirror-mcp

The installed binary name is mirror-mcp.

Quick Start

Example MCP client configuration with npx:

{
  "mcpServers": {
    "hedera-mirror": {
      "command": "npx",
      "args": ["-y", "@hieco/mirror-mcp"],
      "env": {
        "MIRROR_NETWORK": "mainnet",
        "MIRROR_ALLOW_NETWORK_SWITCH": "true"
      }
    }
  }
}

Example MCP client configuration with bunx:

{
  "mcpServers": {
    "hedera-mirror": {
      "command": "bunx",
      "args": ["@hieco/mirror-mcp"],
      "env": {
        "MIRROR_NETWORK": "mainnet",
        "MIRROR_ALLOW_NETWORK_SWITCH": "true"
      }
    }
  }
}

Runtime Model

The server starts over stdio and keeps one in-memory MirrorNodeClient for the current process.

Environment variables shape startup behavior:

  • MIRROR_NETWORK
  • MIRROR_NODE_URL
  • MIRROR_ALLOW_NETWORK_SWITCH

When network switching is enabled, the process can move to a different built-in network or custom Mirror endpoint for later tool calls.

Notes

  • This package is read-only.
  • Tool inputs are validated before a Mirror call is made.
  • Restarting the server resets the session to its startup defaults.
  • The server is built on the same @hieco/mirror client used by the CLI and framework wrappers.

Related Packages