mcp-otc
OfficialMCP Etherscan サーバー
Etherscan APIを介してEthereumブロックチェーンデータツールを提供するMCP(Model Context Protocol)サーバー。ETH残高の確認、トランザクション履歴の表示、ERC20送金の追跡、コントラクトABIの取得、ガス価格の監視、ENS名の解決などの機能を備えています。
特徴
残高確認: 任意のEthereumアドレスのETH残高を取得
取引履歴: 最近の取引を詳細情報とともに表示します
トークン転送: トークンの詳細でERC20トークンの転送を追跡します
コントラクト ABI : 開発用のスマート コントラクト ABI を取得します。
ガソリン価格:現在のガソリン価格(安全低価格、標準価格、高速価格)を監視します
ENS解決: EthereumアドレスをENS名に解決する
Related MCP server: MCP Etherscan Server
前提条件
Node.js >= 18
Etherscan API キー ( https://etherscan.io/apisで取得)
インストール
リポジトリをクローンします。
git clone [your-repo-url]
cd mcp-etherscan-server依存関係をインストールします:
npm installルート ディレクトリに
.envファイルを作成します。
ETHERSCAN_API_KEY=your_api_key_hereプロジェクトをビルドします。
npm run buildサーバーの実行
サーバーを起動します。
npm startサーバーは stdio 上で実行されるため、Claude Desktop などの MCP クライアントと互換性があります。
仕組み
このサーバーは、モデルコンテキストプロトコル(MCP)を実装し、EtherscanのAPIを介してEthereumブロックチェーンデータとやり取りするためのツールを提供します。各ツールは、互換性のあるクライアントから呼び出すことができるMCPエンドポイントとして公開されます。
利用可能なツール
check-balance入力: Ethereumアドレス
出力: WeiとETHの両方のETH残高
get-transactions入力: Ethereumアドレス、オプションの制限
出力: タイムスタンプ、値、アドレスを含む最近の取引
get-token-transfers入力: Ethereumアドレス、オプションの制限
出力: 最近のERC20トークン転送とトークンの詳細
get-contract-abi入力: 契約アドレス
出力: JSON形式の契約ABI
get-gas-prices入力: なし
出力: グウェイの現在のガス価格
get-ens-name入力: Ethereumアドレス
出力: 関連するENS名(存在する場合)
Claude Desktopでの使用
このサーバーをClaude Desktopに追加するには:
npm startを使用してサーバーを起動します。Claude Desktopの場合:
設定に移動
MCPサーバーセクションに移動します
「サーバーを追加」をクリックします
次の構成を入力します。
{ "name": "Etherscan Tools", "transport": "stdio", "command": "node /path/to/mcp-etherscan-server/build/index.js" }設定を保存する
EtherscanツールがClaudeとの会話で利用できるようになります
クロードでの使用例
次のようなコマンドを使用できます:
Check the balance of 0x742d35Cc6634C0532925a3b844Bc454e4438f44eまたは
Show me recent transactions for vitalik.eth発達
新しい機能を追加したり、既存の機能を変更したりするには:
メインのサーバーロジックは
src/server.tsにありますEtherscan APIのインタラクションは
src/services/etherscanService.tsで処理されます。変更後のビルド:
npm run build
ライセンス
MITライセンス - 詳細はLICENSEファイルを参照
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceEnables comprehensive blockchain data analysis and exploration through the BlockScout API. Provides 56+ tools for transaction analysis, address exploration, token management, smart contract analysis, and market research across multiple blockchain networks.
- AlicenseAqualityCmaintenanceProvides Ethereum blockchain data tools via Etherscan's API, enabling users to check balances, view transactions, track token transfers, fetch contract ABIs and code, monitor gas prices, and resolve ENS names.7MIT
- AlicenseAqualityFmaintenanceProvides MCP tools to query Etherscan for Ethereum blockchain data—ETH balances, ERC-20 tokens, transactions, contract ABIs, and gas prices—without requiring an API key.815MIT
- Alicense-qualityCmaintenanceProvides comprehensive access to Ethereum blockchain data through the Etherscan API, including account, block, contract, transaction, token, gas, statistics, logs, and RPC proxy tools.4MIT
Related MCP Connectors
Etherscan MCP — multichain block-explorer API (Etherscan V2)
Blockscout MCP — multi-chain block-explorer aggregate
Explore blockchain data across addresses, tokens, blocks, and transactions. Investigate any transa…
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/otc-ai/mcp-otc'
If you have feedback or need assistance with the MCP directory API, please join our Discord server