Skip to main content
Glama

MCP 이더리움 지갑NPM 버전

Ethers.js v6를 사용하여 이더리움 지갑 및 네트워크와 상호작용하는 모델 컨텍스트 프로토콜(MLP) 서버입니다. 이 서버는 LLM(모델 컨텍스트 프로토콜)에 이더리움 네트워크, 스마트 계약 및 지갑과 상호작용할 수 있는 표준화된 인터페이스를 제공합니다.

개요

MCP Ethers Wallet 서버는 모델 컨텍스트 프로토콜 사양을 구현하여 LLM에 다음 작업을 위한 도구를 제공합니다.

  • 여러 네트워크에서 블록체인 데이터 쿼리

  • 스마트 계약과 상호 작용

  • 지갑 작업 관리

  • ENS 이름 확인

  • 거래 처리

  • 가스 비용 추정

Related MCP server: EVM MCP Server

설치

지엑스피1

빠른 시작

서버 시작

import { startServer } from 'mcp-ethers-wallet';

startServer().catch((error) => {
  console.error('Failed to start server:', error);
  process.exit(1);
});

Claude Desktop과 함께 사용

  1. Claude Desktop 설치

  2. 다음 구성으로 새로운 MCP 서버를 추가합니다.

     "ethers": {
       "command": "node",
       "args": [
         "/path-to-mcp-ethers-wallet/build/src/index.js"
       ],
       "env": {
         "ALCHEMY_API_KEY": "<<your alchemy api key>>"
       }
     }
  3. 이제 Claude 대화에서 도구를 사용할 수 있습니다.

MCP Inspector로 테스트

  1. MCP 검사기 설치:

    npm install -g @modelcontextprotocol/inspector
  2. 서버를 시작합니다:

    npm start
  3. 다른 터미널에서 검사기를 실행합니다.

    mcp-inspector
  4. 도구와 상호 작용하려면 브라우저에서 http://localhost:5173을 여세요.

사용 가능한 도구

네트워크 정보

  • getSupportedNetworks : 지원되는 모든 네트워크와 해당 구성 목록을 가져옵니다.

  • getBlockNumber : 네트워크의 현재 블록 번호를 가져옵니다.

  • getBlockDetails : 특정 블록에 대한 자세한 정보를 가져옵니다.

  • getGasPrice : 현재 가스 가격을 가져옵니다

  • getFeeData : 기본 수수료 및 우선 수수료를 포함한 자세한 수수료 데이터를 가져옵니다.

지갑 운영

  • checkWalletExists : 개인 키를 노출하지 않고 지갑이 구성되었는지 확인합니다.

  • getWalletBalance : 지갑의 기본 토큰 잔액을 가져옵니다.

  • getWalletTransactionCount : 지갑에서 전송된 거래 수를 가져옵니다.

  • getERC20Balance : 지갑의 ERC20 토큰 잔액을 가져옵니다.

거래 관리

  • getTransactionDetails : 거래에 대한 자세한 정보를 가져옵니다.

  • sendTransaction : 네이티브 토큰 트랜잭션을 보냅니다.

  • sendTransactionWithOptions : 사용자 정의 옵션(가스, nonce 등)을 사용하여 트랜잭션을 보냅니다.

  • getTransactionsByBlock : 특정 블록의 모든 거래를 가져옵니다.

스마트 계약 상호 작용

  • contractCall : 계약 쓰기 메서드 실행

  • contractCallView : 계약 읽기 메서드 실행

  • getContractCode : 배포된 계약의 바이트코드를 가져옵니다.

ENS 운영

  • lookupAddress : ENS 이름을 주소로 변환합니다.

  • resolveName : 주소를 ENS 이름으로 변환합니다.

네트워크 지원

서버는 다음을 포함한 여러 네트워크를 지원합니다.

  • 이더리움 메인넷

  • 폴리곤 PoS

  • 중재

  • 낙천주의

  • 베이스

  • 그리고 더 많은 것...

getSupportedNetworks 도구를 사용하면 지원되는 네트워크의 전체 목록을 얻을 수 있습니다.

구성

서버는 환경 변수를 사용하여 구성할 수 있습니다.

  • ALCHEMY_API_KEY : 네트워크 액세스를 위한 Alchemy API 키

  • PRIVATE_KEY : 거래 서명을 위한 개인 키(선택 사항)

  • DEFAULT_NETWORK : 사용할 기본 네트워크(기본값은 "mainnet")

오류 처리

서버는 일반적인 문제에 대한 자세한 오류 메시지를 제공합니다.

  • 잘못된 네트워크 이름 또는 RPC URL

  • 체인 ID 불일치

  • 계약 상호작용 실패

  • 거래 오류

  • 네트워크 연결 문제

개발

# Install dependencies
npm install

# Run tests
npm test

# Start in development mode
npm run dev

# Build
npm run build

기여하다

GitHub에서는 이슈와 풀 리퀘스트를 환영합니다.

특허

이 프로젝트는 MIT 라이선스에 따라 라이선스가 부여되었습니다. 자세한 내용은 라이선스 파일을 참조하세요.

작가

데니슨 버트램( dennison@tally.xyz )

Install Server
A
license - permissive license
D
quality
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • A
    license
    B
    quality
    C
    maintenance
    A Model Context Protocol server that enables AI agents to interact with 30+ Ethereum-compatible blockchain networks, providing services like token transfers, contract interactions, and ENS resolution through a unified interface.
    28
    134
    381
    MIT
  • -
    license
    -
    quality
    -
    maintenance
    Comprehensive Model Context Protocol server that enables AI agents to interact with 30+ Ethereum-compatible blockchain networks, supporting token transfers, smart contract interactions, and ENS name resolution through a unified interface.
    1
  • F
    license
    A
    quality
    B
    maintenance
    A server that exposes blockchain data (balances, tokens, NFTs, contract metadata) via the Model Context Protocol, enabling AI agents and tools to access and analyze blockchain information contextually.
    18
    43

View all related MCP servers

Related MCP Connectors

  • A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…

  • A Model Context Protocol server for Wix AI tools

  • MCP server for AI dialogue using various LLM models via AceDataCloud

View all MCP Connectors

Latest Blog Posts

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/crazyrabbitLTC/mcp-ethers-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server