What are the prerequisites to run the server?
Node.js v16+, npm or yarn, and access to Linea RPC endpoints (mainnet or testnet).
@qvkare
基本信息
A Model Context Protocol (MCP) server that provides on-chain tools for AI applications to interact with the Linea blockchain.
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"linea-mcp": {
"command": "node",
"args": [
"dist/index.js",
"#",
"Using",
"Node",
"directly",
"is",
"more",
"reliable",
"than",
"npm",
"start"
]
}
}
}Address management, balance checking, fund transfers
ERC20 transfers, balance checking, token information
Deployment and interaction
Listing and transfers
Asset bridging between Ethereum and Linea
Liquidity pools, token swaps, yield farming
Name resolution and record management
Identity verification
Linea MCP Server is a Model Context Protocol (MCP) server that provides on-chain tools for AI applications to interact with the Linea blockchain, an Ethereum Layer 2 scaling solution using zero-knowledge proof technology. It enables AI assistants like Claude, Cursor, and other MCP-compatible clients to perform blockchain operations through natural language requests.
Install globally via npm install -g linea-mcp or from source by cloning the repository and running npm install. Configure environment variables (RPC URLs, wallet private key, Infura API key) in a .env file. Integrate with any MCP-compatible client by editing the client’s MCP configuration file (e.g., mcp.json for Cursor or claude_desktop_config.json for Claude Desktop) and adding a linea server entry using either the global npx approach or a local Node.js path.
Node.js v16+, npm or yarn, and access to Linea RPC endpoints (mainnet or testnet).
Install globally with `npm install -g linea-mcp`, create a `.env` file with your RPC URLs, wallet private key, and Infura API key, then run `linea-mcp`. Alternatively, clone the repo, install dependencies, build, and run `node dist/index.js`.
Find your client’s MCP configuration file (e.g., for Cursor: `mcp.json`, for Claude Desktop: `claude_desktop_config.json`) and add a `linea` server entry with the appropriate command, args, and environment variables. Use `npx linea-mcp@latest` for simple setups or a local path to the built `index.js` for development.
Use direct Node.js execution (`"command": "node"`, `"args": ["/path/to/dist/index.js"]`) instead of npm scripts, ensure all environment variables are set correctly, and restart the client after configuration changes.
For Cursor: `%APPDATA%\Cursor\mcp.json` (Windows), `~/Library/Application Support/Cursor/mcp.json` (macOS), `~/.config/Cursor/mcp.json` (Linux). For Claude Desktop: `%APPDATA%\Claude\claude_desktop_config.json` (Windows), `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS), `~/.config/Claude/claude_desktop_config.json` (Linux). For other clients, refer to their documentation.

DeepMark helps teachers deliver rapid, consistent marking with meaningful feedback for every student — in a fraction of the time. What once took a week, now takes one free period.
🔥 MaxKB is an open-source platform for building enterprise-grade agents. 强大易用的开源企业级智能体平台。
🚀 The fast, Pythonic way to build MCP servers and clients.
Hindsight: Agent Memory That Learns
Painless E2E Automation for Mobile and Web
评论