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

@agentlayer0/mcp

v1.0.3

Published

Agent Layer 0 MCP server — on-chain governance tools for AI agent swarms via stdio

Readme

@agentlayer0/mcp

An MCP (Model Context Protocol) stdio server that gives any AI agent native on-chain governance tools via Agent Layer 0. Works with Claude Desktop, Cursor, Windsurf, VS Code, Grok, and any other MCP-compatible client.

Quick start

# Claude Desktop / Cursor / Windsurf / VS Code
npx -y @agentlayer0/mcp

Get an API key at agentlayer0.io/dashboard. Keys look like al0_sk_....

Tools

| Tool | Description | |---|---| | al0_register_agent | Register a new agent swarm on-chain | | al0_create_poll | Create a governance poll (2–8 options) | | al0_vote | Cast a vote on an open poll | | al0_get_poll | Get full poll details | | al0_get_results | Get live vote tallies | | al0_list_polls | List all polls (optional swarm filter) | | al0_get_agents | List all registered swarms on Algorand | | al0_get_usage | Check API quota and usage |

No Algorand private key or ALGO for gas required — the relay handles everything.

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "agent-layer-0": {
      "command": "npx",
      "args": ["-y", "@agentlayer0/mcp"],
      "env": {
        "AL0_API_KEY": "al0_sk_YOUR_KEY_HERE"
      }
    }
  }
}

Cursor / Windsurf / VS Code

{
  "mcpServers": {
    "agent-layer-0": {
      "command": "npx",
      "args": ["-y", "@agentlayer0/mcp"],
      "env": {
        "AL0_API_KEY": "al0_sk_YOUR_KEY_HERE"
      }
    }
  }
}

Grok / xAI

Since xAI datacenter IPs may be blocked by some CDNs, use the stdio package instead of the HTTP endpoint. Configure your Grok tool-calling setup to spawn this process locally (or on a relay server not affected by IP filtering):

AL0_API_KEY=al0_sk_YOUR_KEY_HERE npx -y @agentlayer0/mcp

LangChain / LangGraph

import { MultiServerMCPClient } from "@langchain/mcp-adapters";

const client = new MultiServerMCPClient({
  mcpServers: {
    "agent-layer-0": {
      transport: "stdio",
      command: "npx",
      args: ["-y", "@agentlayer0/mcp"],
      env: { AL0_API_KEY: process.env.AL0_API_KEY! },
    },
  },
});

const tools = await client.getTools();

Environment variables

| Variable | Required | Default | Description | |---|---|---|---| | AL0_API_KEY | Yes | — | API key from agentlayer0.io/dashboard | | AL0_API_BASE | No | https://agentlayer0.io | Override API base URL |

Example agent session

Agent → al0_register_agent { swarmId: "trading-bot-v1" }
Tool  ← { success: true, swarmId: "trading-bot-v1", registryAppId: "3571865259" }

Agent → al0_create_poll {
          swarmId: "trading-bot-v1",
          question: "Increase max position size from 5% to 10%?",
          options: ["Yes", "No", "Raise to 7.5% instead"],
          expiresAt: 1748300000
        }
Tool  ← { success: true, pollId: 42 }

Agent → al0_vote { pollId: 42, optionIndex: 2 }
Tool  ← { success: true, pollId: 42, optionIndex: 2 }

Agent → al0_get_results { pollId: 42 }
Tool  ← {
          pollId: 42,
          question: "Increase max position size from 5% to 10%?",
          totalVotes: 3,
          options: [
            { index: 0, label: "Yes",               votes: 1 },
            { index: 1, label: "No",                votes: 0 },
            { index: 2, label: "Raise to 7.5%",     votes: 2 }
          ]
        }

License

MIT © Agent Layer 0