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

@tallyforagents/mcp-server

v0.2.0

Published

MCP server for Tally — give any MCP-aware AI agent (Claude Desktop, Cursor, Hermes, Cline) a USDC wallet with scoped spending permissions.

Downloads

435

Readme

@tallyforagents/mcp-server

MCP server for Tally — give any MCP-aware AI agent (Claude Desktop, Cursor, Hermes, Cline, Goose) a USDC wallet with scoped spending permissions.

Once configured, the agent gets four new tools:

| Tool | What it does | |---|---| | pay_x402_service | Call any HTTP URL; auto-pay via Tally if it returns 402. | | pay_direct | Send USDC to a known address. | | list_recent_payments | Inspect the agent's transaction history. | | get_wallet_info | Discover wallets, balances, and per-tx/daily caps. |

The agent doesn't need code changes. Just config.

Authentication: OAuth or API key

The server takes one credential:

  • TALLY_ACCESS_TOKEN — an OAuth access token. Hosts that support OAuth 2.1 (e.g. Hermes) run the connect flow for you and inject this — no secret in config, and you can switch workspaces without editing files. See OAuth setup (hermes mcp auth tally).
  • TALLY_API_KEY — a static tly_test_… / tly_live_… key. Works on every host. The setup below uses this path.

If both are set, the access token wins.

Setup (API key)

1. Get a Tally API key

Sign in at app.tallyforagents.com, fund your wallet, then create an API key (Dashboard → API keys → Create). Copy the tly_test_… plaintext.

2. Add the server to your MCP client config

Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "tally": {
      "command": "npx",
      "args": ["-y", "@tallyforagents/mcp-server"],
      "env": {
        "TALLY_API_KEY": "tly_test_..."
      }
    }
  }
}

Hermes (~/.hermes/config.yaml):

mcp_servers:
  tally:
    command: "npx"
    args: ["-y", "@tallyforagents/mcp-server"]
    env:
      TALLY_API_KEY: "tly_test_..."

Cursor, Cline, Goose, other MCP clients: same shape — command: npx, args: ["-y", "@tallyforagents/mcp-server"], env.TALLY_API_KEY.

3. Restart your MCP client

On first launch the server auto-creates a Tally agent called mcp-default. The agent starts with no permissions — the LLM has the tools but every payment will fail until you grant it a wallet.

4. Grant the agent a wallet permission

Ask the agent: "What wallets can you spend from?" — it'll call get_wallet_info, see no permissions, and return the dashboard URL. Open that URL, click Grant permission, pick your wallet, accept the default caps ($10/tx, $100/day), and approve via passkey.

Restart the MCP client one more time so the server re-fetches the agent. Now the agent can pay.

Configuration

| Env var | Required | Default | Notes | |---|---|---|---| | TALLY_ACCESS_TOKEN | one of | — | tly_oat_… OAuth access token (usually injected by the host's OAuth flow). Workspace/agent are bound to the token; resolved via GET /v1/me. | | TALLY_API_KEY | one of | — | tly_test_… or tly_live_… static key. | | TALLY_AGENT_ID | no | mcp-default | Overrides the token-bound agent (OAuth) or names the agent (API key). When set, the agent must already exist (unless mcp-default). | | TALLY_BASE_URL | no | https://app.tallyforagents.com | Override for local dev. |

How it works

The server is a local stdio process the MCP host launches as a subprocess. Your credential never leaves your machine — with OAuth, the host keeps the tokens and injects only TALLY_ACCESS_TOKEN. The server holds an in-memory cache of the agent's wallets — restart the MCP host to pick up new permission grants. Secrets are scrubbed from the server's stderr logs.

Payments go through the full Tally enforcement stack: server-side policy check, then Privy enclave verification. If the LLM tries to overspend, the call fails with a typed error and the LLM can react.

Links

License

MIT