W3ledger MCP Server

Communauté Finance et paiements

Self-verifying ledger with dual-signed transactions, gift and sponsor cards and loyalty tiers, using EVM or post-quantum (ML-DSA-65, SLH-DSA) signatures.

Installation

Les étapes d'installation sont dans la documentation ci-dessous. Documentation

Documentation

Tirée du README du projet sur GitHub, actualisée chaque semaine. Les liens ouvrent GitHub.

Sommaire
  1. W3Ledger MCP Server
  2. ⚡ Quick Start
  3. 🛠️ Tools (6 total)
  4. 🔐 Security Model
  5. ⚙️ Configuration
  6. 💡 Example Conversation
  7. 🏆 W3SH Loyalty Tiers
  8. 🔗 Links
  9. 📄 License

W3Ledger MCP Server

A self-verifying ledger for AI agents — every transaction is cryptographically signed and chain-linked.

W3Ledger (Rolledge) is an MCP (Model Context Protocol) server that gives AI agents the ability to check token balances, create and claim gift cards, create and claim sponsor cards, and process dual-signed purchases — all secured by cryptographic signatures.

Every write operation requires dual signatures (sender + receiver/distribution). The server-side Lambda functions verify all signatures and enforce chain continuity. The MCP server is a thin HTTP client — it cannot bypass security.


⚡ Quick Start

No installation required — just configure your AI client:

Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "w3ledger": {
      "command": "npx",
      "args": ["-y", "w3ledger-mcp-server"]
    }
  }
}

Cursor (.cursor/mcp.json):

{
  "mcpServers": {
    "w3ledger": {
      "command": "npx",
      "args": ["-y", "w3ledger-mcp-server"]
    }
  }
}

VS Code (.vscode/mcp.json):

{
  "servers": {
    "w3ledger": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "w3ledger-mcp-server"]
    }
  }
}
Prerequisites
  • Node.js 18+
  • No external database or cloud credentials required — the server connects to the W3Ledger API

🛠️ Tools (6 total)

🟢 Read (Safe)
ToolDescription
check_balanceCheck DAH, DAHYM, DAHLOR, and W3SH token balances for a public key. Includes loyalty tier (Seed → Joist) with cashback rates.
🟡 Write (Requires Dual Signatures)
ToolDescription
create_gift_cardCreate a gift card by debiting the customer's DAH balance. Requires customer signature + distribution co-signature.
claim_gift_cardClaim an ISSUED gift card and credit the claimer's DAH balance.
create_sponsor_cardCreate a location-based sponsor card with GPS coordinates. Requires dual signatures.
claim_sponsor_cardClaim an ISSUED sponsor card near the sponsor's location.
purchase_productPurchase a product by debiting sender and crediting receiver (merchant). Requires sender + receiver dual signatures.
❌ Excluded (Intentionally)
ToolReason
fund_accountUses server-side distribution keys. Too dangerous for MCP — could credit arbitrary accounts.

🔐 Security Model

W3Ledger implements a self-verifying chain — every transaction is cryptographically linked to the previous one:

┌──────────────────────────────────────────────────────────┐
│  AI Agent (Claude / Cursor / VS Code)                    │
│  "Purchase a VR session for 35 DAH"                      │
└──────────────────┬───────────────────────────────────────┘
                   │ MCP Protocol (stdio)
┌──────────────────▼───────────────────────────────────────┐
│  W3Ledger MCP Server (thin HTTP client)                  │
│  • Forwards tool calls to API Gateway                    │
│  • Does NOT verify signatures (server does)              │
│  • Does NOT access database directly                     │
│  • Equivalent security to curl                           │
└──────────────────┬───────────────────────────────────────┘
                   │ HTTPS
┌──────────────────▼───────────────────────────────────────┐
│  API Gateway → Lambda Functions (server-side)            │
│                                                          │
│  ✅ Validates both signatures (sender + receiver)        │
│  ✅ Verifies chain continuity (prev_balance linkage)     │
│  ✅ Verifies previous transaction's signature            │
│  ✅ Checks balance sufficiency                           │
│  ✅ Enforces timestamp window (5 min)                    │
│  ✅ Atomic DynamoDB transactWrite (all-or-nothing)       │
└──────────────────────────────────────────────────────────┘
Supported Signature Schemes
SchemeUse Case
EVM (secp256k1)Ethereum/MetaMask wallets (personal_sign)
Ed25519 (Curve25519)Solana, Cardano, Stellar, NEAR, Algorand, Aptos, Cosmos, TON wallets
ML-DSA-65Post-quantum signatures (NIST standard)
SLH-DSAStateless hash-based post-quantum signatures

⚙️ Configuration

Environment Variables
VariableRequiredDefaultDescription
ROLLEDGE_API_URLNoW3Ledger APIBase URL for the Rolledge API Gateway
ROLLEDGE_API_KEYNo—Optional API key for authenticated access
MCP_LOG_LEVELNoinfoLogging level: debug, info, warn, error
Verify Installation

List all available tools:

npx w3ledger-mcp-server --list-tools

💡 Example Conversation

You:    "Check my balance"
Claude: [calls check_balance with your public key]
        "Your DAH balance is 1,250.00
         W3SH: 520 (Kindling tier — 10% cashback)
         DAHLOR: 0  |  DAHYM: 0"

You:    "Send a 100 DAH gift card to my friend for coffee"
Claude: [calls create_gift_card — requires your signature]
        "Please sign this transaction with your wallet..."
        [after dual signing]
        "Gift card GC-x8k2 created! Value: 100 DAH
         Your new balance: 1,150.00 DAH"

You:    "Buy a VR session for 35 DAH"
Claude: [calls purchase_product — requires sender + receiver signatures]
        "Transaction confirmed! Order #VR-2026-001
         Spent: 35 DAH  |  New balance: 1,115.00 DAH
         🏅 Cashback: 3.50 W3SH earned (Kindling tier, 10%)"

🏆 W3SH Loyalty Tiers

Purchases automatically earn W3SH cashback based on your tier:

TierW3SH RequiredCashback Rate
🌱 Seed00%
🌿 Twig1005%
🔥 Kindling50010%
🪵 Log2,00015%
🏗️ Joist10,00020%


📄 License

MIT — see LICENSE

Questions fréquentes

Qu'est-ce que W3ledger MCP Server ?

Self-verifying ledger with dual-signed transactions, gift and sponsor cards and loyalty tiers, using EVM or post-quantum (ML-DSA-65, SLH-DSA) signatures.

Comment installer W3ledger MCP Server ?

Suivez les étapes d'installation de sa documentation, affichée sur cette page et dans son dépôt.

W3ledger MCP Server est-il open source ?

Oui. Son code est sur GitHub sous licence MIT.

Qui maintient W3ledger MCP Server ?

Il est publié par baskcart. AI.tn le référence sans le maintenir ni le recommander.

Issu des listes communautaires awesome-mcp-servers et du dépôt GitHub du projet. Être listé n'est pas une recommandation : vérifiez le code et les permissions d'un serveur avant de lui donner accès à vos données.