Linea MCP Server
Provides bridge operations for moving assets between Ethereum and Linea.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Linea MCP Server
A Model Context Protocol (MCP) server that provides on-chain tools for AI applications to interact with the Linea blockchain.
Overview
Linea-MCP extends any MCP client's capabilities by providing tools to interact with the Linea blockchain, an Ethereum Layer 2 scaling solution using zero-knowledge proof technology. This server enables AI assistants like Claude, Cursor, and other MCP-compatible clients to perform blockchain operations through natural language requests.
Key Features
Wallet Management: Retrieve addresses and check balances
Token Operations: Transfer ERC20 tokens, check balances, list tokens
Smart Contract Interactions: Deploy and call contracts
NFT Management: List and transfer NFTs
Bridge Operations: Bridge assets between Ethereum and Linea
DeFi Integrations: Interact with DeFi protocols
Verax Integration: Verify identity with Linea Verax attestations
Linea ENS: Resolve and manage Linea ENS names
See examples.md for detailed usage examples.
Related MCP server: PortalMCP
Quick Start
Prerequisites
Node.js (v16+)
npm or yarn
Access to Linea RPC endpoints
Installation Options
Option 1: Quick Install (Global Package)
# Install globally
npm install -g linea-mcp
# Create a basic .env file
echo "LINEA_MAINNET_RPC_URL=https://rpc.linea.build
LINEA_TESTNET_RPC_URL=https://rpc.sepolia.linea.build
WALLET_PRIVATE_KEY=your_wallet_private_key_here
INFURA_API_KEY=your_infura_key_here" > .env
# Start the server
linea-mcpOption 2: Development Install (From Source)
# Clone the repository
git clone https://github.com/qvkare/linea-mcp.git
cd linea-mcp
# Install dependencies
npm install
# Configure environment
cp .env.example .env
# Edit .env with your configuration
# Build and start
npm run build
node dist/index.js # Using Node directly is more reliable than npm startIntegration with MCP Clients
This MCP server can be integrated with any MCP-compatible client including Cursor, Claude Desktop, Windsurf, Cline, and other AI assistants.
General Configuration Steps
Find your client's MCP configuration file location
Add a Linea MCP server configuration section
Configure the server using one of the following approaches:
Option 1: Using Global Installation (Simple)
{
"mcpServers": {
"linea": {
"command": "npx",
"args": ["linea-mcp@latest"],
"env": {
"PORT": "3000",
"LINEA_MAINNET_RPC_URL": "https://rpc.linea.build",
"LINEA_TESTNET_RPC_URL": "https://rpc.sepolia.linea.build",
"INFURA_API_KEY": "your_infura_key",
"ALCHEMY_API_KEY": "your_alchemy_key",
"PRIVATE_KEY_ENCRYPTION_KEY": "your_encryption_key_please_change",
"WALLET_PRIVATE_KEY": "your_wallet_private_key_or_mnemonic",
"NODE_ENV": "development",
"ETHEREUM_RPC_URL": "https://mainnet.infura.io/v3/your_infura_key",
"ETHEREUM_TESTNET_RPC_URL": "https://sepolia.infura.io/v3/your_infura_key"
}
}
}
}Option 2: Using Local Installation (Recommended for Development)
{
"mcpServers": {
"linea": {
"command": "node",
"args": ["/absolute/path/to/linea-mcp/dist/index.js"],
"cwd": "/absolute/path/to/linea-mcp",
"env": {
// Same environment variables as Option 1
"PORT": "3000",
"LINEA_MAINNET_RPC_URL": "https://rpc.linea.build",
// ... other variables from Option 1
}
}
}
}Important Note: When using a local installation, directly running the JavaScript file with Node.js provides more reliable communication than using npm scripts.
Client-Specific Locations
Cursor:
Windows:
%APPDATA%\Cursor\mcp.jsonmacOS:
~/Library/Application Support/Cursor/mcp.jsonLinux:
~/.config/Cursor/mcp.json
Claude Desktop:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Other Clients: Refer to your client's documentation for MCP configuration location
Troubleshooting
Common Issues
"No tools available" or "Client closed" errors:
Use direct Node.js execution (
"command": "node", "args": ["/path/to/dist/index.js"]) instead of npm scriptsEnsure environment variables are configured correctly
Restart your client after configuration changes
JSON parsing errors in logs:
These indicate communication protocol issues
Using direct Node.js execution usually resolves these problems
Make sure the
cwdproperty is set correctly
Complete troubleshooting guide:
See docs/troubleshooting.md for detailed solutions to common problems
Available Tools
The server provides tools across multiple categories:
Wallet: Address management, balance checking, fund transfers
Tokens: ERC20 transfers, balance checking, token information
Contracts: Deployment and interaction
NFTs: Listing and transfers
Bridge: Asset bridging between Ethereum and Linea
DeFi: Liquidity pools, token swaps, yield farming
ENS: Name resolution and record management
Verax: Identity verification
For a complete list of tools and their usage, see docs/tools.md.
Security Considerations
Never share your private keys or seed phrases
Use environment variables for sensitive configuration
Test extensively with testnet before using on mainnet
License
This project is licensed under the MIT License - see the LICENSE file for details.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
API discovery and x402 paid execution via MCP. Search by natural-language, call with USDC payment on Arbitrum, Base, BNB, Solana, SEI
OpenAI-compatible LLM MCP (7 tools); chat via balance key or x402 USDC on Base
Verified EVM, Aptos and finance tools for AI agents; gas for 14 chains. Pay per call (x402).
ERC-8004 agent identity, on-chain subscriptions, reputation, A2A tasks and chat over 53 tools.
Related MCP Servers
- FlicenseCqualityBmaintenanceEnables AI agents to interact with any EVM-compatible blockchain through natural language, supporting token swaps, cross-chain bridges, staking, lending, governance, gas optimization, and portfolio tracking across networks like Ethereum, BSC, Polygon, Arbitrum, and more.10041 npm44-
- AlicenseNot gradedqualityDmaintenanceUniversal AI gateway that enables interaction with Ethereum blockchain through natural language across multiple AI platforms (Claude, ChatGPT, Gemini, etc.). Supports contract deployment, token operations, NFT minting, DeFi operations, and general blockchain transactions.1MIT

Amper MCP Serverofficial
AlicenseNot gradedqualityDmaintenanceEnables natural language-driven DeFi operations including swaps, lending, bridging, and onchain transactions across multiple protocols via MCP-compatible clients.32 npm9MIT- FlicenseNot gradedqualityDmaintenanceEnables AI agents to resolve smart contract ABIs, read, encode, simulate, and prepare transactions across multiple blockchains via a REST API or MCP server, with no signing required.-