Beamswap MCP
OfficialBeamswap MCP gives AI clients Base token/wallet data, swap preparation, alerts, distributions, and optional paid wallet/vault flows via a local stdio server.
Create a 24-hour wallet session (
session_create) for GLINT tier quota/discounts (free).Fetch Base ERC-20 metadata, supply, deployer, USD price, and round-trip liquidity (
token_info, $0.005 USDC).Read ETH + ERC-20 balances with USD values for a Base address (
portfolio, $0.02 USDC).Compare swap quotes across Base aggregators without calldata (
swap_quote, $0.005 USDC).Prepare ready-to-sign swap transaction calldata (
swap_route, $0.01 USDC plus a route fee).Create and manage webhook alerts for balance thresholds or USD price crossings (
watch_create,watch_get,watch_delete).Create/read cumulative Merkle token distributions and retrieve recipient proofs (
distribution_create,distribution_get,distribution_proof).Sign paid API calls locally via
BEAMSWAP_WALLET_KEYor MetaMask Agent Wallet, with USDC EIP-3009 payments to a pinned Base treasury.Optionally enable Agent Vault
vault_*tools withBEAMSWAP_VAULT_URLorBEAMSWAP_VAULT_ADDRESS.Return transaction instructions for swaps, funding, or claims; it does not broadcast those transactions.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Beamswap MCP Check the Base balances of 0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Beamswap MCP
Give your AI tools for Base wallets, token data, swap preparation, alerts and token distributions.
Choose how to connect: hosted, local, private tunnel or self-hosted. Choose your AI: Claude, ChatGPT, Gemini, Perplexity, Grok and Codex.
This repository contains the local stdio server. The hosted server lives in beamswap-app-base. Both use the Beamswap API, with different payment approval flows.
Run the local server
Install Node.js 22.13 or newer. The npm release runs without cloning:
npx -y @beamswapio/mcp@0.3.0Set your AI client's command to npx and arguments to ["-y", "@beamswapio/mcp@0.3.0"]. Pinning the version keeps updates deliberate. On Windows, clients that require an executable may need npx.cmd; the source-based node command below also works.
Build from source
For source control or local changes, install Git and pnpm 10, then:
git clone https://github.com/BeamSwap/beamswap-mcp.git
cd beamswap-mcp
pnpm install --frozen-lockfile
pnpm buildSet your AI client's server command to node, with the absolute path to dist/index.js as its argument. The client starts the server. Running it directly leaves it waiting for MCP messages on stdin, which is normal.
Connect before adding a wallet
{
"mcpServers": {
"beamswap": {
"command": "npx",
"args": ["-y", "@beamswapio/mcp@0.3.0"]
}
}
}For a source build, use command node and an absolute argument such as C:/Users/you/beamswap-mcp/dist/index.js. Merge the beamswap entry with your existing servers. After restarting the client, ask it to list the Beamswap tools. Listing tools is free and does not require a wallet.
Related MCP server: Base MCP Server
Payments in local mode
For paid calls, configure BEAMSWAP_WALLET_KEY in your local client's environment settings. Use a separate wallet with a small USDC balance on Base. Never paste a private key into a chat, prompt, issue or shared config.
The local server automatically signs API payments when a key is configured. Each tool is capped at its list price below; monitoring is capped at $0.01 per item per day. Only Base USDC EIP-3009 payments to the configured treasury are allowed. Free tools cannot charge. These limits are per payment, not a daily or total budget. Your AI client's approval controls are separate. Hosted mode instead asks you to approve requests in your browser.
Setting | Purpose |
| Optional for connection/free lookups; required for local paid calls and wallet sign-in, unless you use |
| Set to |
| Optional path to the |
| Defaults to |
| Optional existing wallet session. |
| Optional task label (1 to 64 letters, digits, spaces or . _ : -) sent as |
| Optional private vault link from app.beamswap.io/agent. Adds the six |
| Optional |
| Advanced self-hosting only. Defaults to Beamswap's treasury. Changing the API URL does not change this payment recipient. |
If a signed request times out, returns an error or lacks a valid receipt, the tool returns paymentOutcomeUnknown, doNotRetry and a recovery ID. Further paid calls for that wallet are blocked across restarts. See payment recovery before taking any action. Never ask the AI to create a replacement for an uncertain request.
The API charges USDC. The facilitator pays gas for API settlements. Sending swap, staking, funding or claim transactions separately requires ETH on Base. This server returns transaction instructions and does not broadcast those transactions.
MetaMask Agent Wallet
MetaMask Agent Wallet (the mm command) keeps the key in MetaMask's secure enclave or a local mnemonic, so no private key sits in your MCP config. Install it, create or select a wallet with mm, then:
{
"mcpServers": {
"beamswap": {
"command": "npx",
"args": ["-y", "@beamswapio/mcp@0.3.0"],
"env": { "BEAMSWAP_SIGNER": "metamask" }
}
}
}The server runs
mm wallet address --jsononce at startup and asksmmto sign each payment, sign-in or vault intent with--wait. If your wallet needs 2FA, approve the request in MetaMask; the call waits up to 11 minutes. An unapproved request fails withApproval pending in MetaMask (2FA), and you can retry.Payments keep every local safety rule: the per-route price ceiling, the pinned Base USDC treasury, one signature per request and the recovery lock. The wallet needs USDC on Base.
On Windows the
mm.cmdlauncher cannot be started without a shell, so the server reads the JavaScript entry out of it and runs that with Node. If that fails, setBEAMSWAP_MM_BINto themmexecutable or its.jsentry.Only ECDSA signatures are accepted, because the Beamswap API and vaults verify ECDSA.
Vault whose agent is your own wallet
An Agent Vault can name any address as its agent. If that address is your mm wallet (mm wallet address) or your BEAMSWAP_WALLET_KEY wallet, set BEAMSWAP_VAULT_ADDRESS to the vault contract. The six vault_* tools then work without a private URL: the server proves it is the agent with a signed challenge (reused for about five minutes, so one 2FA approval covers several reads), signs each trade, cancel or pause as an AgentIntent, and Beamswap's relayer submits it and pays the gas. The vault contract enforces your limits on chain; the agent can never withdraw, change rules or resume a paused vault.
An agent skill for this setup is in skills/beamswap.
Try a prompt
Start with: “List your Beamswap tools without making any paid requests.”
Then use an exact wallet or token address:
“Check the Base balances of [wallet]. Show tokens with missing prices separately. Do not trade.”
“Compare a quote for 0.01 ETH to USDC on Base. Show the fee and expected output. Do not execute.”
“Validate this rewards list, show duplicate wallets and the total, then stop for my review.”
See workflow examples for costs, prerequisites and where approval belongs.
Local tools and list prices
Tool | What it does | API price |
| Activate wallet-based quota and discounts | Free signature |
| Token metadata, price and quote-based liquidity check | $0.005 |
| Base token and native ETH balances with available USD values | $0.02 |
| Compare supported swap aggregators | $0.005 |
| Prepare transaction data for your wallet | $0.01 |
| Balance/price threshold alerts to your HTTPS webhook | $0.01 per item per day |
| Read a watch by its private ID | Free |
| Stop a watch by its private ID | Free, no refund |
| Create a paused recipient claim contract | $50 |
| Read distribution metadata | Free |
| Retrieve one recipient's proof | $0.001 |
Active GLINT tiers can reduce paid prices by 10%, 25% or 40% and grant quota on eligible routes. Create a session to use your tier. Swap execution preparation and distributions are not free-quota routes. Swap and distribution funding fees are separate from API prices. Successful paid calls include _payment.tx when a settlement receipt is available.
Tool amounts are decimal strings in the token's smallest unit, not JavaScript numbers. The website's recipient importer instead accepts readable token amounts and converts them using verified token decimals.
Development and releases
pnpm check
npm pack --dry-runChecks cover type safety, MCP protocol tool tests, the bundle and a real stdio connection to a local mock API. They use no funded wallet and send no mainnet payment. Release checklist.
MIT license. Maintained by BeamSwap.
Available Tools
11 toolsdistribution_createA
Deploy a cumulative Merkle token distributor on Base and return approval, gross funding and unpause transactions for the owner to send. Costs $50 USDC via x402; the API deploys the clone and settles payment, while owner transactions remain unsent.
Inputs: token (required), entries (required), name, deadline.
distribution_getA
Read a token distribution, including its root, contract, promised total, funded balance and claim URL. Free.
Inputs: id (required).
distribution_proofA
Get one recipient cumulative amount and Merkle proof for a distribution. Costs $0.001 USDC via x402; a missing recipient is a free 404.
Inputs: id (required), address (required).
portfolioB
ETH + ERC-20 balances of a Base address with USD values. Costs $0.02 USDC via x402.
Inputs: address (required).
session_createA
Create a 24-hour session for the configured wallet. Free. The session unlocks GLINT tier quota, discounts and execution fees and remains only in this MCP process.
Inputs: no named parameters.
swap_quoteB
Best swap output across Base aggregators (quote only, no calldata). Costs $0.005 USDC via x402.
Inputs: buy (required), sell (required), amount (required), slippageBps.
swap_routeA
Best swap route across Base aggregators as ready-to-sign calldata. Costs $0.01 USDC via x402 plus a 10 bps fee inside the route (less for GLINT tiers). Returns to/data/value; you sign and send it.
Inputs: buy (required), from (required), sell (required), amount (required), +2 more.
token_infoA
Base ERC-20 facts: metadata, supply, deployer, USD price, round-trip liquidity check. Costs $0.005 USDC via x402.
Inputs: address (required).
watch_createB
Watch Base balances or USD prices; signed webhook on trip. $0.01 per item per day via x402.
Inputs: days (required), items (required), webhookUrl (required).
watch_deleteA
Stop one watch. Free, idempotent, and never refunded: the days were bought up front.
Inputs: id (required).
watch_getA
Read one watch: its condition, status, last observed value and recent webhook deliveries. Free.
Inputs: id (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Each tool targets a distinct resource or action, and the watch and distribution families are clearly separated. The only close pair is swap_quote vs swap_route, but their descriptions distinguish quote-only from ready-to-sign calldata well enough.
Most names follow a resource_first snake_case pattern such as watch_create, distribution_get, and session_create. A few names like portfolio, token_info, and swap_quote use noun-style suffixes instead of verb_action, so the pattern is mostly consistent but not uniform.
With 11 tools, the server is well within the ideal scope and each tool covers a distinct capability: portfolio, token info, swap quoting/routing, watch lifecycle, distribution lifecycle, and session creation. No tool feels redundant.
Core workflows are covered: swap quote/route, watch create/get/delete, and distribution create/get/proof. Minor gaps such as listing watches or distributions and a session status endpoint could improve completeness, but agents can complete the main intended operations.
Maintenance
Related MCP Connectors
Read-only on-chain intelligence for AI agents on Base: balances, tokens, gas, tx status.
Read-only on-chain intelligence for AI agents on Base: balances, tokens, gas, tx status.
17 pay-per-call web, finance, legal and onchain tools for AI agents. USDC on Base via x402/MPP.
Open API Marketplace for AI Agents. Crypto data tools with USDC payments on Base.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceEnables AI applications to interact with the Base blockchain network, allowing wallet management, smart contract deployment, token transfers, NFT operations, DeFi interactions with Morpho vaults, and onramping funds via Coinbase.26 npm-
- AlicenseNot gradedqualityNot gradedmaintenanceEnables AI applications to interact with the Base blockchain network and Coinbase API, supporting wallet operations, smart contract deployment, token transfers, NFT management, DeFi lending through Morpho vaults, and onramp functionality.26 npm-
- AlicenseNot gradedqualityNot gradedmaintenanceEnables AI applications to interact with the Base blockchain network and Coinbase API, supporting wallet management, token transfers, smart contract deployment, NFT operations, DeFi interactions with Morpho vaults, and fiat onramp functionality.26 npm-
- AlicenseNot gradedqualityNot gradedmaintenanceEnables AI applications to interact with the Base Network and Coinbase API for blockchain operations including wallet management, token transfers, smart contract deployment, NFT operations, and onchain lending through Morpho vaults.26 npm-