Base MCP Server
A read-only MCP server that lets any MCP-compatible AI agent inspect wallets and contracts on Base directly through natural conversation.
README
Base MCP Server
A read-only MCP (Model Context Protocol) server that lets any MCP-compatible AI agent — Claude Desktop, Claude Code, or any other MCP client — inspect wallets and contracts on Base directly through natural conversation, instead of manually looking things up on a block explorer.
This server distills five standalone tools from this collection (a transaction monitor, a contract verifier, an airdrop eligibility checker, a rug-pull risk scorer, and a token approval checker) into one always-available set of MCP tools, backed by the same well-tested Base data logic.
Tools exposed
| Tool | What it does |
|---|---|
get_wallet_balance |
ETH balance of an address |
get_recent_transactions |
Most recent transactions for an address |
get_wallet_activity |
0-100 heuristic on-chain activity score |
check_contract_verification |
Source verification, proxy status, owner status |
check_rugpull_risk |
0-100 heuristic scam-pattern risk score |
check_token_approvals |
Active ERC-20/NFT approvals granted by a wallet |
⚠️ This server is read-only
It never asks for or handles a private key, and cannot send transactions, sign anything, or revoke approvals — every tool only reads public Base blockchain data (via the Blockscout Pro API and Base's public RPC node).
Setup
1. Requirements
- Python 3.10+
- A free Blockscout Pro API key: https://dev.blockscout.com/ → Login → create a key
2. Install
git clone https://github.com/YOUR_USER/base-mcp-server.git
cd base-mcp-server
pip install -r requirements.txt
3. Configure your MCP client
Claude Desktop — edit your claude_desktop_config.json
(Settings → Developer → Edit Config) and add:
{
"mcpServers": {
"base-tools": {
"command": "python",
"args": ["/absolute/path/to/base-mcp-server/server.py"],
"env": {
"BLOCKSCOUT_API_KEY": "your_key_here"
}
}
}
}
Claude Code — from the project directory:
claude mcp add base-tools --env BLOCKSCOUT_API_KEY=your_key_here -- python /absolute/path/to/base-mcp-server/server.py
Any other MCP client — point it at python server.py with
BLOCKSCOUT_API_KEY set in its environment; the server speaks
standard MCP over stdio.
Restart your client after editing the config. You should see
base-tools (with its 6 tools) show up as an available MCP server.
4. Try it
Once connected, just ask your agent things like:
- "What's the ETH balance of 0x...?"
- "Check this Base contract for rug-pull risk: 0x..."
- "Does this wallet have any risky unlimited token approvals?"
- "Is this contract's source code verified on Base?"
- "Show me the last 10 transactions for this address."
The agent will call the relevant tool automatically based on what you ask.
How it works
- All tools talk to Base (chainId 8453) through the free, Etherscan-compatible
Blockscout Pro API, plus a couple of direct JSON-RPC calls to Base's
official public node (
mainnet.base.org) for on-chain reads likeowner()andallowance()that are more reliable done directly than through an explorer's compatibility layer. - Every tool degrades gracefully: if an API call fails, the tool returns a clear text message explaining that, instead of crashing the whole server or the agent's turn.
- The rug-pull risk score and activity score use the exact same heuristics as the standalone Base Rug Pull Early Warning and Base Airdrop Eligibility Checker tools — see those repos for more detail on the scoring logic.
Limitations
- Heuristic tools (
check_rugpull_risk,get_wallet_activity) are not a substitute for a real security audit or official program criteria — always verify independently before acting on the results. - Transaction and approval scanning samples up to 1,000 recent events for performance; very old activity outside that window won't be reflected.
- Depends on the free tiers of the Blockscout Pro API and Base's public RPC node; if either is rate-limited or briefly down, the affected tool will report that instead of returning data.
License
MIT — use it, modify it, fork it freely.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。