Index of every page on this site: llms.txt
All skills
base avatar

/base-mcp

@ef8bcd5 official
by basebase/skills120 stars
130
Run it yourself

Base MCP — gives your AI assistant access to a Base Account via the Base MCP server (wallet-mcp.coinbase.com). Wallet, portfolio, sending, swapping, signing, x402 payments, batched contract calls, and transaction history across supported chains.

Use this Skill: https://skilld.dev/gh/base/skills/base-mcp

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈64 tokens for metadata: the name and description. ≈3.4k when used: this file. ≈100k more on demand in 27 files.

Description uses 3.2% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈256 characters, or 3.2%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Base MCP

Deprecated: this skill has been renamed to wallet-mcp. Install with npx skills add base/skills --skill wallet-mcp. This copy still works and will be removed later.

[!IMPORTANT]

Run onboarding at the start of every conversation that touches Base MCP

Including conversations that jump straight to a plugin topic. Onboarding is short — see below.

Detection

The Base MCP exposes its tools to the harness when connected. If no Base MCP tool is callable, the MCP server is not installed: direct the user to https://docs.cdp.coinbase.com/ai-agents/coinbase-for-agents/wallet-mcp#quickstart (or load references/install.md for app-specific steps) and stop.

If Base MCP tools are available, load references/tone.md — its rules apply for the entire conversation — then continue to Onboarding. If — and only if — sibling files aren't readable (e.g. you were handed just this SKILL.md body and have no local filesystem access to the skill directory), fetch the same relative path from https://docs.cdp.coinbase.com/coinbase-for-agents/wallet-mcp/references/tone.md using the web_request tool from Base MCP. The same fallback applies to every other reference and plugin link in this file (see "Loading referenced files" below).

Onboarding

Keep it short. Do this once per session, before doing real work:

  1. Briefly mention what's available — one or two sentences. The user has a Base Account wallet and can do things like check balances, send and swap tokens, sign messages, make x402 payments, batch contract calls, and (if installed) use third-party plugins for DeFi, swaps, and other onchain actions. Do not enumerate every tool — the agent discovers tools and plugins directly from the MCP.

  2. Show this disclaimer verbatim before proceeding:

    By using the Base MCP, you agree to the Base Account and Base App Terms of Service. Base MCP provides access to plugins that are built by third parties, not Base. Base doesn't operate, endorse, or audit them, and isn't responsible for the protocols you interact with. Transactions are irreversible — always review before approving.

  3. Wallet address and balance are optional — only fetch and display them when the user asks, or when a pending operation actually needs the address (e.g., a write call, a position lookup). Don't volunteer a wallet dump up front.

Tools

The Base MCP advertises its own tool catalog to the harness. Read the tool descriptions exposed by the MCP — they are the source of truth and may change over time. Do not assume a fixed list; do not preload a tool catalog from this skill.

Two patterns deserve their own references because they span multiple tools:

Topic Reference
Approval flow (for any write tool that returns an approval URL) references/approval-mode.md
Batched contract calls (EIP-5792) references/batch-calls.md
Custom / non-native plugins and the web_request allowlist references/custom-plugins.md
Platform install steps references/install.md
Tone and language rules references/tone.md

Loading referenced files

  • Default — local. Read each references/… or plugins/… link from the same directory as this SKILL.md (filesystem read, e.g. Read/cat). This is the canonical source — always try this first.
  • Fallback — web (only when local read fails). If — and only if — the local file is genuinely unreadable (e.g. you were handed SKILL.md as a pasted body with no skill directory on disk, or the filesystem read errors), then fetch the same relative path from https://docs.cdp.coinbase.com/coinbase-for-agents/wallet-mcp/<path> (replace <path> with the relative link, e.g. references/tone.md, plugins/morpho.md). Use the web_request tool from Base MCP for this fetch — that is the required mechanism on every surface, including ones with a built-in web/fetch tool. Do not skip this fallback and do not try to operate from memory or guesses — if the local read fails, you must web_request the file before acting on its contents.
  • Lazy. Only load a reference or plugin when the conversation actually needs it. Don't preload the catalog.

Plugins

Plugins extend Base MCP with third-party functionality (lending, swaps, perps, etc.). Each plugin is a separate third-party service that Base does not operate, endorse, or audit. The available set may change and users might drop additional instructions in the chat or custom plugins that would allow you to use other protocols with the MCP.

Routing rule — name-gated, never auto-routed

Open a plugin only when the user names that specific third-party platform (e.g. "swap on Uniswap", "lend on Moonwell", "buy a gift card on Bitrefill") or otherwise unambiguously points to it. Never infer a platform from a bare capability — choosing one third-party service over another is the user's decision, not yours.

If the user asks for a capability without naming a platform — "swap some USDC", "earn yield", "launch a token", "buy a gift card" — do not pick a plugin for them. Instead, list the plugins from the table below that cover that capability (and mention any native Base MCP tool that also does, e.g. the built-in swap), then let the user choose. Only after the user names a platform do you open its plugin and act.

Plugins currently maintained alongside this skill (the native plugins). Use the table two ways: (a) to route a request that already names a platform to the right plugin, and (b) to assemble the option list when the user asks for a capability without naming one. The "Open it when…" column intentionally anchors each trigger to the platform's own name — that name is the trigger.

Plugin Open it when the user names this platform and wants to... Common actions it covers Notice before acting
Aerodrome Swap, provide liquidity, stake, or claim rewards on Aerodrome. Pool discovery, swaps, LP add/remove, staking, unstaking, reward claims. Base only. Requires a shell-capable harness for the Sugar CLI; stop on chat-only surfaces.
Avantis Trade leveraged perpetual futures or inspect Avantis trading activity. Open/close positions, cancel orders, adjust margin, set TP/SL, view positions, history, and PnL. Base only. Leverage can liquidate the position; chat-only surfaces can read data but use the Avantis UI for trade actions.
Balancer Swap tokens or provide liquidity on Balancer. Read pools/quotes, build swap calldata, add/remove liquidity, submit via send_calls. CLI-only — requires shell access; stop on chat-only surfaces. Multi-chain (Base, Ethereum, Arbitrum, Optimism, Avalanche); confirm slippage and low-liquidity risk.
Bankr Discover fresh token launches or buy a newly launched token on Bankr. Read launch feeds, inspect token metadata, buy a selected token. Base only. New tokens can be illiquid or unsafe; do not auto-buy, and make price/liquidity risk explicit.
Bitrefill Buy gift cards, mobile top-ups, or travel eSIMs on Bitrefill, paid with USDC. Search 1,500+ brands, check out, deliver gift-card codes and eSIM details in chat. Base only. Requires SIWE login; purchases are irreversible and handle personal data — confirm order details before paying.
Brickken Manage ERC-8004 agent identity, reputation, or agent-token operations on Brickken. Identity and reputation reads/writes, agent-token operations via x402 approval. Base and Base Sepolia. Writes are irreversible and may involve personal data; review before approving.
Clawnch Discover recent/top token launches or launch a token on Clawnch. Browse launch feeds, inspect tokens, non-custodial launch, swap via send_calls. Base only. New tokens can be illiquid or unsafe and launches are irreversible; make risk explicit.
Flaunch Launch a token on Flaunch or discover/swap deployed Flaunch tokens. Prepare launches via mcp.flaunch.gg, discover tokens, swap, submit via send_calls. Base only. New tokens can be illiquid; launches and swaps are irreversible — confirm details first.
GMGN Get token swap quotes, gas prices, or trending-token market intelligence on Base via GMGN. Swap quotes (unsigned calldata via send_calls), gas-price tiers, trending tokens. Base only. CLI-only — requires shell to generate auth params; API key auth. Confirm slippage and watch low-liquidity tokens.
Hydrex Swap tokens or manage concentrated-liquidity positions on Hydrex. Quotes, swaps, concentrated-liquidity add/remove, submit via send_calls. Base only. Quotes can move; confirm slippage before writes.
KyberSwap Swap tokens on KyberSwap (aggregated best-rate routing across chains). Best-rate routing through 50+ liquidity sources, quotes, swaps via send_calls. Multi-chain (Base, Ethereum, Arbitrum, Optimism, Polygon, BSC, Avalanche); quotes can move, confirm slippage before swapping.
Moonwell Lend, borrow, repay, withdraw, or check Moonwell positions/rewards. Market/rate reads, health checks, supply, withdraw, borrow, repay, rewards lookup. Works on Base and Optimism. Borrowing can be liquidated; surface health factor before risky actions.
Morpho Earn yield, use Morpho vaults, or borrow/lend in Morpho markets. Compare vaults, deposit or withdraw, supply collateral, borrow, repay, check positions. Base only. Borrowing can be liquidated; read health/position data before preparing writes.
o1.exchange Swap tokens on o1.exchange, optionally with Permit2 gasless approvals and MEV-protected routing. Quotes, standard swaps via send_calls, Permit2 swaps via private relay. Multi-chain (Base, BSC). Quotes can move and swaps are irreversible; confirm slippage and watch for low-liquidity tokens.
OpenSea Trade NFTs, swap tokens, or mint drops on OpenSea. NFT buy/sell/list, token swaps, drops/minting, submit via send_calls. Multi-chain (Ethereum, Base, Polygon, Arbitrum, Optimism, Avalanche). Requires an API key; trades are irreversible — confirm token, price, and slippage first.
Printr Launch a cross-chain token on Printr. Prepare token-creation calldata via HTTP API, submit via send_calls. Multi-chain (Base, Arbitrum, Optimism, Polygon, BSC, Avalanche, Ethereum). New tokens can be illiquid; launches are irreversible.
Uniswap Swap tokens or manage Uniswap liquidity positions. Token swaps, approval checks, V2/V3/V4 LP create/increase/decrease/collect flows. Base only. Quotes can move; confirm slippage and token/position details before writes.
Venice Run private AI inference or media generation on Venice, optionally funded with x402. Text and media inference via the Venice API, optional Base x402 wallet funding. Base only. Requires SIWE login; inference handles personal data and paid calls are irreversible.
Virtuals Create or operate Virtuals AI agents, payment cards, or agent email. Agent management, card setup and limits, email inbox/thread actions, SIWE login. Requires the Virtuals MCP and a signed login. Handles personal data; avoid exposing tokens, OTPs, card details, or email contents unnecessarily.
YO View YO vaults, check positions, deposit, or request redeem on YO yield vaults. ERC-4626 vault reads via chain_rpc_request, deposit, request redeem via send_calls. Multi-chain (Base, Ethereum, Arbitrum). Deposits and redeems are irreversible; confirm amounts and vault before writes.

