# NextGen Token

> NextGen Token is an open-source MCP server for finance and payments. MCP server that pays x402 APIs per call in NGT on Base, with spending caps set locally. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API
- **Website:** https://www.ngtchain.com
- **Repository:** https://github.com/har50/new-network/tree/HEAD/packages/ngtchain-mcp
- **MCP Registry name:** io.github.Har50/ngtchain
- **Categories:** finance and payments
- **Listing updated:** 2026-11-14

## About

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.

## Features

- **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

## Install

### Claude Code (Terminal)

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

### Claude Desktop (claude_desktop_config.json)

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

### Cursor (~/.cursor/mcp.json)

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

### VS Code (.vscode/mcp.json)

```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>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

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

### Other clients (your client's MCP settings (most use this shape))

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

## Tools

- `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

## 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

- [Solana MCP by Vybe](https://ai-powered.com/mcp/solana-mcp-by-vybe): Solana MCP by Vybe is an MCP server for finance and payments.
- [Tapetide - Indian Stock Market MCP](https://ai-powered.com/mcp/tapetide-indian-stock-market-mcp): Tapetide - Indian Stock Market MCP is a freemium MCP server for finance and payments.
- [Budget Tracker](https://ai-powered.com/mcp/budget-tracker-2): Budget Tracker is a freemium MCP server for finance and payments.
- [Quantivex Research](https://ai-powered.com/mcp/quantivex-research): Quantivex Research is a free MCP server for finance and payments.
- [Provyan](https://ai-powered.com/mcp/provyan): Provyan is a free MCP server for finance and payments.
- [TribuJus](https://ai-powered.com/mcp/tribujus): TribuJus is an open-source MCP server for legal and government.
- [L2WS](https://ai-powered.com/mcp/l2ws): L2WS is a paid MCP server for finance and payments.
- [Invoices](https://ai-powered.com/mcp/invoices): Invoices is a paid MCP server for files and documents.

---
Source: https://ai-powered.com/mcp/nextgen-token
