# DefiLlama MCP for AI Agents AI Agent Connect

> DefiLlama (DeFi Analytics) connects your AI agent to the leading aggregator for decentralized finance data. It lets you pull real-time TVL, token prices, yield farming opportunities, and bridge volumes across multiple chains. Stop manual scraping and let your agent do the heavy lifting for on-chain research.

## Overview
- **Category:** data-analytics
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_fk2smHObQez1FZWVD6gJDk8kAT57AKOsngV9sZay/ai-agent-connect
- **Tags:** defi, tvl, crypto-prices, yield-farming, on-chain-data

## Description

You want to know what's happening in the DeFi space without spending your afternoon jumping between twenty different tabs and copying numbers into a spreadsheet. This Connector lets you treat DefiLlama like a direct data feed for your AI agent. Instead of manually searching for the latest TVL on a specific chain or trying to find the best APY for a liquidity pool, you can just ask your agent to do it for you. It pulls in the raw numbers for things like DEX volumes, stablecoin market caps, and historical price charts. If you're trying to figure out which protocols are actually growing or which bridges are seeing the most activity, the data is right there. It makes the whole research process feel like a conversation rather than a data entry job. You'll find it's a lot faster to get a pulse on the market when your agent can instantly grab historical trends or current yields across dozens of different ecosystems. Vinkius makes it easy to plug this into your existing workflow so you can focus on making decisions instead of hunting for data points.

## Tools

### get_all_pools
Retrieves current APY and TVL for all liquidity pools. This helps you spot the best yield farming opportunities quickly.

### get_all_stablecoins
Lists all stablecoins currently tracked. Use it to get a full list of stable assets in the ecosystem.

### get_bridge_volume_chain
Shows bridge volume for a specific chain. Use it to see how much capital is moving in or out of a network.

### get_current_prices
Gets the price of specific tokens using a chain and address format. Use it to check real-time values for any asset.

### get_current_tvl_chain
Returns the current TVL for one specific blockchain. It's great for focusing on a single network's health.

### get_dex_volume_chain
Shows the DEX volume for a specific chain. Use it to measure trading activity on a particular network.

### get_dex_volumes_global
Provides a global view of DEX volumes. It helps you see the total trading scale of the entire DeFi market.

### get_historical_prices
Gets token prices at a specific point in time. Use this to see how an asset performed on a specific date.

### get_historical_tvl_global
Pulls the historical TVL of the entire DeFi ecosystem. It's the go-to for seeing the long-term growth of DeFi.

### get_percentage_change
Calculates the price change over a specific period. Use it to see how much an asset has moved in a day or week.

### get_pool_historical_data
Retrieves historical APY and TVL for a specific pool. It helps you see if a pool's yield is sustainable.

### get_price_chart
Generates a price chart for a token over time. Use it to visualize price action for your research reports.

### get_protocol
Fetches historical TVL data for a specific protocol. It's perfect for analyzing a project's growth trajectory.

### get_stablecoin_historical_data
Retrieves historical data for stablecoins. Use it to monitor peg stability over time.

### get_stablecoin_market_cap_chain
Gets the stablecoin market cap for a specific chain. It's a key metric for measuring liquidity on a network.

### get_all_bridges
Lists every bridge currently tracked by DefiLlama. Use this to see all cross-chain paths at once.

### get_all_chains_tvl
Fetches the current Total Value Locked for every chain. It's the fastest way to see which networks are currently leading.

### get_protocols
Lists all protocols on DefiLlama with their current TVL. Use this to get a bird's-eye view of the whole market.

### get_historical_tvl_chain
Pulls historical TVL for a specific blockchain. Use it to track the growth of a single chain over months or years.

## Prompt Examples

**Prompt:** 
```
What's the current TVL on Arbitrum?
```

**Response:** 
```
The current Total Value Locked on Arbitrum is approximately $2.56 billion. This represents the aggregate value across all supported protocols on that network.
```

**Prompt:** 
```
List all DeFi protocols and their current TVL.
```

**Response:** 
```
I've retrieved the list of protocols. Currently, Lido leads with a TVL of $28.4B, followed by EigenLayer and Aave. Would you like to see the historical data for any of these?
```

