Skip to main content
Glama

MCP Server: NEAR Liquid Staking

An MCP (Model Context Protocol) server that enables Claude to interact with NEAR liquid staking protocols - Meta Pool (stNEAR) and Linear Protocol (LiNEAR).

Features

  • Compare LST Providers - Side-by-side comparison of Meta Pool vs Linear Protocol

  • Balance Checking - Query stNEAR/LiNEAR balances for any account

  • Exchange Rates - Real-time LST to NEAR conversion rates

  • Staking Transactions - Generate transactions to stake NEAR for LSTs

  • Unstaking - Both instant and delayed unstaking options

  • DeFi Integration - Find yield opportunities for LSTs

  • APY Tracking - Estimated staking rewards

Related MCP server: MCP NEAR Wallet Server

Supported Protocols

Protocol

Token

Contract

Features

Meta Pool

stNEAR

meta-pool.near

Instant unstake, META governance, largest TVL

Linear

LiNEAR

linear-protocol.near

Auto-compounding, decentralized validators

Installation

npm install
npm run build

Usage with Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "near-liquid-staking": {
      "command": "node",
      "args": ["/path/to/mcp-near-staking/dist/index.js"]
    }
  }
}

Available Tools

compare_lst_providers

Compare APY, rates, and features across liquid staking providers.

{ "network": "mainnet" }

get_lst_balance

Check LST token balances for an account.

{
  "account_id": "user.near",
  "protocol": "all",
  "network": "mainnet"
}

lst_to_near_rate

Get current exchange rates.

{
  "protocol": "all",
  "amount": "100",
  "network": "mainnet"
}

stake_for_lst

Generate a staking transaction.

{
  "protocol": "meta-pool",
  "amount": "10",
  "network": "mainnet"
}

unstake_lst

Generate an unstaking transaction.

{
  "protocol": "meta-pool",
  "amount": "10",
  "instant": false,
  "network": "mainnet"
}

lst_defi_options

Find DeFi opportunities for LST tokens.

{
  "lst_token": "stNEAR",
  "network": "mainnet"
}

get_staking_apy

Get estimated staking APY.

{
  "protocol": "all",
  "network": "mainnet"
}

Example Conversations

User: "Compare liquid staking options on NEAR" Claude: Uses compare_lst_providers to show Meta Pool vs Linear comparison

User: "How much is my stNEAR worth?"
Claude: Uses get_lst_balance and lst_to_near_rate to calculate value

User: "I want to stake 100 NEAR with Meta Pool" Claude: Uses stake_for_lst to generate transaction details

User: "What can I do with my LiNEAR tokens?" Claude: Uses lst_defi_options to suggest yield strategies

DeFi Integrations

The server knows about these protocols that accept LSTs:

  • Ref Finance - Swapping and LP farming

  • Burrow - Lending and borrowing

  • Pembrock Finance - Leveraged yield farming

Development

# Install dependencies
npm install

# Build
npm run build

# Run directly
npm start

# Development mode
npm run dev

License

MIT

Available Tools

7 tools
compare_lst_providersA

Compare NEAR liquid staking providers (Meta Pool, Linear) - shows APY, rates, features, and recommendations

Inputs: network.

get_lst_balanceA

Check liquid staking token balances (stNEAR, LiNEAR) for an account

Inputs: account_id (required), network, protocol.

get_staking_apyB

Get estimated APY/rewards rate for liquid staking protocols

Inputs: network, protocol.

lst_defi_optionsA

Find DeFi opportunities for liquid staking tokens - where to use stNEAR/LiNEAR for additional yield

Inputs: network, lst_token.

lst_to_near_rateA

Get current exchange rate between LST tokens and NEAR (how much NEAR your stNEAR/LiNEAR is worth)

Inputs: amount, network, protocol.

stake_for_lstA

Generate a transaction to stake NEAR for liquid staking tokens (stNEAR or LiNEAR). Returns transaction details for signing.

Inputs: amount (required), protocol (required), network.

unstake_lstA

Generate a transaction to unstake LST tokens back to NEAR. Supports delayed unstaking (better rate) or instant unstaking (with fee).

Inputs: amount (required), protocol (required), instant, network.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 7 tools

    Disambiguation4/5

    Most tools are clearly distinct by action (stake, unstake, balance, rate, DeFi), but compare_lst_providers overlaps somewhat with get_staking_apy and lst_to_near_rate since it also surfaces APY and rates. Descriptions are clear enough that an agent can usually pick correctly.

    Naming Consistency4/5

    All names use lowercase snake_case and share the lst/staking vocabulary, with clear action verbs like get, stake, unstake. A few names (lst_to_near_rate, lst_defi_options) omit a leading verb, but the pattern is still predictable.

    Tool Count5/5

    Seven tools is well-scoped for a liquid staking server: discovery, balances, rates, staking, unstaking, and DeFi opportunities all have a dedicated tool. No tool feels redundant enough to remove.

    Completeness5/5

    The set covers the full user journey for NEAR liquid staking: choosing a provider, checking APY/rates, staking, monitoring balances, unstaking (delayed/instant), and exploring DeFi yield. There are no obvious dead ends or missing lifecycle steps.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers