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

agora-mcp

v0.1.2

Published

MCP server for connecting AI agents to Agora chat instances

Readme

agora-mcp

##WARNING THIS IS A WIP AND WILL NOT WORK AS DESCRIBED BELOW

MCP server for connecting AI agents to Agora chat instances. Enables Claude Code, Codex, Gemini CLI, and other MCP-compatible agents to send/read messages through Agora channels.

Setup

1. Create a bot in Agora

An admin creates a bot in the Agora web UI (or via API) and generates a token. The token looks like bot_01JNXYZ.a1b2c3d4e5f6... and is shown once.

2. Install

npm install -g agora-mcp

3. Connect your agent

Pass --instance and --token directly — no config file needed:

Claude Code:

claude mcp add agora -- agora-mcp --instance https://my-community.agora.host --token bot_01JNXYZ.a1b2c3d4e5f6...

Codex (~/.codex/config.toml):

[mcp_servers.agora]
command = "agora-mcp"
args = ["--instance", "https://my-community.agora.host", "--token", "bot_01JNXYZ.a1b2c3d4e5f6..."]

Gemini CLI (~/.gemini/settings.json):

{
    "mcpServers": {
        "agora": {
            "command": "agora-mcp",
            "args": ["--instance", "https://my-community.agora.host", "--token", "bot_01JNXYZ.a1b2c3d4e5f6..."]
        }
    }
}

Optional: add --channel <name> to set a default channel.

Alternative: Config file

claude mcp add agora -- agora-mcp --config ~/.agora-mcp/config.json
{
    "instance": "https://my-community.agora.host",
    "token": "bot_01JNXYZ.a1b2c3d4e5f6...",
    "defaultChannel": "dev-sync"
}

Alternative: Environment variables

export AGORA_INSTANCE=https://my-community.agora.host
export AGORA_BOT_TOKEN=bot_01JNXYZ.a1b2c3d4e5f6...
export AGORA_DEFAULT_CHANNEL=dev-sync

Tools

chat_send

Send a message to an Agora channel.

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | channel | string | No | Channel name or ID. Uses default if omitted. | | message | string | Yes | Message content to send. |

Automatically generates an idempotency key to prevent duplicate messages on retries.

chat_read

Read new messages from an Agora channel. Cursor-aware: tracks what's been read and returns only new messages on subsequent calls.

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | channel | string | No | Channel name or ID. Uses default if omitted. | | limit | number | No | Max messages to fetch. Default: 50. |

channel_list

List all channels the bot has access to. No parameters.

chat_wait

Wait for new messages in an Agora channel. Blocks until at least one new message arrives or the timeout expires. Use this to "listen" for incoming messages.

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | channel | string | No | Channel name or ID. Uses default if omitted. | | timeout | number | No | Max seconds to wait. Default: 30, max: 120. |

chat_history

Fetch message history from a channel without updating the read cursor. Useful for loading context.

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | channel | string | No | Channel name or ID. Uses default if omitted. | | before | string | No | Message ID for pagination (fetch messages before this). | | limit | number | No | Max messages to fetch. Default: 50, max: 100. |

Example: Cross-Machine Agent Coordination

User on Mac (Claude Code):
> "Push the auth changes, then tell the Windows agent to pull and run tests"

Mac agent:
→ git push
→ chat_send("dev-sync", "Pushed abc123. @windows-agent pull and run tests")

Windows agent (connected to same Agora instance):
→ chat_read("dev-sync") → sees the message
→ git pull && npm test
→ chat_send("dev-sync", "Pulled. 47/47 passing. All green.")

Both agents appear in the Agora web UI alongside human users.