mcp-crypto-monitor
An MCP server that gives AI agents the ability to check crypto wallet balances, track token prices, calculate portfolio value, monitor gas prices, and track the Fear & Greed Index — all with zero external dependencies using free public APIs.
README
MCP Crypto Monitor — Crypto Wallet & Price Monitoring for AI Agents
An MCP (Model Context Protocol) server that gives AI agents the ability to check crypto wallet balances, track token prices, calculate portfolio value, monitor gas prices, and track the Fear & Greed Index — all with zero external dependencies using free public APIs.
Why This Exists
Crypto monitoring tools typically require API keys, paid subscriptions, or heavy SDK installations. This MCP server uses only free public APIs (Blockchain.info, Etherscan, CoinGecko, Binance) with zero pip dependencies — pure Python stdlib. Your AI agent gets 10 crypto monitoring tools out of the box.
No API keys. No paid subscriptions. No pip installs. Just Python stdlib + internet.
Features
- 10 MCP Tools:
get_btc_balance,get_eth_balance,get_erc20_balance,get_btc_transactions,get_price,get_price_binance,get_portfolio_value,get_gas_price,get_fear_greed,monitor_address - Zero dependencies — pure Python stdlib (urllib, json)
- Free APIs only — Blockchain.info, Etherscan, CoinGecko, Binance, alternative.me
- Portfolio calculation — pass your holdings, get total USD value instantly
- STDIO JSON-RPC mode — drop-in for Claude Desktop, Hermes, or any MCP client
- BTC + ETH + ERC20 — address balance checks with transaction history
Quick Start
# STDIO mode (for MCP clients)
python -m src.server --stdio
# Or print the manifest
python -m src.server --manifest
Use as a library
from src.server import MCPCryptoMonitorServer
import json
server = MCPCryptoMonitorServer()
# Get BTC balance
result = server.handle_tool_call("get_btc_balance", {"address": "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa"})
print(json.loads(result))
# Get portfolio value
result = server.handle_tool_call("get_portfolio_value", {
"holdings": {"BTC": 0.5, "ETH": 10.0, "USDT": 5000.0}
})
print(json.loads(result)["total_value_usd"])
# Get current prices
result = server.handle_tool_call("get_price", {"coins": ["bitcoin", "ethereum", "monero"]})
# Get ETH gas price
result = server.handle_tool_call("get_gas_price", {})
# Get Fear & Greed Index
result = server.handle_tool_call("get_fear_greed", {})
MCP Tool Reference
| Tool | Description | Required Params |
|---|---|---|
get_btc_balance |
BTC address balance (satoshis + BTC) | address |
get_eth_balance |
ETH address balance (wei + ETH) | address |
get_erc20_balance |
ERC20 token balance | address, token_contract |
get_btc_transactions |
Recent BTC transactions | address |
get_price |
Prices from CoinGecko | coins |
get_price_binance |
Price from Binance | pair |
get_portfolio_value |
Total portfolio in USD | holdings |
get_gas_price |
ETH gas price (low/std/high gwei) | — |
get_fear_greed |
Crypto Fear & Greed Index | — |
monitor_address |
Balance + transactions in one call | address, coin |
Integration with MCP Clients
Claude Desktop
{
"mcpServers": {
"crypto-monitor": {
"command": "python",
"args": ["-m", "src.server", "--stdio"],
"cwd": "/path/to/mcp-crypto-monitor"
}
}
}
Hermes Agent
mcp:
servers:
crypto-monitor:
command: python
args: ["-m", "src.server", "--stdio"]
cwd: /path/to/mcp-crypto-monitor
Tests
python -m pytest tests/ -v # 30 tests, all passing
API Sources
| API | Usage | Key Required |
|---|---|---|
| Blockchain.info | BTC balance + transactions | No |
| Etherscan | ETH balance + gas price | No (rate-limited) |
| CoinGecko | Token prices | No |
| Binance | Trading pair prices | No |
| alternative.me | Fear & Greed Index | No |
License
MIT
Author
aaameobius-crypto — github.com/aaameobius-crypto
Freelance portfolio: https://ameobius-space.github.io/kwork-portfolio/
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。