NEAR Liquid Staking
Integrates with Linear Protocol (LiNEAR) to enable staking, unstaking, and balance checking for the LiNEAR liquid staking token.
Integrates with Meta Pool (stNEAR) to enable staking, unstaking, and balance checking for the stNEAR liquid staking token.
Provides tools to interact with the NEAR blockchain, including checking balances, staking, and querying exchange rates for liquid staking tokens.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@NEAR Liquid Staking Compare liquid staking options on NEAR"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 buildUsage 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 devLicense
MIT
Available Tools
7 toolscompare_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
Scored across 7 tools
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.
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.
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.
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
Related MCP Connectors
MCP server connecting AI agents to non-custodial staking data across 130+ networks.
Hosted MCP server for live Bittensor chain reads and self-custodial on-chain writes.
MCP server for Renzo protocol data, including chains, vaults, operators, and ezETH metrics.
Tenzro Network MCP server: wallet, identity, payments, inference, staking, bridges, verification.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA comprehensive MCP server providing unified access to over 144 tools for lending, trading, and staking across six major DeFi protocols on the Stacks Bitcoin Layer 2. It enables AI agents to perform complex blockchain operations and interact with the DeFi ecosystem using natural language commands.3MIT
- AlicenseNot gradedqualityDmaintenanceEnables Claude Desktop and MCP clients to interact with NEAR blockchain accounts for balance checks, account info, access keys, transaction status, and sending signed transactions.MIT
- AlicenseBqualityDmaintenanceAn MCP server that enables Claude and other AI assistants to interact with NEAR Protocol wallets and blockchain data.13MIT
- AlicenseAqualityDmaintenanceA Model Context Protocol (MCP) server for interacting with liquid staking protocols on NEAR blockchain. Supports Meta Pool (stNEAR) and Linear Protocol (LiNEAR).6MIT