Linea MCP Server

by qvkare

2 stars
208 downloads
Not rated
GitHub Website

About

A Model Context Protocol (MCP) server that provides on-chain tools for AI applications to interact with the Linea blockchain.

Details

Author
qvkare
GitHub stars
2
Downloads
208
Categories
Other

- 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 liquidity pools, swaps, yield farming
- Verax integration: verify identity with Linea Verax attestations
- Linea ENS: resolve and manage Linea ENS names

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Linea MCP Server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

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.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "linea mcp server": {
            "linea-mcp": {
                "command": "node",
                "args": [
                    "dist/index.js",
                    "#",
                    "Using",
                    "Node",
                    "directly",
                    "is",
                    "more",
                    "reliable",
                    "than",
                    "npm",
                    "start"
                ]
            }
        }
    }
}

McpServers

{
    "linea-mcp": {
        "command": "node",
        "args": [
            "dist/index.js",
            "#",
            "Using",
            "Node",
            "directly",
            "is",
            "more",
            "reliable",
            "than",
            "npm",
            "start"
        ]
    }
}

Linea MCP Server

<div align="center">
Linea MCP Logo
</div>

A Model Context Protocol (MCP) server that provides on-chain tools for AI applications to interact with the Linea blockchain.

Ask DeepWiki
npm version
License: MIT

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.

Quick Start

Prerequisites

- Node.js (v16+)
- npm or yarn
- Access to Linea RPC endpoints

Installation Options

Option 1: Quick Install (Global Package)

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.