EVM链上交易服务

一个模型上下文协议服务器,使LLM代理能够在EVM网络上执行链上交易。

  • by asylum-labs
  • TypeScript
  • 本地部署
  • 更新于
在 GitHub 查看 asylum-labs/evm-mcp-server

使用说明

EVM MCP服务器

一个模型上下文协议服务器,使LLM代理能够跨EVM网络执行链上事务。

入门指南

先决条件

  • Node.js(v16+)
  • 以太坊RPC端点(Infura、Alchemy或您自己的节点)

安装

# Clone the repository
git clone https://github.com/asylum-labs/evm-mcp-server.git
cd evm-mcp-server

# Install dependencies
npm install

# Set up environment variables
cp .env.example .env
# Edit .env with your configuration

# Build the project
npm run build

运行服务器

# Development mode
npm run dev

# Production mode
npm run start

测试

# Run all tests
npm test

# Run tests with UI
npm run test:ui

# Run tests with coverage
npm run test:coverage

项目结构

evm-mcp-server/
├── src/               # Source code
│   ├── core/          # Core functionality
│   ├── chains/        # Chain-specific implementations
│   ├── llm/           # LLM agent interfaces
│   ├── security/      # Security features
│   ├── api/           # API endpoints
│   └── utils/         # Utility functions
├── tests/             # Test files (mirrors src structure)
├── config/            # Configuration files
└── dist/              # Compiled output

api参考

🚧施工中🚧

许可证

麻省理工学院