**Prompt:** 
```
Show me the price chart for USDC on Ethereum.
```

**Response:** 
```
Fetching the price chart for USDC (ethereum:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48)... The data shows a stable peg at $1.00 with minor fluctuations over the last 24 hours.
```

## Capabilities

### Track TVL across all chains
Get the current Total Value Locked for every blockchain in the ecosystem in one request.

### Pull real-time token prices
Fetch current prices for specific tokens using their chain and contract address.

### Find the best pool yields
Identify the highest APY and TVL for all liquidity pools across the market.

### Analyze DEX and bridge volumes
Check the volume of trades on DEXs or the amount of capital moving across bridges.

### Get historical market trends
Access time-series data for TVL, prices, and stablecoins to see long-term growth.

### Monitor stablecoin market caps
See the total market cap of stablecoins on specific chains to measure network liquidity.

## Use Cases

### Comparing chain activity
A researcher needs to know which chain has the most activity. Ask the agent to compare get_all_chains_tvl and get_dex_volume_chain for Arbitrum versus Optimism.

### Finding the best yield spot
A yield farmer wants to find the best spot for USDC. Ask the agent to use get_all_pools to find the highest APY for USDC pools across all chains.

### Analyzing protocol growth
A dev needs to know if a protocol is growing. Ask the agent to use get_protocol to pull the last 6 months of TVL for a specific new launch.

### Monitoring stablecoin liquidity
A manager wants to check stablecoin liquidity. Ask the agent to use get_stablecoin_market_cap_chain to compare the stablecoin supply on Ethereum and Solana.

## Benefits

- Stop manual data scraping by using get_protocols to see every major project and its TVL in one go.
- Identify high-yield opportunities faster by using get_all_pools to see current APY across the entire market.
- Track market movements accurately with get_percentage_change to see how assets have moved over specific timeframes.
- Visualize price action easily with get_price_chart to see trends without having to open multiple external charting tools.
- Monitor liquidity health by using get_stablecoin_market_cap_chain to see how much stable capital is on a specific network.
- Analyze long-term growth with get_historical_tvl_global to see how the DeFi ecosystem has expanded over time.

## How It Works

The bottom line is you get instant access to professional-grade DeFi data through a simple chat interface.

1. Subscribe to the DefiLlama MCP on Vinkius.
2. Enter your DefiLlama API key in the config if you have a pro account.
3. Ask your AI client to pull specific DeFi metrics like TVL, yields, or bridge volumes.

## Frequently Asked Questions

**Can the DefiLlama MCP help me find the best yield farming pools?**
Yes, it can pull the current APY and TVL for all liquidity pools at once. This allows your agent to identify the highest-earning opportunities across different chains instantly.

**How do I use DefiLlama MCP to track TVL on specific chains?**
You can ask your agent to fetch the TVL for any specific blockchain. It will return the current total value locked, helping you see which networks are gaining the most traction.

**Can DefiLlama MCP provide historical data for crypto projects?**
Yes, it can pull historical TVL for specific protocols and the entire DeFi ecosystem. This helps you see how a project has grown over months or years.

**Does the DefiLlama MCP work for stablecoin analysis?**
It does. You can use it to get the current market cap of stablecoins on specific chains or look at their historical performance to check for peg stability.

**Is the DefiLlama MCP good for comparing DEX volumes?**
It's great for that. You can pull global DEX volumes or specific chain volumes to see where the most trading activity is happening in real time.

**Can I use DefiLlama MCP to see bridge activity?**
Yes, it can pull the volume for all bridges or for specific chains. This makes it easy to see how much capital is moving between different blockchains.

**How can I check the current TVL of a specific blockchain like Ethereum or Solana?**
You can use the `get_current_tvl_chain` tool by providing the chain name. The agent will return the total value locked in USD for that specific network immediately.

**Is it possible to see a price chart for a specific token?**
Yes! Use the `get_price_chart` tool with the token's chain and address (e.g., `ethereum:0x...`). It will provide historical price data points that your agent can use to describe trends.

**How do I find the highest yielding liquidity pools available?**
The `get_all_pools` tool retrieves current APY and TVL data for all tracked pools. Your agent can then filter and sort these to find the best opportunities based on your criteria.