How to Use the Lineascan MCP in Claude Code
Run terminal-based Linea blockchain audits and query smart contract status directly from your shell using Claude Code.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Lineascan MCP to Claude Code
Create your Vinkius account to connect Lineascan to Claude Code and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Verify and Audit Contracts in Claude Code
The Lineascan MCP server equips your CLI with `get_source_code` and `get_abi` to fetch smart contract details straight to your terminal. Claude Code pipes this data into local scripts, making it easy to run automated audits or generate TypeScript bindings in headless environments. To automate contract verification in your CI/CD pipelines, the agent calls `verify_source_code` and monitors progress with `check_verify_status`. This lets you verify newly deployed contracts on Linea without touching a browser.
Audit Transaction Logs and Token Transfers from the CLI
Claude Code uses `tx_list` and `tx_list_internal` to inspect transaction histories directly from your terminal. You can pipe the JSON output of these tools into standard Unix utilities like jq to filter and analyze Linea contract executions on the fly. For asset tracking, the agent queries `token_tx` and `token_nft_tx` to dump ERC-20 and NFT transfer events on Linea. It formats this data into clean markdown tables, giving you a quick view of wallet activity without leaving your SSH session.
Query Gas Estimates and Block Times in Shell Scripts
Your CLI agent uses `eth_estimate_gas` and `eth_price` to fetch live transaction costs on Linea before executing deployment scripts. It combines these tools to alert Claude Code if gas prices exceed your budget, preventing expensive deployment mistakes. For block-level analysis, Claude Code calls `eth_get_block_by_number` and `get_block_countdown` to track Linea mining schedules. You can use these tools to build cron jobs that monitor network status via `eth_block_number` and alert your team on Slack.
Set up Lineascan MCP in Claude Code
Prerequisites
- Claude Code CLI installed (
npm install -g @anthropic-ai/claude-code) - Active Vinkius subscription with a valid endpoint token
- 1
Run the add command
Open your terminal and run the command shown on the right. Replace
[YOUR_TOKEN_HERE]with your endpoint token from cloud.vinkius.com. Use--scope userto make it available across all projects. - 2
Verify the connection
Start a Claude Code session and type
/mcpto list connected servers. You should seelineascan-mcpwith a green status indicator. - 3
Start using tools
Ask Claude Code something like "Check my latest Lineascan transactions." It will automatically discover and invoke the available Lineascan tools.
claude mcp add --transport http lineascan-mcp https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about Lineascan MCP in Claude Code
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Lineascan MCP today
We host it, we monitor it, we maintain it. You just paste one token.