1scan
by huahuayu
1scan is a unified API gateway for integrating multiple etherscan-like blockchain explorer APIs with Model Context Protocol (MCP) support for AI assistants. It provides a single endpoint to access blockchain data and allows AI models to directly query blockchain information.
Last updated: N/A
What is 1scan?
1scan is an API gateway and MCP server that unifies access to multiple blockchain explorer APIs. It provides a single endpoint for querying blockchain data and integrates with AI models through the Model Context Protocol (MCP).
How to use 1scan?
- Install 1scan using Go or from source.
- Create a configuration file (
config.json
) with API keys for the desired blockchain explorers. - Run the API server and MCP server using the provided commands.
- Integrate the MCP server with AI tools like Cursor IDE by adding the server URL in the settings.
Key features of 1scan
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
Use cases of 1scan
Integrating blockchain data into AI applications
Querying blockchain information using natural language
Analyzing transaction data and smart contract behavior
Monitoring account balances and token transfers
FAQ from 1scan
What blockchain networks are supported?
What blockchain networks are supported?
1scan supports Ethereum, Binance Smart Chain, Arbitrum One, Polygon, Optimism, Avalanche C-Chain, Base, zkSync Era, Gnosis, Fantom, Mantle, Cronos, Polygon ZkEVM, Linea, Moonbeam, Celo, Scroll, OpBNB, Moonriver, Arbitrum Nova, Blast, Fraxtal, Wemix, Xai, World Chain, Ape, Kroma, Taiko, Bittorrent, Xdc and more.
How do I configure API keys?
How do I configure API keys?
Create a config.json
file with the API keys for each blockchain network. Specify the endpoint and rate limits for each key.
How do I run the MCP server?
How do I run the MCP server?
Use the 1scanmcp
command with the -config
flag to specify the configuration file. You can also customize the port and path using -port
and -path
flags.
How do I integrate 1scan with Cursor IDE?
How do I integrate 1scan with Cursor IDE?
Start both the API server and MCP server. In Cursor IDE, go to Settings → AI → MCP Servers and add a new MCP server with the URL (e.g., http://localhost:3000/mcp/sse
).
What MCP tools are available?
What MCP tools are available?
The MCP server exposes tools like getAccountBalance
, getTokenBalance
, getTransactionByHash
, getBlockByNumber
, getContractABI
, getContractSourceCode
, getTokenInfo
, getGasPrice
, and many more for querying blockchain data.