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

@theyahia/chapa-mcp

v1.1.0

Published

MCP server for Chapa (Ethiopia) — 8 tools for payment initialization, verification, transfers, banks, balance.

Readme

@theyahia/chapa-mcp

MCP server for Chapa (Ethiopia) — payment initialization, verification, transfers, banks, balance. 8 tools. Bearer auth. Stdio + Streamable HTTP transports.

npm License: MIT


Tools (8)

Payments

| Tool | Description | |------|-------------| | initialize_transaction | Start a Chapa payment. Returns a checkout URL for the customer. | | verify_transaction | Verify by tx_ref — returns status, amount, customer info, payment method. | | list_transactions | List recent transactions with pagination + status filter. |

Transfers (payouts)

| Tool | Description | |------|-------------| | list_banks | List supported Ethiopian banks (need bank_code for transfer). | | transfer | Initiate a payout to a bank account. | | verify_transfer | Check transfer status by reference. | | list_transfers | List recent transfers. |

Account

| Tool | Description | |------|-------------| | get_balance | Get current wallet balance (ETB and other supported currencies). |


Quick Start

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "chapa": {
      "command": "npx",
      "args": ["-y", "@theyahia/chapa-mcp"],
      "env": {
        "CHAPA_SECRET_KEY": "CHASECK_TEST-XXXXXXXX"
      }
    }
  }
}

For testing use a CHASECK_TEST-... key; for production use a CHASECK-... key.

Cursor / Windsurf

Same configuration block under mcpServers.

VS Code (Copilot)

Add to .vscode/mcp.json:

{
  "servers": {
    "chapa": {
      "command": "npx",
      "args": ["-y", "@theyahia/chapa-mcp"],
      "env": { "CHAPA_SECRET_KEY": "your_key" }
    }
  }
}

Streamable HTTP transport

HTTP_PORT=3000 CHAPA_SECRET_KEY=your_key npx @theyahia/chapa-mcp

Endpoints:

  • POST /mcp — MCP requests
  • GET /mcp — SSE event stream (per session)
  • DELETE /mcp — session termination
  • GET /health{ status: "ok", version, tools, uptime, memory_mb }

Environment Variables

| Variable | Required | Description | |----------|----------|-------------| | CHAPA_SECRET_KEY | yes | Bearer secret key. Test: CHASECK_TEST-..., live: CHASECK-.... | | HTTP_PORT | no | If set, server runs in HTTP mode on this port. |


Authentication

  1. Sign up at dashboard.chapa.co.
  2. Go to Settings → API Keys and copy the secret key.
  3. Use a CHASECK_TEST-... key during development; switch to CHASECK-... for production.
  4. The same code path works for both — only the env value changes.

Docs: developer.chapa.co


Demo Prompts

Try these natural-language prompts in your MCP client:

"Initialize a Chapa transaction for 250 ETB, customer [email protected], first name Abel, last name Bekele, tx_ref ORDER-001, redirect to https://mystore.com/thanks."

"Verify transaction ORDER-001 — what's the status?"

"List Ethiopian banks — I need bank codes for ETB transfers."

"Transfer 1000 ETB to account 1000287654321 (account name 'Awash Bank Customer'), bank_code AWSCT, reference PAYOUT-001."

"What's my Chapa wallet balance right now?"

"Show me the last 50 successful transactions."

"List transfers from this week."


Development

pnpm install
pnpm --filter @theyahia/chapa-mcp build
pnpm --filter @theyahia/chapa-mcp test
pnpm --filter @theyahia/chapa-mcp dev   # tsx watch mode

Project layout:

servers/chapa/
├── src/
│   ├── index.ts          — bin entry, runServer
│   ├── server.ts         — createServer factory + 8 tools
│   └── client.ts         — BaseHttpClient + ApiKeyStrategy + chapaGet/chapaPost
└── tests/
    ├── client.test.ts    — auth headers + body shape + missing-key error
    └── server.test.ts    — createServer factory smoke

License

MIT — see LICENSE.