NextGen Token
v1.7.4Each call spends real NGT or USDC from a wallet you fund, within caps and a session budget.
Values you need
| Variable | What it is | |
|---|---|---|
NGT_AGENT_PRIVATE_KEY | required secret | Wallet key that signs NGT payments. Use a dedicated wallet. |
NGT_MAX_PRICE | optional | Most one call may pay, in NGT. Default 0.01. |
NGT_SESSION_BUDGET | optional | Most pay_and_fetch may spend per server session, in NGT. Default 0.1. |
NGT_USDC_MAX_PRICE | optional | Most one call may pay, in USDC on Base. Default 0, which keeps USDC off. |
NGT_USDC_SESSION_BUDGET | optional | Most pay_and_fetch may spend per server session, in USDC, separate from the NGT budget. Default 0, which keeps USDC off. |
NGT_PREFERRED_CURRENCY | optional | Token to pay when a seller takes both NGT and USDC: NGT or USDC. Default NGT. |
NGT_MAX_FUNDING | optional | Most one fund_agent_wallet request may ask the user's browser wallet to send, in NGT. Default 10. |
NGT_HOST_HEADERS | optional secret | Headers sent to one host only, as JSON, e.g. {"api.example.com":{"x-api-key":"..."}}. The model never sees them. |
NGT_HOME | optional | Folder for the local activity log and the pause flag. Default ~/.ngtchain. |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add ngtchain -e 'NGT_AGENT_PRIVATE_KEY=<NGT_AGENT_PRIVATE_KEY>' -- npx -y --package=@ngtchain/mcp@1.7.4 ngt-mcpAdd to
claude_desktop_config.json{
"mcpServers": {
"ngtchain": {
"args": [
"-y",
"--package=@ngtchain/mcp@1.7.4",
"ngt-mcp"
],
"command": "npx",
"env": {
"NGT_AGENT_PRIVATE_KEY": "<NGT_AGENT_PRIVATE_KEY>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"ngtchain": {
"args": [
"-y",
"--package=@ngtchain/mcp@1.7.4",
"ngt-mcp"
],
"command": "npx",
"env": {
"NGT_AGENT_PRIVATE_KEY": "<NGT_AGENT_PRIVATE_KEY>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "NGT_AGENT_PRIVATE_KEY",
"id": "ngt-agent-private-key",
"password": true,
"type": "promptString"
}
],
"servers": {
"ngtchain": {
"args": [
"-y",
"--package=@ngtchain/mcp@1.7.4",
"ngt-mcp"
],
"command": "npx",
"env": {
"NGT_AGENT_PRIVATE_KEY": "${input:ngt-agent-private-key}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.ngtchain]
command = "npx"
args = ["-y", "--package=@ngtchain/mcp@1.7.4", "ngt-mcp"]
env = { "NGT_AGENT_PRIVATE_KEY" = "<NGT_AGENT_PRIVATE_KEY>" }For AI agents
- Ask the user for: NGT_AGENT_PRIVATE_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: fetch_ngt_stream, pay_and_fetch, ngt_wallet_status, fund_agent_wallet.
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json