Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
TOKEN4U_API_URLNotoken4u API base URLhttps://token4u.ai
TOKEN4U_DATA_DIRNoDirectory for wallet key and session storage~/.token4u-mcp
TOKEN4U_WALLET_KEYNoLocal wallet private key (takes priority over file)
TOKEN4U_BUDGET_LIMITNoMax USD budget for LLM calls

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
token4u_walletA

Manage local x402 wallet — create keypair, check status, and get funding guidance.

This is a pure external x402 mode: the MCP server manages a local wallet (~/.token4u-mcp/wallet.json, 0o600). All payments go through on-chain x402 USDC transactions on Base network. No token4u account or internal wallet required.

Actions:

  • status (default): Show local wallet address and whether it is newly created.

  • create: Generate a new local wallet keypair or load an existing one. The private key is stored at ~/.token4u-mcp/wallet.json with 0o600 permissions and never leaves this machine.

  • setup: Show step-by-step funding instructions — how to send USDC on Base to your local wallet address, and how to export the private key for self-custody.

token4u_chatA

Chat with AI models via token4u using x402 micropayments (USDC on Base). Each call is priced per-model and paid via an EIP-3009 authorization from your local wallet. Requires a wallet — run token4u_wallet action=create first.

token4u_consumptionA

Query x402 consumption records for a given EVM wallet address. Public API — no login required. Returns per-call records with model, token usage, credits, amount paid in USD, transaction hash, and timestamp.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Token4uAi/token4u-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server