1scan MCP Server

1scan MCP Server

1scan•byhuahuayu

An MCP server that lets AI assistants query multiple etherscan-like blockchain explorer APIs for on-chain data.

License: MIT License•Runtime: Awaiting documentation review•Category: finance crypto

WHAT IT DOES

  • •Exposes blockchain query tools to AI models, including account balance, token balance, transaction details, block information, contract ABI and source code, token info, gas price and event logs.
  • •Provides transaction and block lookup tools such as transaction receipts, transaction counts, block-by-hash and block transaction counts.
  • •Supports querying normal and internal transactions plus ERC-20 and ERC-721 transfer events by address or contract.
  • •Can be run with configurable port, endpoint path, config file and transport type (sse or stdio).

BEST FOR

  • •AI assistants in Cursor IDE that need direct blockchain data queries during conversations.
  • •Users wanting to check account balances, token balances, transactions, blocks, contract ABIs and source code across multiple chains via an AI interface.
  • •Comparing conditions such as gas fees across different blockchain networks.

ABOUT 1SCAN

1scan MCP Server is cataloged as an MCP server attributed to huahuayu. An MCP server that lets AI assistants query multiple etherscan-like blockchain explorer APIs for on-chain data. It is categorized under finance crypto. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for 1scan MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Which blockchain networks can the MCP server query?

It supports many etherscan-like explorers including Ethereum, Binance Smart Chain, Arbitrum One, Polygon, Optimism, Avalanche C-Chain, Base, zkSync Era, Gnosis, Fantom, Mantle and others in the supported networks table.

What transport types does the MCP server support?

It supports sse or stdio transport, defaulting to sse.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 9a987aa2b83f · 采集于 2026-11-13 10:17:31 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

1scan - Blockchain Explorer API Gateway & MCP Server

A unified API gateway for integrating multiple etherscan-like blockchain explorer APIs with Model Context Protocol (MCP) support for AI assistants.

Overview

1scan provides two main components:

  1. API Gateway: A unified endpoint for accessing multiple blockchain explorer APIs
  2. MCP Server: Allows AI models (like Claude in Cursor IDE) to directly query blockchain data

Supported Blockchain Networks

Apply for your own API key from the corresponding blockchain explorer

Network NameChain IDExplorer LinkExplorer API Endpoint
Ethereum1https://etherscan.ioapi.etherscan.io
Binance Smart Chain56https://bscscan.comapi.bscscan.com
Arbitrum One42161https://arbiscan.ioapi.arbiscan.io
Polygon137https://polygonscan.comapi.polygonscan.com
Optimism10https://optimistic.etherscan.ioapi-optimistic.etherscan.io
Avalanche C-Chain43114https://snowtrace.ioapi.snowtrace.io
Base8453https://basescan.orgapi.basescan.org
zkSync Era324https://explorer.zksync.ioblock-explorer-api.mainnet.zksync.io
Gnosis100https://gnosisscan.ioapi.gnosisscan.io
Fantom250https://ftmscan.comapi.ftmscan.com
Mantle5000https://mantlescan.infoapi.mantlescan.info
Cronos25https://cronoscan.comapi.cronoscan.com
Polygon ZkEVM1101https://zkevm.polygonscan.comapi-zkevm.polygonscan.com
Linea59144https://lineascan.buildapi.lineascan.build
Moonbeam1284https://moonscan.ioapi.moonscan.io
Celo42220https://celoscan.ioapi.celoscan.io
Scroll534352https://scrollscan.comapi.scrollscan.com
OpBNB204https://opbnbscan.comapi.opbnbscan.com
Moonriver1285https://moonriver.moonscan.ioapi-moonriver.moonscan.io
Arbitrum Nova42170https://nova.arbiscan.ioapi-nova.arbiscan.io
Blast81457https://blastscan.ioapi.blastscan.io
Fraxtal252https://fraxscan.comapi.fraxscan.com
Wemix1111https://wemixscan.comapi.wemixscan.com
Xai660279https://xaiscan.ioapi.xaiscan.io
World Chain480https://worldscan.orgapi.worldscan.org
Ape33139https://apescan.io/api.apescan.io
Kroma255https://kromascan.comapi.kromascan.com
Taiko167000https://taikoscan.ioapi.taikoscan.io
Bittorrent199https://bttcscan.comapi.bttcscan.com
Xdc50https://xdcscan.ioapi.xdcscan.io

Features

  • 🔄 Unified API endpoint for multiple blockchain explorers
  • ⚖️ API load balancing
  • 🔑 API rate limit management
  • 🎯 Custom API key support via URL parameters
  • 🤖 MCP server for AI assistants to query blockchain data

Installation

From Go

go install github.com/huahuayu/1scan@latest

From Source

# Clone the repository
git clone https://github.com/huahuayu/1scan.git
cd 1scan

# Build both 1scan API server and MCP server
make build

Quick Start

1. Create Configuration File

Create a config.json file with your API keys:

{
  "1": {
    "endpoint": "api.etherscan.io",
    "keys": {
      "YOUR_ETHERSCAN_API_KEY_1": 5,
      "YOUR_ETHERSCAN_API_KEY_2": 10
    }
  },
  "56": {
    "endpoint": "api.bscscan.com",
    "keys": {
      "YOUR_BSCSCAN_API_KEY": 5
    }
  }
}

Each chain entry contains:

  • chainID: The blockchain network ID
  • endpoint: The API endpoint for the blockchain explorer
  • keys: Map of API keys and their rate limits (requests per second)

2. Run the API Server

# Run with default settings
1scan -config /path/to/config.json

# Or using make
make run-1scan

3. Run the MCP Server

# Run with default settings
1scanmcp -config /path/to/config.json # default serve at port 3000

# Or using make
make run-1scanmcp

# With custom settings
1scanmcp -config /path/to/config.json -port 3000 -path /mcp

Integrating with Cursor IDE

To use 1scan MCP in Cursor IDE:

  1. Start both the API server and MCP server

    # Terminal 1
    make run-1scan
    
    # Terminal 2
    make run-1scanmcp
    
  2. In Cursor IDE, go to Settings → AI → MCP Servers

  3. Add a new MCP server with the URL:

{
  "mcpServers": {
    "1scan": {
      "url": "http://localhost:3000/mcp/sse"
    }
  }
}
  1. Restart Cursor IDE if necessary

  2. Now you can use blockchain data in your AI conversations:

    Can you check the balance of address 0x742d35Cc6634C0532925a3b844Bc454e4438f44e on Ethereum?
    

MCP Server Configuration

When running the MCP server, you can customize it with these parameters:

  • -port: Port to run the MCP server on (default: "3000")
  • -path: Path for the MCP server endpoint (default: "/mcp")
  • -config: Path to configuration file (default: "config.json")
  • -transport: Transport type (sse or stdio) (default: "sse")

Example:

1scanmcp -port 3000 -config /path/to/config.json

Available MCP Tools

The MCP server exposes these tools to AI models:

  • getAccountBalance - Get the balance of an account on a specific blockchain
  • getTokenBalance - Get the token balance of an account on a specific blockchain
  • getTransactionByHash - Get transaction details by hash
  • getBlockByNumber - Get block information by block number
  • getContractABI - Get the ABI for a verified contract
  • getContractSourceCode - Get the source code of a verified contract
  • getTokenInfo - Get information about an ERC20 token
  • getGasPrice - Get current gas price on a specific blockchain
  • getLogs - Get event logs matching specified parameters
  • getTransaction - Get details of a transaction by its hash
  • getTransactionCount - Get the number of transactions sent from an address
  • getTransactionReceipt - Get transaction receipt by transaction hash
  • getBlockTransactionCountByNumber - Get the number of transactions in a block
  • getBlockTransactionCountByHash - Get the number of transactions in a block by block hash
  • getBlockByHash - Get information about a block by its hash
  • getNormalTransactions - Get normal transactions by address
  • getInternalTransactions - Get internal transactions by address or transaction hash
  • getERC20Transfers - Get ERC-20 token transfer events by address or contract
  • getERC721Transfers - Get ERC-721 NFT transfer events by address or contract
  • getValidators - Get validator information (for networks with validator sets)
  • getContractCreation - Get contract creation information
  • getContractVerificationStatus - Check contract verification status

