Base Network MCP Server
Enables querying Base Network blockchain data including blocks, transactions, balances, and smart contracts on mainnet and testnet.
README
Base Network MCP Server
A Model Context Protocol (MCP) server for accessing Base Network blockchain data. Provides tools for querying blocks, transactions, balances, and smart contracts on Base mainnet and testnet.
Features
- 9 blockchain tools (7 work without API key)
- Base mainnet and Sepolia testnet support
- Real-time blockchain data access
- Docker support
- Multiple transport options (stdio, HTTP)
Quick Start
Install and Build
git clone https://github.com/u-Operating-System/basescan-mcp-server.git
cd basescan-mcp-server
npm install
npm run build
Run the Server
# For Claude Desktop (recommended)
npm start
# For HTTP server
MCP_TRANSPORT_TYPE=http npm start
Optional: BaseScan API Key
Get enhanced features by adding a free BaseScan API key:
- Visit https://basescan.org/apis
- Create account and get API key
- Add to environment:
BASESCAN_API_KEY=your-key
Claude Desktop Setup
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"base-network": {
"command": "node",
"args": ["/path/to/basescan-mcp-server/build/index.js"],
"env": {
"BASESCAN_API_KEY": "your-key-here"
}
}
}
}
Docker
# Basic setup
docker run -p 3010:3010 basescan-mcp-server
# With API key
docker run -p 3010:3010 -e BASESCAN_API_KEY=your-key basescan-mcp-server
Available Tools
| Tool | Description | Requires API Key |
|---|---|---|
get_latest_block |
Latest block information | No |
get_block |
Block by number/hash | No |
get_transaction |
Transaction details | No |
get_balance |
ETH balance lookup | No |
get_gas_price |
Current gas prices | No |
check_contract |
Smart contract detection | No |
get_network_stats |
Network statistics | No |
get_account_transactions |
Account transaction history | Yes |
get_account_tokens |
Token transfer history | Yes |
Configuration
Configure via environment variables:
NODE_ENV=development # development|production
MCP_TRANSPORT_TYPE=stdio # stdio|http
MCP_HTTP_PORT=3010 # HTTP port
BASESCAN_API_KEY=your-key # BaseScan API key (optional)
MCP_LOG_LEVEL=info # debug|info|warning|error
Security
- Store API keys in environment variables
- Never commit
.envfiles with real values - Use HTTPS in production
Networks
- Base Mainnet: Chain ID 8453
- Base Sepolia: Chain ID 84532
Development
npm run dev # Development with hot reload
npm test # Run tests
npm run lint # Code linting
npm run format # Code formatting
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.