Baton
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Baton
CLI toolkit and MCP server for the Tempo blockchain.
Features
126 MCP Tools - Complete blockchain operations accessible via Model Context Protocol
CLI Interface - Command-line interface for all operations
TIP-20 Token Operations - Transfer, approve, mint, burn, and role management
DEX Integration - Swap, limit orders, and price calculations
Account Management - Balances, nonces, fee tokens
Access Key Management - Authorize and revoke access keys
Policy System - Create and manage transfer policies (TIP-403)
Rewards Distribution - Claim and distribute rewards
Testnet Faucet - Fund addresses on testnet
Related MCP server: Nerve RPC MCP
Installation
CLI Usage (Recommended)
Install globally to use the baton command anywhere:
npm install -g @augmnt-sh/batonOr run directly with npx (no installation required):
npx @augmnt-sh/baton <command>Programmatic Usage
Install as a project dependency:
npm install @augmnt-sh/batonFrom Source
git clone https://github.com/augmnt/baton.git
cd baton
npm install
npm run buildQuick Start
The fastest way to get started is using the interactive setup wizard:
baton initThis will guide you through:
Creating a new wallet or importing an existing one
Choosing your network (testnet or mainnet)
Saving your configuration to
.envOptionally funding your wallet from the testnet faucet
Example Setup Flow
$ baton init
██████╗ █████╗ ████████╗ ██████╗ ███╗ ██╗
██╔══██╗██╔══██╗╚══██╔══╝██╔═══██╗████╗ ██║
██████╔╝███████║ ██║ ██║ ██║██╔██╗ ██║
██╔══██╗██╔══██║ ██║ ██║ ██║██║╚██╗██║
██████╔╝██║ ██║ ██║ ╚██████╔╝██║ ╚████║
╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══╝
Welcome to Baton Setup
? How would you like to set up your wallet?
❯ Create a new wallet
Import existing wallet (private key)
Import from mnemonic phrase
? Generate recovery phrase (mnemonic)? Yes
✓ Wallet generated successfully!
Address: 0x742d35Cc6634C0532925a3b844Bc454e4438f44e
Mnemonic: word1 word2 word3 ... word12
⚠️ IMPORTANT: Write down your mnemonic phrase and store it safely!
? Which network would you like to use?
❯ Testnet (recommended for getting started)
Mainnet
? Save configuration to .env file? Yes
✓ Configuration saved to .env
? Fund wallet from testnet faucet? Yes
✓ Funded successfully!
🚀 You're all set!Updating Configuration
To update your configuration later:
# Interactive configuration menu
baton config
# Or use specific commands:
baton config show # View current config
baton config set-key # Update private key (secure input)
baton config set-network # Change networkSecurity Note: The set-key command uses secure password-style input - your private key is never visible on screen or saved to shell history.
Configuration
Environment Variables
Baton uses the following environment variables:
Variable | Required | Description |
| For write ops | Private key for signing transactions |
| No | Custom RPC endpoint (defaults to Tempo testnet) |
| No | Custom block explorer URL |
| No |
|
Configuration Methods
Option 1: MCP Server Config (Recommended for Claude)
Pass environment variables directly when adding the MCP server:
claude mcp add baton -e TEMPO_PRIVATE_KEY=0x... -- npx @augmnt-sh/baton mcpThis is the most secure method as the key is stored in Claude's MCP configuration and not exposed in shell history or environment.
Option 2: Shell Profile
Add to ~/.zshrc or ~/.bashrc:
export TEMPO_PRIVATE_KEY=0x...
export TEMPO_NETWORK=testnetOption 3: .env File
Create a .env file in the working directory:
TEMPO_PRIVATE_KEY=0x...
TEMPO_RPC_URL=https://rpc.moderato.tempo.xyz
TEMPO_NETWORK=testnetNote: For MCP servers, the .env file must be in the directory where Claude is running (your project directory), not the baton installation directory.
CLI Usage
Setup Commands
# Interactive setup wizard (recommended for new users)
baton init
# Configuration management
baton config # Interactive config menu
baton config show # View current configuration
baton config set-key # Update private key (secure input)
baton config set-network # Change network (mainnet/testnet)Wallet Operations
# Generate a new wallet
baton wallet new
# Generate with mnemonic
baton wallet new --mnemonic
# Derive address from private key
baton wallet derive <privateKey>
# Derive from mnemonic
baton wallet from-mnemonic "word1 word2 ..."Account Operations
# Get all balances
baton balances <address>
# Get specific token balance
baton account balance <address> --token <tokenAddress>
# Get account info
baton account info <address>
# Get nonce
baton account nonce <address>Token Operations
# Get token info
baton token info <tokenAddress>
# Transfer tokens
baton token transfer <tokenAddress> <to> <amount>
# Transfer with memo
baton token transfer <tokenAddress> <to> <amount> --memo "Payment for services"
# Approve spender
baton token approve <tokenAddress> <spender> <amount>
# Get allowance
baton token allowance <tokenAddress> <owner> <spender>
# Mint tokens (requires MINTER_ROLE)
baton token mint <tokenAddress> <to> <amount>
# Burn tokens
baton token burn <tokenAddress> <amount>DEX Operations
# Get swap quote
baton dex quote <tokenIn> <tokenOut> <amountIn>
# Execute swap
baton dex swap <tokenIn> <tokenOut> <amountIn>
# Place limit order
baton dex order <token> <amount> <tick> --buy
baton dex order <token> <amount> <tick> --sell
# Cancel order
baton dex cancel <orderId>
# Get order info
baton dex order-info <orderId>
# Price utilities
baton dex price --tick 100
baton dex price --price 1.01Chain Operations
# Get chain info
baton chain info
# Get block number
baton chain block-number
# Get block
baton chain block <blockNumber>
# Get transaction
baton chain tx <txHash>Faucet (Testnet)
# Fund address
baton faucet fund <address>
# Check faucet status
baton faucet status
# Check cooldown
baton faucet cooldown <address>Global Options
# Use testnet
baton --network testnet <command>
# Use custom RPC
baton --rpc https://custom-rpc.example.com <command>
# JSON output
baton <command> -o jsonMCP Server
Starting the Server
baton mcpIntegration with Claude Code
Basic setup (read-only operations):
claude mcp add baton -- npx @augmnt-sh/baton mcpWith private key for write operations:
claude mcp add baton -e TEMPO_PRIVATE_KEY=0x... -- npx @augmnt-sh/baton mcpFor testnet:
claude mcp add baton -e TEMPO_NETWORK=testnet -e TEMPO_PRIVATE_KEY=0x... -- npx @augmnt-sh/baton mcpTo update configuration, remove and re-add:
claude mcp remove baton
claude mcp add baton -e TEMPO_PRIVATE_KEY=0x... -- npx @augmnt-sh/baton mcpUser-level (available in all projects):
claude mcp add -s user baton -e TEMPO_PRIVATE_KEY=0x... -- npx @augmnt-sh/baton mcpIntegration with Claude Desktop
Add the following to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"baton": {
"command": "node",
"args": ["/path/to/baton/dist/src/mcp-server.js"],
"env": {
"TEMPO_NETWORK": "testnet",
"TEMPO_PRIVATE_KEY": "0x..."
}
}
}
}Or if installed globally via npm:
{
"mcpServers": {
"baton": {
"command": "npx",
"args": ["@augmnt-sh/baton", "mcp"],
"env": {
"TEMPO_NETWORK": "testnet"
}
}
}
}Available Tools
The MCP server provides 126 tools organized by domain:
Domain | Tools | Description |
Chain | 5 | Block and transaction queries |
Wallet | 6 | Wallet generation and derivation |
Account | 13 | Balance and account info |
Token | 14 | TIP-20 token operations |
DEX | 10 | Swap and order management |
Fees | 9 | Fee token management |
Fee AMM | 7 | Fee liquidity operations |
Keychain | 11 | Access key management |
Policy | 8 | Transfer policy management |
Rewards | 10 | Rewards distribution |
History | 7 | Transfer history |
Faucet | 8 | Testnet faucet |
Contracts | 8 | Generic contract operations |
Utils | 10 | Utility functions |
Resources
tempo://tokens/known- Known token addressestempo://contracts/addresses- Contract addressestempo://contracts/abis/tip20- TIP-20 ABItempo://config/network- Current network config
Prompts
transfer-tokens- Guided token transfer workflowswap-tokens- Guided swap workflowcheck-account- Complete account overviewnew-wallet- Generate and fund new wallet
Programmatic Usage
import {
generateWallet,
getBalances,
transfer,
getSwapQuote,
swap,
} from '@augmnt-sh/baton'
// Generate wallet
const wallet = generateWallet()
console.log(wallet.address)
// Get balances
const balances = await getBalances('0x...')
// Transfer tokens
const result = await transfer({
token: '0x20c0000000000000000000000000000000000001',
to: '0x...',
amount: 100000000n, // 100 tokens (6 decimals)
})
// Swap tokens
const quote = await getSwapQuote({
tokenIn: '0x20c0000000000000000000000000000000000000',
tokenOut: '0x20c0000000000000000000000000000000000001',
amountIn: 100000000n,
})
const swapResult = await swap({
tokenIn: '0x20c0000000000000000000000000000000000000',
tokenOut: '0x20c0000000000000000000000000000000000001',
amountIn: 100000000n,
})Key Concepts
6 Decimal Places
All TIP-20 tokens use 6 decimal places. Amounts in the CLI are human-readable:
# Transfer 100.5 tokens
baton token transfer <token> <to> 100.5In code, use the smallest unit:
import { parseAmount, formatAmount } from '@augmnt-sh/baton'
const amount = parseAmount('100.5') // 100500000n
const formatted = formatAmount(100500000n) // "100.5"Memo Encoding
Memos are encoded as bytes32:
# String memo (max 31 chars)
baton token transfer <token> <to> 100 --memo "Payment"
# Or hex bytes32
baton token transfer <token> <to> 100 --memo "0x..."Tick Pricing
DEX prices use tick values:
import { priceToTick, tickToPrice } from '@augmnt-sh/baton'
const tick = priceToTick(1.0001) // Get tick for price
const price = tickToPrice(100) // Get price from tickKnown Tokens
Token | Address |
pathUSD |
|
AlphaUSD |
|
BetaUSD |
|
ThetaUSD |
|
Contract Addresses
Contract | Address |
TIP20_FACTORY |
|
STABLECOIN_DEX |
|
FEE_MANAGER |
|
ACCOUNT_KEYCHAIN |
|
FEE_AMM |
|
POLICY_REGISTRY |
|
MULTICALL3 |
|
Security
Never share your private key
Private keys are read from
TEMPO_PRIVATE_KEYenvironment variableKeys are never logged or stored
Use access keys for delegated permissions
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Warden MCP lets AI agents find tokens, quote swaps and trade onchain on Base, BNB Chain, Robinhood Chain, Arc and Solana, within limits you set. Market tools need no credential: list_chains, search_tokens, trending_tokens, price_history, quote_swap and swap_status. Search by name, ticker or contract address, read USD price candles, and price a swap before committing to it, including cross-chain swaps. Wallet tools act for the wallet whose owner connected the agent, by OAuth sign-in or a wk_ key. agent_permissions shows what the agent may do and its daily limits. prepare_swap builds a trade and hands the owner a review link to sign. With request_session the owner turns on hands-free trading in one tap, and execute_swap then trades within the limits they set. swap_status tracks gasless and cross-chain trades. get_wallet shows holdings on every chain. Gasless trading is available on Base, BNB Chain and Robinhood Chain. Built by Warden Protocol, the team behind Warden Token Terminal.
ChainRay provides multi-chain blockchain data and intelligence for AI agents through 79 MCP tools across 57 supported networks, covering gas, chain data, wallets, DeFi, market, security, monitoring, and verifiable proofs. MCP access is available at https://mcp.chainray.online/mcp; paid HTTP capabilities settle via x402 on Base.
17 pay-per-call web, finance, legal and onchain tools for AI agents. USDC on Base via x402/MPP.
214 tools for AI agents over one MCP endpoint: image, video, audio, 3D, data, storage, mail, GPUs.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI-powered chat and DeFi operations (swap, transfer) via MCP-compliant tools, integrating with LLMs for onchain actions.11 npmMIT
- FlicenseNot gradedqualityDmaintenanceExposes Nerve blockchain JSON-RPC and REST APIs as MCP tools, enabling AI agents to receive, pay, swap, and query balances with local account management and no gas fees.1-
- AlicenseNot gradedqualityCmaintenanceExposes 20 deterministic tools for finance, data, content, and lifestyle tasks via MCP, A2A, and REST interfaces, enabling automation and multi-agent workflows.MIT

OurPay Walletofficial
AlicenseNot gradedqualityBmaintenanceEnables AI agents and users to access an account-owned crypto wallet via MCP, providing tools for balances, transfers, swaps, bridging, merchant checkout, policy-constrained contract calls, signing, app connections, and Hyperliquid spot/perpetual orders.Apache 2.0