Example MCP Interactions

Here are examples of how to interact with blockchain data through the MCP interface:

# Get account balance
What's the ETH balance of vitalik.eth (0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045) on Ethereum?

# Check a token balance
What's the USDC balance of address 0x28C6c06298d514Db089934071355E5743bf21d60 on Ethereum?

# Examine a transaction
Can you analyze transaction 0xdd6d7f687c9821404ae8c2ea7de5cfb5a23fc4c01ef1e7f535748cb147aa76dd on Ethereum?

# Look up block information
What transactions were in Ethereum block 18700000?

# Get contract ABI
Can you show me the ABI for the USDC contract (0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48) on Ethereum?

# Analyze contract source code
I need to understand how the Uniswap V3 router works. Can you show me the source code for 0xE592427A0AEce92De3Edee1F18E0157C05861564 on Ethereum?

# Check multiple chains
What's the difference in gas fees between Ethereum and Arbitrum right now?

# Examine token information
Tell me about the tokenomics of the APE token on Ethereum.

Complete List of MCP Tools

The MCP server exposes these tools to AI models:

  • getAccountBalance - Get the balance of an account on a specific blockchain
  • getTokenBalance - Get the token balance of an account on a specific blockchain
  • getTransactionByHash - Get transaction details by hash
  • getBlockByNumber - Get block information by block number
  • getContractABI - Get the ABI for a verified contract
  • getContractSourceCode - Get the source code of a verified contract
  • getTokenInfo - Get information about an ERC20 token
  • getGasPrice - Get current gas price on a specific blockchain
  • getLogs - Get event logs matching specified parameters
  • getTransaction - Get details of a transaction by its hash
  • getTransactionCount - Get the number of transactions sent from an address
  • getTransactionReceipt - Get transaction receipt by transaction hash
  • getBlockTransactionCountByNumber - Get the number of transactions in a block
  • getBlockTransactionCountByHash - Get the number of transactions in a block by block hash
  • getBlockByHash - Get information about a block by its hash
  • getNormalTransactions - Get normal transactions by address
  • getInternalTransactions - Get internal transactions by address or transaction hash
  • getERC20Transfers - Get ERC-20 token transfer events by address or contract
  • getERC721Transfers - Get ERC-721 NFT transfer events by address or contract
  • getValidators - Get validator information (for networks with validator sets)
  • getContractCreation - Get contract creation information
  • getContractVerificationStatus - Check contract verification status

Troubleshooting MCP Integration

If you encounter issues connecting to the MCP server from Cursor:

  1. Verify both servers are running:

    # Check if servers are running
    ps aux | grep 1scanmcp
    
  2. Ensure the correct URL is configured in Cursor

License

MIT License

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for 1scan MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/1scan)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related finance crypto MCP Servers

Alternative and complementary servers in the same category

View all in finance crypto →
USA Spending MCP Server
usaspending-mcp-server•thsmale

A stateless streamable HTTP MCP server for interacting with the official source of government spending data.

Repository stats unavailable
Finance & Analytics
Fortnox MCP server — More AI
more-ai-chatgpt-claude-mcp-fortnox•amor3

A hosted, remote MCP server for Fortnox that lets AI assistants answer questions from a company's bookkeeping and propose changes for approval before writing them.

0
Finance & Analytics

OptimistFi is a read-only remote MCP server that provides perpetual futures market data, perps prop firm rules and pricing, and US equity investment research.

Repository stats unavailable
Finance & Analytics