Base MCP Server

MCP server for AI agents to detect flash loan arbitrage opportunities across DEXes on Base. Scan Uni

Local serverstdio

What is the Base MCP server?

Most developer tooling work still happens through a UI a human drives. Base MCP server moves it into the conversation instead. MCP server for AI agents to detect flash loan arbitrage opportunities across DEXes on Base. Scan Uni.

The tools it exposes

The server publishes 7 tools. What each one is for:

  • detect_arb_opportunity — Compare token prices across Uniswap V2, V3, and Aerodrome. Find profitable arb routes
  • get_pool_reserves — Get reserves/liquidity for a token across all known DEX pools on Base
  • estimate_flash_profit — Estimate flash loan profit between two pools after gas costs
  • scan_top_tokens — Scan top traded tokens on Base for arb opportunities via DexScreener
  • get_price_across_dexes — Get current price of a token on all available DEXes
  • check_sandwich_risk — Analyze recent trades for sandwich attack patterns (bot activity)
  • get_mempool_pending — Check pending transactions for front-run detection

What it needs from you

Configuration is passed through the environment: RPC_URL. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

Getting it running

base-flash-arb-mcp on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.

How it compares

Plenty of developer tooling servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Base's toolset — detect_arb_opportunity, get_pool_reserves, estimate_flash_profit and 4 more — is a fair guide to whether it matches your workflow. It is maintained by lordbasilaiassistant-sudo; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
detect_arb_opportunityCompare token prices across Uniswap V2, V3, and Aerodrome. Find profitable arb routes.
get_pool_reservesGet reserves/liquidity for a token across all known DEX pools on Base.
estimate_flash_profitEstimate flash loan profit between two pools after gas costs.
scan_top_tokensScan top traded tokens on Base for arb opportunities via DexScreener.
get_price_across_dexesGet current price of a token on all available DEXes.
check_sandwich_riskAnalyze recent trades for sandwich attack patterns (bot activity).
get_mempool_pendingCheck pending transactions for front-run detection.

How to install the Base MCP server

{
  "mcpServers": {
    "base-flash-arb": {
      "command": "npx",
      "args": ["-y", "base-flash-arb-mcp"],
      "env": {
        "RPC_URL": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
RPC_URLEndpoint or connection string the server talks to.Yes

Example prompts to try

  • Use Base to detect arb opportunity.
  • Use Base to get pool reserves.
  • Use Base to estimate flash profit.

Frequently asked questions

It connects Base to MCP-compatible AI assistants such as Claude and Cursor, exposing 7 tools (detect_arb_opportunity, get_pool_reserves, estimate_flash_profit, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Base directly.