An MCP server that provides real-time cross-chain bridge metrics, enabling AI agents to analyze liquidity, transaction flows, and performance across blockchain networks. - List Chains: Retrieve a list of all chain slugs from DeFiLlama, sorted by Total Value Locked (TVL) in descending order. - List Bridges: Fetch all bridges, optionally including chain breakdowns, sorted by 24-hour volume. - Histor
Add this skill
npx mdskills install kukapay/bridge-metrics-mcpComprehensive bridge metrics MCP server with clear tool descriptions and excellent examples
An MCP server that provides real-time cross-chain bridge metrics, enabling AI agents to analyze liquidity, transaction flows, and performance across blockchain networks.
YYYY-MM-DD HH:MM:SS.Clone the Repository:
git clone https://github.com/kukapay/bridge-metrics-mcp.git
cd bridge-metrics-mcp
Install dependencies:
uv sync
Install to Claude Desktop:
Install the server as a Claude Desktop application:
uv run mcp install main.py --name "Bridge Metrics"
Configuration file as a reference:
{
"mcpServers": {
"Bridge Metrics": {
"command": "uv",
"args": [ "--directory", "/path/to/bridge-metrics-mcp", "run", "main.py" ]
}
}
}
Replace /path/to/bridge-metrics-mcp with your actual installation path.
The server provides the following tools, accessible via JSON-RPC or natural language prompts in compatible clients:
list_chains:
Name, Gecko ID, Token Symbol, Chain ID, TVL.list_bridges:
include_chains (boolean, default False).ID, Name, Display Name, Last 24h Volume, Chains.get_historical_volumes:
YYYY-MM-DD HH:MM:SS.chain (string, required), bridge_id (integer, optional).Date, Deposit USD, Withdraw USD, Deposit Txs, Withdraw Txs.get_day_stats:
timestamp (integer, required), chain (string, required), bridge_id (integer, optional).Token ID, Symbol, Decimals, Deposit Amount, Deposit USD Value, Withdraw Amount, Withdraw USD Value.get_transactions:
bridge_id (integer, required), start_timestamp, end_timestamp, source_chain, address, limit (all optional).Tx Hash, Timestamp, Block, From, To, Token, Amount, Type, Chain, Bridge Name, USD Value.Prompts:
analyze_bridge_volume: Analyzes volume data for a specific bridge.compare_bridges: Compares two bridges based on a specified metric (e.g., weeklyVolume).Below are example interactions using natural language prompts in a compatible MCP client, along with expected results.
Prompt:
List all chains available on DeFiLlama.
Tool Called: list_chains
Result:
+----------------+-------------+---------------+-----------+-------------+
| Name | Gecko ID | Token Symbol | Chain ID | TVL |
+================+=============+===============+===========+=============+
| Ethereum | ethereum | ETH | 1 | 50000000000 |
| Binance Smart | binance-smart-chain | BNB | 56 | 15000000000 |
| Polygon | polygon | MATIC | 137 | 5000000000 |
+----------------+-------------+---------------+-----------+-------------+
Prompt:
Show all bridges with their supported chains, sorted by 24-hour volume.
Tool Called: list_bridges(include_chains=True)
Result:
+----+-------------+---------------+-----------------+----------------------------------+
| ID | Name | Display Name | Last 24h Volume | Chains |
+====+=============+===============+=================+==================================+
| 1 | polygon | Polygon | 1000000 | Ethereum, Polygon, Binance Smart |
| 2 | optimism | Optimism | 750000 | Ethereum, Optimism |
| 3 | arbitrum | Arbitrum | 500000 | Ethereum, Arbitrum |
+----+-------------+---------------+-----------------+----------------------------------+
Prompt:
Get historical volumes for the Ethereum chain.
Tool Called: get_historical_volumes(chain="ethereum")
Result:
+---------------------+---------------+---------------+---------------+---------------+
| Date | Deposit USD | Withdraw USD | Deposit Txs | Withdraw Txs |
+=====================+===============+===============+===============+===============+
| 2025-09-12 00:00:00 | 1000000.0 | 500000.0 | 150 | 100 |
| 2025-09-11 00:00:00 | 1200000.0 | 600000.0 | 180 | 120 |
| 2025-09-10 00:00:00 | 900000.0 | 450000.0 | 130 | 90 |
+---------------------+---------------+---------------+---------------+---------------+
Prompt:
Show the 24-hour token stats for bridge ID 1 on Ethereum for September 12, 2025.
Tool Called: get_day_stats(timestamp=1752499200, chain="ethereum", bridge_id=1)
Result:
+----------------+--------+----------+------------------+-------------------+------------------+-------------------+
| Token ID | Symbol | Decimals | Deposit Amount | Deposit USD Value | Withdraw Amount | Withdraw USD Value|
+================+========+==========+==================+===================+==================+===================+
| 0xa0b869... | USDC | 6 | 2000000 | 2000000.0 | 0 | 0.0 |
| 0xc02aaa... | ETH | 18 | 1000000000000000 | 1500000.0 | 500000000000000 | 750000.0 |
| 0xdac17f... | DAI | 18 | 0 | 0.0 | 1000000000000000 | 1000000.0 |
+----------------+--------+----------+------------------+-------------------+------------------+-------------------+
Prompt:
Analyze the volume data for the Polygon bridge using historical volumes.
Tool Called: get_historical_volumes(chain="polygon", bridge_id=1), followed by analyze_bridge_volume
Result:
Analyze the following volume data for the bridge 'Polygon':
+---------------------+---------------+---------------+---------------+---------------+
| Date | Deposit USD | Withdraw USD | Deposit Txs | Withdraw Txs |
+=====================+===============+===============+===============+===============+
| 2025-09-12 00:00:00 | 800000.0 | 400000.0 | 120 | 80 |
| 2025-09-11 00:00:00 | 900000.0 | 450000.0 | 140 | 90 |
| 2025-09-10 00:00:00 | 700000.0 | 350000.0 | 100 | 70 |
+---------------------+---------------+---------------+---------------+---------------+
Key insights:
- The Polygon bridge shows consistent deposit and withdrawal activity over the past three days.
- Deposits are roughly double the withdrawals in USD value, indicating higher inflow than outflow.
- Transaction counts are stable, with deposits averaging 120 transactions per day.
This project is licensed under the MIT License. See the LICENSE file for details.
Install via CLI
npx mdskills install kukapay/bridge-metrics-mcpBridge Metrics MCP is a free, open-source AI agent skill. An MCP server that provides real-time cross-chain bridge metrics, enabling AI agents to analyze liquidity, transaction flows, and performance across blockchain networks. - List Chains: Retrieve a list of all chain slugs from DeFiLlama, sorted by Total Value Locked (TVL) in descending order. - List Bridges: Fetch all bridges, optionally including chain breakdowns, sorted by 24-hour volume. - Histor
Install Bridge Metrics MCP with a single command:
npx mdskills install kukapay/bridge-metrics-mcpThis downloads the skill files into your project and your AI agent picks them up automatically.
Bridge Metrics MCP works with Claude Code, Claude Desktop, Cursor, Vscode Copilot, Windsurf, Continue Dev, Gemini Cli, Amp, Roo Code, Goose. Skills use the open SKILL.md format which is compatible with any AI coding agent that reads markdown instructions.