Base MCP Server

MCP server for AI agents to fetch real-time token prices on Base from on-chain DEX pools (Uniswap, A

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 fetch real-time token prices on Base from on-chain DEX pools (Uniswap, A.

The short version

MCP server for real-time Base chain token price data from on-chain DEX pools. Pure on-chain reads via ethers.js -- no external APIs, no API keys needed.

The tools it exposes

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

  • get_token_price — Current price from Uniswap V2/V3 and Aerodrome pools
  • get_price_history — Recent price data points from swap events
  • get_volatility — Price volatility (stddev of returns) from recent swaps
  • get_liquidity_depth — Pool reserves and liquidity across all DEXes
  • get_price_impact — Estimated price impact for a given trade size
  • compare_prices — Cross-DEX price comparison (arbitrage finder)
  • get_market_summary — Combined report: price, volume, liquidity, volatility

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

The server ships on npm as base-price-oracle-mcp, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

How it compares

This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Base's toolset — get_token_price, get_price_history, get_volatility 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.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

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
get_token_priceCurrent price from Uniswap V2/V3 and Aerodrome pools
get_price_historyRecent price data points from swap events
get_volatilityPrice volatility (stddev of returns) from recent swaps
get_liquidity_depthPool reserves and liquidity across all DEXes
get_price_impactEstimated price impact for a given trade size
compare_pricesCross-DEX price comparison (arbitrage finder)
get_market_summaryCombined report: price, volume, liquidity, volatility

How to install the Base MCP server

Or add to your MCP config:

```json
{
  "mcpServers": {
    "base-price-oracle": {
      "command": "npx",
      "args": ["-y", "base-price-oracle-mcp"],
      "env": {
        "RPC_URL": "https://mainnet.base.org"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
RPC_URLEndpoint or connection string the server talks to.Yes

Example prompts to try

  • Use Base to get token price.
  • Use Base to get price history.
  • Use Base to get volatility.

Frequently asked questions

It connects Base to MCP-compatible AI assistants such as Claude and Cursor, exposing 7 tools (get_token_price, get_price_history, get_volatility, 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.