Skip to main content
Glama

microtap-mcp

一个为 MicroTap 打造的 MCP 服务器——20 个按次付费 API(Polymarket 与 Kalshi 预测市场、跨平台预测市场价差、DeFi/加密货币数据、多链链上读取、实时天气、实时网络搜索)通过 x402 协议 以 USDC 自动结算。无需注册、无需 API 密钥、无需控制台——安装后在本地小钱包里充入少量资金,你的 AI 助手就能自行开始调用付费接口了。

快速开始

把它添加到 MCP 客户端的配置中即可。首次运行时会自动生成一个本地 EVM 钱包——你无需自己创建。

Claude Desktop / Claude Code

{
  "mcpServers": {
    "microtap": {
      "command": "npx",
      "args": ["-y", "microtap-mcp"]
    }
  }
}

Cursor / Windsurf

配置结构相同——把上面的配置块放到你的客户端正在使用的任意 mcpServers 配置文件中。

添加之后重启客户端,然后在服务器的启动日志中(在 Claude Desktop 里:Settings → Developer → microtap → logs)寻找类似这样一行说明:

[microtap-mcp] wallet address: 0xabc123...
[microtap-mcp] fund this address with a small amount of USDC on Base mainnet to pay for calls

向该地址发送几美元的 Base 主网 USDC——按每次调用 $0.001–$0.05 计算,这足够支付数百次调用了。你的 AI 助手现在就能使用下方 20 个工具中的任意一个;每个工具都会自动为自己结清费用。

Related MCP server: agentsvc-mcp

工作方式

每次工具调用时:

  1. 调用 x402tap.com 上对应的路由。

  2. 如果服务器返回 402 Payment Required(首次调用时总是如此),则使用钱包私钥对精准对应所需金额的 USDC 支付进行签名——整个过程完全在本地完成,除了已签名的支付本身外,不会有任何内容被发送出去,直到请求被发送到其他地方。

  3. 将支付信息附入后再重试请求,并返回真实响应。

私钥永远不会离开你的机器。它不会被发送到 MicroTap、任何 LLM 提供商或任何其他地方——它只会在本地对支付消息进行签名,这与该生态系统中其他 x402 MCP 服务器(如 BlockRun 的)采用的非托管模式完全一致。

工具

工具

路由

价格

get_protected_content

/protected

$0.001

get_weather

/api/weather

$0.001

generate_text

/api/generate

按用量计费,最高 $0.05

get_trend_insights

/api/insights

$0.001–$0.005

ping_heartbeat

/api/ping

$0.001

search_polymarket_markets

/api/polymarket-markets

$0.003

get_polymarket_market

/api/polymarket-market

$0.002

search_kalshi_markets

/api/kalshi-markets

$0.003

get_kalshi_market

/api/kalshi-market

$0.002

find_prediction_market_divergence

/api/prediction-arb

$0.005

get_defi_protocol_tvl

/api/defi-tvl

$0.003

rank_chains_by_defi_tvl

/api/defi-chains

$0.002

get_crypto_price

/api/crypto-price

$0.001

get_crypto_market_data

/api/crypto-market

$0.002

get_crypto_trending

/api/crypto-trending

$0.001

web_search

/api/web-search

$0.003

call_multichain_rpc

/api/rpc

$0.003

get_wallet_balance

/api/wallet-balance

$0.002

get_gas_price

/api/gas-price

$0.001

resolve_ens

/api/ens-resolve

$0.002

每个路由的完整参数文档:x402tap.com/openapi.json。

配置(全部可选)

如果你需要覆盖默认值,请把这些值设置为环境变量,并在 MCP 客户端的服务器配置中(与 "command"/"args" 并列的 "env": { ... })添加:

变量

默认值

用途

MICROTAP_MCP_PRIVATE_KEY

(自动生成)

使用你自己的 EVM 私钥,而不是自动生成的钱包

MICROTAP_MCP_MAX_VALUE_USDC

0.10

安全上限——单次调用拒绝自动支付超过该金额的额度

MICROTAP_BASE_URL

https://x402tap.com