Load a plugin reference only once the user has named the platform it covers (per the routing rule above), following the same local-first, web-fallback rule as references (see Loading referenced files above). For a plugin's own external tools, defer to the plugin file first, then to any CLI help, API schema, or MCP tool descriptions it explicitly tells you to use.

Native plugins vs. custom / user-supplied plugins

Native plugin HTTP hosts may be allowlisted in the Base MCP web_request tool. Aerodrome, Balancer, and GMGN are CLI-only and require a harness with shell access. Avantis is hybrid: view-only reads (market data, positions, PnL) work on every surface via web_request, while tx-builder calls require a CLI harness — on chat-only surfaces the plugin links the user to the Avantis web UI instead (see plugins/avantis.md). Morpho is hybrid too: use Morpho CLI when shell access exists, otherwise use or install the Morpho MCP as described in plugins/morpho.md. Custom or user-supplied plugins usually aren't allowlisted — load references/custom-plugins.md for the decision tree on which HTTP path to use (harness HTTP tool vs. user-paste fallback, and the GET-only constraint on Claude/ChatGPT consumer surfaces).

Installation

npx skills add base/skills --skill base-mcp

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 alert14d3 checks · Risk CRITICAL
  • Gen Agent Trust Hub14d

    Security analysis identified a critical risk due to automated scanner detections of malicious files and URLs within the Flaunch plugin. The skill also contains hardcoded authentication credentials across multiple plugins and relies on downloading and executing various third-party packages at runtime. Furthermore, certain plugins handle highly sensitive personal information, such as credit card details and email contents, which increases the potential impact of an exploit.

  • Socket14d

    1 alert: gptSecurity

  • Snyk14d

    Risk: MEDIUM · 2 issues

Signed by skilld at ef8bcd5. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated 2 weeks ago
title
Base MCP Skill
version
0.1.0
  • MCP
  • base
  • blockchain
  • wallet
  • defi
  • ethereum
  • swaps
  • tokens
  • agent-tools

README badge

README badge for base/skills/base-mcp

Gives your AI assistant access to a Base Account wallet via the Base MCP server, enabling balance checks, token sends and swaps, message signing, x402 payments, batched contract calls, and transaction history. Includes optional plugins for Morpho, Moonwell, Uniswap, Avantis perpetuals, Virtuals agents, Aerodrome, and Bankr token launches.

Generated from the current SKILL.md.

What do I need to install to use this skill?
You need the Base MCP server installed and connected. If Base MCP tools aren't available, visit https://docs.base.org/ai-agents/quickstart for installation steps specific to your platform.
What chains does Base MCP support?
The skill works across supported chains for wallet, portfolio, and transaction history. Individual plugins (Morpho, Moonwell, Uniswap, Avantis, Aerodrome, Bankr) are Base-only unless noted otherwise — Moonwell also supports Optimism.
Can I use this skill to sign transactions?
Yes. Base MCP supports signing messages and contract calls. Write operations that return an approval URL follow a specific approval flow — the skill will guide you through it.
What happens if I use a plugin that supports lending or leverage?
Plugins like Morpho, Moonwell, and Avantis can expose you to liquidation risk. The skill surfaces health factor and position data before risky actions, but you must review all details before approving any transaction.
Do I need to provide my wallet address at the start?
No. Wallet address and balance are only fetched when you ask for them or when a pending operation actually needs the address — like a token send or balance lookup.

Generated from the current SKILL.md. These answers refresh after source changes.