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

@engramx/mcp

v0.4.0

Published

MCP server for EngramX — persistent, decentralized agent memory

Readme

@engramx/mcp

MCP server for EngramX — persistent, decentralized agent memory on the Internet Computer.

Prerequisites

  • Node.js >= 22.12
  • An engram with operator access (session key from engramx pair)

Quick Start

ENGRAM_CANISTER_ID=xxxxx-xxxxx-xxxxx-xxxxx-xxx npx @engramx/mcp

Configuration

| Variable | Required | Default | Description | |----------|----------|---------|-------------| | ENGRAM_CANISTER_ID | Yes | — | Your engram canister ID | | ENGRAM_SESSION_KEY_PATH | No | ~/.engramx/session.key | Path to Ed25519 session key | | ENGRAM_HOST | No | https://ic0.app | ICP host URL |

Setup: Claude Desktop

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "engramx": {
      "command": "npx",
      "args": ["@engramx/mcp"],
      "env": {
        "ENGRAM_CANISTER_ID": "xxxxx-xxxxx-xxxxx-xxxxx-xxx",
        "ENGRAM_SESSION_KEY_PATH": "/Users/you/.engramx/session.key"
      }
    }
  }
}

Setup: Cursor

Add to .cursor/mcp.json in your project root:

{
  "mcpServers": {
    "engramx": {
      "command": "npx",
      "args": ["@engramx/mcp"],
      "env": {
        "ENGRAM_CANISTER_ID": "xxxxx-xxxxx-xxxxx-xxxxx-xxx",
        "ENGRAM_SESSION_KEY_PATH": "/Users/you/.engramx/session.key"
      }
    }
  }
}

Setup: Python Agent

from mcp import ClientSession, StdioServerParameters
from mcp.client.stdio import stdio_client

server = StdioServerParameters(
    command="npx",
    args=["@engramx/mcp"],
    env={
        "ENGRAM_CANISTER_ID": "xxxxx-xxxxx-xxxxx-xxxxx-xxx",
        "ENGRAM_SESSION_KEY_PATH": "/path/to/session.key",
    },
)
async with stdio_client(server) as (read, write):
    async with ClientSession(read, write) as session:
        await session.initialize()
        result = await session.call_tool("engram_list_memory_files", {})

Setup: Generic MCP Client

Any MCP-compatible client can spawn the server over stdio:

ENGRAM_CANISTER_ID=xxxxx-xxxxx-xxxxx-xxxxx-xxx \
ENGRAM_SESSION_KEY_PATH=/path/to/session.key \
npx @engramx/mcp

The server communicates over stdin/stdout using the MCP protocol. Set environment variables for authentication.

Available Tools

| Tool | Parameters | Description | |------|-----------|-------------| | engram_read_memory | path: string | Read a memory file (content, version, timestamp) | | engram_append_memory | path: string, content: string | Append to a memory file (creates if missing) | | engram_list_memory_files | (none) | List all memory files | | engram_read_memory_batch | paths: string[] | Read multiple files in one call | | engram_memory_history | path: string | Version history of a file | | engram_read_audit_log | fromIndex?: number, limit?: number | Read audit-log entries (timestamped operations) | | engram_wallet_balance | (none) | Engram canister cycles balance (fuel) | | engram_status | (none) | Canister health and stats | | engram_list_services | (none) | List paid services registered on this engram | | engram_submit_service_request | serviceId: string, params: string | Submit a paid service request; returns a job ID | | engram_get_job_result | jobId: string, maxAttempts?: number | Poll a job to terminal status; returns the job | | engram_dispute_job | jobId: string, reason: string | Dispute a completed job (BuyerConfirm verification) |

Append-only by design. This server intentionally exposes no write, delete, rollback, transfer, or sign tools. Operators get read + append only; full overwrite/delete/rollback, fund movement, and signing are owner-only and not reachable over MCP.

Available Resources

| URI | Description | |-----|-------------| | engram://status | Canister status as JSON |

Getting an Operator Session Key

  1. Create an engram at engramx.ai or via the CLI
  2. Generate an operator invite in the engram dashboard
  3. Pair your machine:
    engramx pair <invite-code> --engram <canister-id>
  4. The session key is saved to ~/.engramx/session.key

See the EngramX documentation for full instructions.

Local Development

git clone https://github.com/engramx/engramx.git
cd engramx/integrations/mcp
pnpm install
pnpm build

Test with a local ICP replica:

ENGRAM_CANISTER_ID=<local-canister-id> \
ENGRAM_HOST=http://localhost:4943 \
node dist/index.js

Inspect with the MCP Inspector:

npx @modelcontextprotocol/inspector -- npx @engramx/mcp

Troubleshooting

Missing ENGRAM_CANISTER_ID The server exits with a clear error. Set the environment variable to your engram canister ID.

Session key not found Generate one with engramx pair. The default path is ~/.engramx/session.key. Override with ENGRAM_SESSION_KEY_PATH.

Canister unreachable Check that ENGRAM_HOST is correct (default: https://ic0.app for mainnet). For local development, use http://localhost:4943. Verify network connectivity.