Block MCP Server
Enables AI agents to interact with multiple blockchain networks to check wallet balances, gas prices, and transaction history on the Frax network. It also includes tools for real-time cryptocurrency conversion and sending automated notifications via Telegram.
README
⛓️ Block MCP Server
A Model Context Protocol (MCP) server for Blockchain interactions. This server enables AI agents to interact with multiple blockchain networks, check financial data, and send real-time notifications to Telegram.
🛠️ Tools Included
- 💰 Wallet Balance Checker: Retrieves native token balances for any wallet address across Ethereum, Polygon, Arbitrum, Optimism, and Base simultaneously using public RPC nodes.
- 📜 Frax Transactions: Fetches the 5 latest transactions on the FRAX network, including both native transfers and ERC-20 token events.
- ⛽ Gas Price Estimator: Provides real-time gas fee estimates (in Gwei) across multiple blockchain networks to help determine transaction costs.
- 💱 Crypto Converter: Converts cryptocurrency and fiat values using real-time market rates (e.g., BTC to ETH or USDC to USD).
- 🤖 Telegram Bot: Programmatically posts updates, messages, or automated notifications to a specific Telegram chat or channel.
⚙️ Setup Instructions
Prerequisites
- Python 3.11+
- uv
1. Environment Variables
Create a .env file in the root directory and populate it with your credentials:
# Telegram Configuration
TELEGRAM_BOT_TOKEN=your_bot_token_from_botfather
TELEGRAM_CHAT_ID=your_numeric_chat_id
# Blockchain API Keys
FRAXSCAN_API_KEY=your_fraxscan_api_key
# Optional: CoinGecko API Key
COINGECKO_API_KEY=your_api_key
2. Installation
-
Clone the repository:
git clone <YOUR_REPO_URL_HERE> cd <YOUR_REPO_NAME> -
Install dependencies: This project uses
uvfor fast dependency management.make install
🚀 How to Run
The easiest way to test the tools is using the built-in Makefile command, which launches the MCP Inspector.
make dev
Alternatively: uv run fastmcp dev main.py
📖 Usage & Examples
Below are example inputs for testing the tools in the MCP Inspector.
1. Wallet Balance Checker Tool (wallet_check)
Queries multiple public RPC endpoints to retrieve native balances across various chains.
- Input:
{ "address": "0x..." } - Response:
{ "Ethereum": "1.2450 ETH", "Arbitrum": "0.0000 ETH", "Polygon": "150.3200 MATIC", "Optimism": "0.0500 ETH", "Base": "0.1200 ETH" }
2. Frax Transaction History (get_frax_transactions)
Merges native and token transfer history from the Fraxscan API, sorted by timestamp.
- Input:
{ "address": "0x4200000000000000000000000000000000000015" } - Response:
[ { "time": "2026-01-30 18:00:00", "amount": "0.5000 frxETH", "token": "frxETH", "type": "Native", "hash": "0x..." } ]
3. Gas Price Estimator (get_gas_prices)
Monitors real-time gas prices (in Gwei) to estimate transaction costs.
- Input:
{} - Response:
{ "Ethereum": "🔴 45.2 Gwei", "Base": "🟢 0.01 Gwei" }
4. Crypto Converter (convert_crypto)
Converts time between timezones.
- Input:
{ "amount": 1, "from_coin": "bitcoin", "to_coin": "ripple" } - Response:
{ "Response": "1 BITCOIN = 1235999999.0 XRP (Rate: 95000)" }
5. Telegram Bot (send_telegram_message)
Sends messages to your configured Telegram chat through a bot.
- Input (Example: Addition):
{ "message": "Message from telegram bot" } - Response:
{ "Results": "Message sent succesfully" }
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。