MACH Base
17 Base data tools for agents over Streamable HTTP MCP. Pay per call in USDC via x402; no API key.
我該用這個嗎
品質與安全性
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"mach-base": {
"url": "https://api.mach.gallery/mcp"
}
}
}遠端端點
https://api.mach.gallery/mcpstreamable-http它能做什麼
工具清單
工具(18)
🟢mach_choose(goal)
Free decision layer: map an agent goal to the narrowest paid MACH Base capability, exact price, expected result fields and exact next request. Returns no live chain data and has no side effects.
輸入結構描述
{
"type": "object",
"properties": {
"goal": {
"type": "string",
"minLength": 1,
"maxLength": 500,
"description": "The job or outcome the agent needs from Base mainnet."
}
},
"required": [
"goal"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢base_block_number
Get the current Base mainnet block number (latest chain height) for an autonomous agent. Costs $0.005 USDC via x402.
輸入結構描述
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢base_gas_price
Get the current gas price on Base mainnet in wei for transaction fee estimation. Costs $0.005 USDC via x402.
輸入結構描述
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢base_wallet_balance(address)
Check the native ETH balance of a wallet or address on Base mainnet. Costs $0.005 USDC via x402.
輸入結構描述
{
"type": "object",
"properties": {
"address": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$",
"description": "20-byte 0x-prefixed EVM address on Base mainnet."
}
},
"required": [
"address"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢base_erc20_balance(token, address)
Check a USDC or other ERC-20 token balance for a wallet on Base mainnet. Costs $0.005 USDC via x402.
輸入結構描述
{
"type": "object",
"properties": {
"token": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$",
"description": "20-byte 0x-prefixed EVM address on Base mainnet."
},
"address": {
"$ref": "#/properties/token"
}
},
"required": [
"token",
"address"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢base_nonce(address)
Get the current transaction nonce for a Base wallet before broadcasting a transaction. Costs $0.005 USDC via x402.
輸入結構描述
{
"type": "object",
"properties": {
"address": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$",
"description": "20-byte 0x-prefixed EVM address on Base mainnet."
}
},
"required": [
"address"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢base_contract_code(address)
Check whether an address is a smart contract or EOA on Base mainnet by reading deployed bytecode. Costs $0.005 USDC via x402.
輸入結構描述
{
"type": "object",
"properties": {
"address": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$",
"description": "20-byte 0x-prefixed EVM address on Base mainnet."
}
},
"required": [
"address"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢base_allowance(token, owner, spender)
Check an ERC-20 token allowance on Base for an owner and spender. Costs $0.005 USDC via x402.
輸入結構描述
{
"type": "object",
"properties": {
"token": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$",
"description": "ERC-20 or token contract address on Base mainnet."
},
"owner": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$",
"description": "ERC-20 token owner address on Base mainnet."
},
"spender": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$",
"description": "ERC-20 spender address whose allowance is being checked."
}
},
"required": [
"token",
"owner",
"spender"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢base_receipt(tx_hash)
Check whether a Base transaction succeeded, get its receipt, and count current confirmations. Costs $0.005 USDC via x402.
輸入結構描述
{
"type": "object",
"properties": {
"tx_hash": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{64}$",
"description": "32-byte 0x-prefixed Base transaction hash."
}
},
"required": [
"tx_hash"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢base_logs(address, from_block, to_block, topics)
Query smart-contract event logs on Base by contract address, topics and bounded block range. Costs $0.005 USDC via x402.
輸入結構描述
{
"type": "object",
"properties": {
"address": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$",
"description": "Smart-contract address on Base mainnet."
},
"from_block": {
"type": "integer",
"minimum": 0,
"description": "First Base block to include in the log query."
},
"to_block": {
"type": "integer",
"minimum": 0,
"description": "Last Base block to include in the log query."
},
"topics": {
"type": "array",
"items": {
"type": [
"string",
"null"
]
},
"maxItems": 4,
"description": "Up to four Ethereum log topics; null keeps a topic position as a wildcard."
}
},
"required": [
"address"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢base_eth_call(to, data, block)
Make a read-only smart-contract call on Base with eth_call without sending a transaction. Costs $0.005 USDC via x402.
輸入結構描述
{
"type": "object",
"properties": {
"to": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$",
"description": "Smart-contract address on Base mainnet."
},
"data": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]*$",
"maxLength": 32770,
"description": "0x-prefixed ABI calldata for a read-only eth_call."
},
"block": {
"anyOf": [
{
"type": "string"
},
{
"type": "integer",
"minimum": 0
}
],
"description": "Base block selector: block number or tag such as latest, safe, finalized, pending or earliest."
}
},
"required": [
"to",
"data"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢base_transaction(tx_hash)
Get a full Base transaction by hash, including sender, recipient, value, calldata and live transaction details. Costs $0.008 USDC via x402.
輸入結構描述
{
"type": "object",
"properties": {
"tx_hash": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{64}$",
"description": "32-byte 0x-prefixed Base transaction hash."
}
},
"required": [
"tx_hash"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢base_block(block)
Get a Base block by number or tag with its header and transaction hashes. Costs $0.005 USDC via x402.
輸入結構描述
{
"type": "object",
"properties": {
"block": {
"anyOf": [
{
"type": "string"
},
{
"type": "integer",
"minimum": 0
}
],
"description": "Base block selector: block number or tag such as latest, safe, finalized, pending or earliest."
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢base_transaction_context(tx_hash)
Use when an agent needs one-call Base transaction context to verify a payment, debug a failed transaction, or confirm settlement. Costs $0.008 USDC via x402.
輸入結構描述
{
"type": "object",
"properties": {
"tx_hash": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{64}$",
"description": "32-byte 0x-prefixed Base transaction hash."
}
},
"required": [
"tx_hash"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢base_wallet_snapshot(address, tokens)
Take a Base wallet snapshot in one call: native ETH plus up to 10 supplied ERC-20 token balances. Costs $0.005 USDC via x402.
輸入結構描述
{
"type": "object",
"properties": {
"address": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$",
"description": "Wallet or account address on Base mainnet."
},
"tokens": {
"type": "array",
"items": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$",
"description": "ERC-20 or token contract address on Base mainnet."
},
"maxItems": 10,
"description": "Up to ten token contract addresses whose balances should be included."
}
},
"required": [
"address"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢base_total_supply(token)
Get total supply for an ERC-20 token or ERC-721 NFT contract on Base. Costs $0.005 USDC via x402.
輸入結構描述
{
"type": "object",
"properties": {
"token": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$",
"description": "ERC-20 or token contract address on Base mainnet."
}
},
"required": [
"token"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢base_contract_info(address)
Inspect a Base smart contract and get token metadata, bytecode size and common interface detection in one call. Costs $0.005 USDC via x402.
輸入結構描述
{
"type": "object",
"properties": {
"address": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$",
"description": "Smart-contract address on Base mainnet."
}
},
"required": [
"address"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢base_erc20_transfers(token, from_address, to_address, from_block, to_block)
Find recent ERC-20 transfers on Base, optionally filtered to transfers from or to a specific wallet. Costs $0.005 USDC via x402.
輸入結構描述
{
"type": "object",
"properties": {
"token": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$",
"description": "ERC-20 or token contract address on Base mainnet."
},
"from_address": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$",
"description": "Optional sender wallet to filter ERC-20 transfers."
},
"to_address": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$",
"description": "Optional recipient wallet to filter ERC-20 transfers."
},
"from_block": {
"type": "integer",
"minimum": 0,
"description": "First Base block to include in the transfer query."
},
"to_block": {
"type": "integer",
"minimum": 0,
"description": "Last Base block to include in the transfer query."
}
},
"required": [
"token"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}社群
證據