Skip to content
MCP server

NextGen Token

MCP server that pays x402 APIs per call in NGT on Base, with spending caps set locally

Runs locallyStatus and history
Pricing
Open source
Platforms
CLI, API
Runs
Locally
Version
1.7.0
Listing updated
3 days ago

About NextGen Token

NextGen Token is an open-source MCP server for finance and payments. It runs locally on your machine and is started by your AI client.

Agents hitting a paywalled API get an HTTP 402 with a price and payee; this server checks that price against your limits and, if it fits, signs a payment locally and retries. Limits are enforced in code rather than in the prompt: NGT_MAX_PRICE (default 0.01 NGT) per call and NGT_SESSION_BUDGET (default 0.1 NGT) per session, with USDC switched off by default. A refused call is shown in the site's example: 0.05 NGT against a 0.005 cap.

The private key sits in an environment variable and is never a tool argument; the docs advise using a dedicated wallet. NGT_HOST_HEADERS can add per-host headers the model never sees. Three tools exist: pay_and_fetch, ngt_wallet_status and fund_agent_wallet. An init command can set up Cursor, Claude Desktop, Claude Code, Gemini CLI or Codex.

The site is candid about status: early stage, NGT has no market yet and paid checkout is paused.

Install

Run in a terminal

claude mcp add ngtchain --env NGT_AGENT_PRIVATE_KEY='<NGT_AGENT_PRIVATE_KEY>' --env NGT_HOST_HEADERS='<NGT_HOST_HEADERS>' -- npx -y @ngtchain/mcp

Add to claude_desktop_config.json

{
  "mcpServers": {
    "ngtchain": {
      "command": "npx",
      "args": [
        "-y",
        "@ngtchain/mcp"
      ],
      "env": {
        "NGT_AGENT_PRIVATE_KEY": "<NGT_AGENT_PRIVATE_KEY>",
        "NGT_HOST_HEADERS": "<NGT_HOST_HEADERS>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "ngtchain": {
      "command": "npx",
      "args": [
        "-y",
        "@ngtchain/mcp"
      ],
      "env": {
        "NGT_AGENT_PRIVATE_KEY": "<NGT_AGENT_PRIVATE_KEY>",
        "NGT_HOST_HEADERS": "<NGT_HOST_HEADERS>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "ngtchain": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@ngtchain/mcp"
      ],
      "env": {
        "NGT_AGENT_PRIVATE_KEY": "<NGT_AGENT_PRIVATE_KEY>",
        "NGT_HOST_HEADERS": "<NGT_HOST_HEADERS>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "ngtchain": {
      "command": "npx",
      "args": [
        "-y",
        "@ngtchain/mcp"
      ],
      "env": {
        "NGT_AGENT_PRIVATE_KEY": "<NGT_AGENT_PRIVATE_KEY>",
        "NGT_HOST_HEADERS": "<NGT_HOST_HEADERS>"
      }
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "ngtchain": {
      "command": "npx",
      "args": [
        "-y",
        "@ngtchain/mcp"
      ],
      "env": {
        "NGT_AGENT_PRIVATE_KEY": "<NGT_AGENT_PRIVATE_KEY>",
        "NGT_HOST_HEADERS": "<NGT_HOST_HEADERS>"
      }
    }
  }
}

Configuration

  • NGT_AGENT_PRIVATE_KEYWallet key that signs NGT payments. Use a dedicated wallet.Required
  • NGT_MAX_PRICEMost one call may pay, in NGT. Default 0.01.
  • NGT_SESSION_BUDGETMost pay_and_fetch may spend per server session, in NGT. Default 0.1.
  • NGT_USDC_MAX_PRICEMost one call may pay, in USDC on Base. Default 0, which keeps USDC off.
  • NGT_USDC_SESSION_BUDGETMost pay_and_fetch may spend per server session, in USDC, separate from the NGT budget. Default 0, which keeps USDC off.
  • NGT_PREFERRED_CURRENCYToken to pay when a seller takes both NGT and USDC: NGT or USDC. Default NGT.
  • NGT_MAX_FUNDINGMost one fund_agent_wallet request may ask the user's browser wallet to send, in NGT. Default 10.
  • NGT_HOST_HEADERSHeaders sent to one host only, as JSON, e.g. {"api.example.com":{"x-api-key":"..."}}. The model never sees them.
  • NGT_HOMEFolder for the local activity log and the pause flag. Default ~/.ngtchain.

Tools this server provides (3)

Taken from the project documentation; the running server may differ.

pay_and_fetch
Fetches a paywalled URL, paying within caps
ngt_wallet_status
Reports the agent wallet status
fund_agent_wallet
Asks a browser wallet to top up the agent wallet

What it does

Local signing
Payments are signed on your machine, and the key is not a tool argument.
Hard spending caps
Per-call and per-session budgets refuse payments before any signature.
No ETH needed
The facilitator pays gas on Base.
Per-host headers
Secret headers go to one host only, hidden from the model.
Guided setup
An init command configures several clients and can fund the wallet.

Good for

  • Call a pay-per-use API from an agent with a capped budget
  • Check the agent wallet balance
  • Top up the wallet from a browser wallet
  • Test a seller's 402 paywall

Pricing

Open source

Open source; each paid call spends NGT

Prices change. Check ngtchain.com before you buy.

NextGen Token FAQ

Which chain?

Base.

Can it overspend?

Prices above the configured caps are refused before signing.

Does it need a signup?

No signup or API key; payment proof travels in the request.

What is the project status?

Early stage; NGT has no market and paid checkout is paused.

Is NextGen Token free?

Yes. NextGen Token is open source, so you can use and self-host it for free.

How do I add NextGen Token to Claude Code?

Run this command in your terminal: claude mcp add ngtchain --env NGT_AGENT_PRIVATE_KEY='<NGT_AGENT_PRIVATE_KEY>' --env NGT_HOST_HEADERS='<NGT_HOST_HEADERS>' -- npx -y @ngtchain/mcp

What are the best alternatives to NextGen Token?

The closest alternatives to NextGen Token are Solana MCP by Vybe, Tapetide - Indian Stock Market MCP, Budget Tracker, Quantivex Research and Provyan.

Alternatives to NextGen Token

  1. Remote MCP server exposing the Vybe Solana API to AI clients and code editors

    • 44 tools
    • Remote
    • 2.8K GitHub stars
    • Finance and payments
  2. Indian NSE and BSE stock market data for AI assistants through 48 MCP tools

    • 17 tools
    • Remote
    • Freemium
    • 150 GitHub stars
    • Finance and payments
  3. Budget Tracker

    MCP server

    Local MCP expense ledger that logs receipts and mileage, splits VAT and prepares rebilling

    • 14 tools
    • Remote
    • Freemium
    • 2 GitHub stars
    • Finance and payments
  4. Stock scores, what a price assumes, earnings quality and quiet profit revisions

    • 11 tools
    • Remote
    • Free
    • Finance and payments
  5. Provyan

    MCP server

    Backtested crypto signal results on 94 coins, with luck odds and sources

    • 4 tools
    • Remote
    • Free
    • Finance and payments
  6. TribuJus

    MCP server

    Read-only access to UK bank accounts, cards and transactions via TrueLayer Open Banking

    Not checked yet
    • 5 tools
    • Remote
    • Open source
    • Legal and government