覆盖 API 基础地址(主要用于本地开发/测试)

自动生成的钱包密钥存放于 ~/.microtap-mcp/wallet.json(以 0600 权限创建——仅你的用户可读)。

本地开发

npm install
npm run build
npm start   # runs the compiled server over stdio

安全说明

  • 钱包私钥只用于在本地签署支付消息(Base 主网上的 EIP-712 exact 方案)——它绝不会被传输到任何地方。

  • 即使某个路由公布的价格有误或意外偏高,MICROTAP_MCP_MAX_VALUE_USDC(默认 $0.05)也会阻止本服务器对单次调用自动支付超过该金额的费用。

  • 所有 20 个工具对 MicroTap 的 API 来说都只是只读的——它们都无法转移资产、签署交易或写入链上状态(/api/rpc 在服务端被限制为只读 JSON-RPC 方法的白名单)。

许可证

MIT

Available Tools

20 tools
call_multichain_rpcSafelisted read-only multi-chain JSON-RPC callA
Read-onlyIdempotent

Safelisted read-only JSON-RPC proxy across Base, Ethereum, Polygon, Arbitrum, and Optimism — eth_call, eth_getBalance, eth_getTransactionReceipt, eth_blockNumber, and more. Write methods (sending transactions, signing) are never permitted. Price: $0.003 per call.

Inputs: method (required), chain, params.

find_prediction_market_divergenceCross-platform Polymarket vs. Kalshi price divergenceA
Read-onlyIdempotent

Finds prediction-market questions priced differently on Polymarket vs. Kalshi — a cross-platform divergence signal built from data no single-platform competitor has. Matches are keyword-overlap similarity, not a verified same-event guarantee; sanity-check a match before treating it as a real arbitrage signal. Price: $0.005 per call.

Inputs: q, limit, minDivergencePct.

generate_textUsage-based text generationA
Read-onlyIdempotent

Generates short text output for a prompt. Billed by output length, up to $0.05 max per call (x402 'upto' scheme — you authorize a ceiling, the actual charge is based on what's produced). Price: usage-based, max $0.05 per call.

Inputs: prompt (required).

get_crypto_market_dataRich crypto market dataA
Read-onlyIdempotent

Rich market data for one or more cryptocurrencies: rank, 24h high/low, volume, all-time high, and more. Price: $0.002 per call.

Inputs: ids (required), vs.

get_crypto_priceCrypto price, 24h change, market capB
Read-onlyIdempotent

Current price, 24h change percent, and market cap for one or more cryptocurrencies. Price: $0.001 per call.

Inputs: ids (required), vs.

get_defi_protocol_tvlDeFi protocol TVL by chainA
Read-onlyIdempotent

A DeFi protocol's current total value locked (TVL), broken out by chain, plus market cap. Data via DefiLlama. Price: $0.003 per call.

Inputs: protocol (required).

get_gas_priceCurrent gas price and EIP-1559 fee estimateA
Read-onlyIdempotent

Current gas price and EIP-1559 fee estimate for Base, Ethereum, Polygon, Arbitrum, or Optimism. Price: $0.001 per call.

Inputs: chain.

get_kalshi_marketSingle Kalshi market detailA
Read-onlyIdempotent

Full detail for a single Kalshi market by ticker: yes/no prices, volume, status, result. Price: $0.002 per call.

Inputs: ticker (required).

get_polymarket_marketSingle Polymarket market detailA
Read-onlyIdempotent

Full detail for a single Polymarket market by slug: prices, volume (24h/1wk/total), liquidity, resolution status. Price: $0.002 per call.

Inputs: slug (required).

get_protected_contentProtected demo contentA
Read-onlyIdempotent

Demo of page-level (not just API-level) x402 protection. Returns a short confirmation message. Price: $0.001 per call.

Inputs: no named parameters.

get_trend_insightsTrend insights for a topicA
Read-onlyIdempotent

Trend score, momentum, and related trends for a topic. Two tiers: standard ($0.001) returns a basic score, premium ($0.005) returns the full breakdown including related trends.

Inputs: topic (required), tier.

get_wallet_balanceNative + ERC-20 wallet balanceA
Read-onlyIdempotent

Native token balance for a wallet address, plus an optional specific ERC-20 token balance, across Base, Ethereum, Polygon, Arbitrum, or Optimism. Price: $0.002 per call.

Inputs: address (required), chain, token.

get_weatherLive current weather for a cityA
Read-onlyIdempotent

Live current weather conditions for any city (temperature, conditions, humidity, wind), sourced from Open-Meteo. Price: $0.001 per call.

Inputs: city.

ping_heartbeatCheap repeatable heartbeatA
Read-onlyIdempotent

Minimal heartbeat/ping endpoint, billed via a batch-settlement payment channel so it's cheap to call repeatedly in one session. Price: $0.001 per call.

Inputs: no named parameters.

rank_chains_by_defi_tvlRank blockchains by total DeFi TVLA
Read-onlyIdempotent

Ranks blockchains by total DeFi value locked across all protocols. Price: $0.002 per call.

Inputs: limit.

resolve_ensENS name <-> address resolutionA
Read-onlyIdempotent

Resolves an ENS name to an address, or reverse-resolves an address to its primary ENS name (Ethereum mainnet). Provide exactly one of name or address. Price: $0.002 per call.

Inputs: name, address.

search_kalshi_marketsSearch/list open Kalshi prediction marketsB
Read-onlyIdempotent

Search or list open Kalshi prediction markets (regulated US event contracts) — title, yes/no bid-ask, volume, close time. Price: $0.003 per call.

Inputs: q, limit.

search_polymarket_marketsSearch/list active Polymarket prediction marketsA
Read-onlyIdempotent

Search or list active Polymarket prediction markets, ranked by 24h volume — question, outcomes, prices, volume, liquidity, end date. Price: $0.003 per call.

Inputs: q, limit.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 20 tools

    Disambiguation4/5

    Each tool maps to a fairly distinct data resource or action, with search/get pairs clearly separated by platform. However, get_crypto_price vs get_crypto_market_data and call_multichain_rpc vs get_wallet_balance create a couple of overlapping choices that agents must disambiguate from descriptions.

    Naming Consistency4/5

    Most tools follow a consistent verb_noun snake_case pattern (get_, search_, generate_, resolve_). The main deviation is web_search, which reverses the verb-first convention used by the other search tools; otherwise naming is predictable.

    Tool Count3/5

    At 20 tools, the server sits in the 16-25 range that feels heavy for a coherent MCP. The count is not absurd, but the breadth is inflated by mixing weather, text generation, prediction markets, crypto, and chain-infrastructure tools under one server.

    Completeness4/5

    For a read-only data API aggregator, the major advertised areas are each represented: crypto pricing/market/trends, prediction-market search/detail/divergence, DeFi TVL, onchain balance/gas/ENS/RPC, web search, weather, and text generation. Minor gaps remain, such as historical crypto data or a token-list/discovery endpoint, but intended read-only workflows are not dead ends.

    Maintenance

    ActivityMaintained
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      22 MCP tools for AI agents: crypto prices and trading signals (53 coins), stock prices and company financials, forex rates and conversion, and web scraping with AI summaries. All powered by x402 USDC micropayments on Base. $0.01-$0.25 per request.
      22
      19 npm
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      20 pay-per-call utility tools for AI agents via x402 USDC micropayments on Base. Screenshots, OCR, PDF, web scraping, weather, forex rates, crypto/stock prices, DNS, geocoding, translation, and more. $0.001–$0.008 per call. No API keys, no signup.
      127
      1
      MIT
    • A
      license
      A
      quality
      A
      maintenance
      Provides Claude with real-time access to markets, research, X/Twitter, and crypto data via a unified pay-per-call system with no API keys.
      19
      726 npm
      391
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Pay-per-call x402 data products on Base mainnet — sanctions screening, aviation weather, mortgage rates, US property dossier, title chain, wallet balance, and agent session auth. Every call settles in USDC with an on-chain receipt, no accounts or API keys.
      7
      MIT