NEAR Wallet MCP Server
Provides tools to interact with NEAR Protocol wallets and blockchain data, enabling account operations, token queries, staking, contract interaction, and more.
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 Wallet MCP Server What's the balance of alice.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.
NEAR Wallet MCP Server
An MCP (Model Context Protocol) server that enables Claude and other AI assistants to interact with NEAR Protocol wallets and blockchain data.
Features
Account Operations: Query balances, account info, access keys
Token Operations: FT (NEP-141) balance and metadata queries
Staking: Check staking pool positions and rewards
Contract Interaction: Call view methods on any NEAR smart contract
Network Info: Block data, validators, gas prices, protocol config
Transaction Tracking: Look up transaction status and details
Explorer URLs: Generate NearBlocks links for any entity
Related MCP server: GOAT MCP Server
Tools
Tool | Description |
| Get NEAR balance (available, staked, storage) |
| Detailed account info (code hash, storage) |
| Transaction details by hash |
| List account access keys |
| Call read-only contract methods |
| Block details (latest or by ID) |
| Current validator set and stakes |
| Current gas price |
| Protocol parameters |
| Fungible token balance |
| Token metadata (name, symbol, decimals) |
| Staking pool position |
| Generate NearBlocks URLs |
Installation
npm install
npm run buildConfiguration
Set environment variables:
export NEAR_NETWORK=mainnet # or testnet
export NEAR_NODE_URL=https://rpc.mainnet.near.org # optional, auto-detected from networkUsage with Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"near-wallet": {
"command": "node",
"args": ["/path/to/near-wallet-mcp/dist/index.js"],
"env": {
"NEAR_NETWORK": "mainnet"
}
}
}
}Example Queries
Once configured, you can ask Claude:
"What's the balance of alice.near?"
"Show me the validators on NEAR mainnet"
"Check the USDT balance of bob.near on usdt.tether-token.near"
"What's the latest block on NEAR?"
"Look up transaction 8xK2... from alice.near"
License
MIT
Available Tools
13 toolsget_access_keysA
List all access keys for an account (both full access and function call keys)
Inputs: account_id (required).
get_account_balanceA
Get the NEAR balance of an account including available, staked, and storage-locked amounts
Inputs: account_id (required).
get_account_infoB
Get detailed account information including code hash, storage usage, and block height
Inputs: account_id (required).
get_block_infoB
Get information about a specific block or the latest block
Inputs: block_id.
get_ft_balanceB
Get fungible token (FT/NEP-141) balance for an account on a specific token contract
Inputs: account_id (required), token_contract (required).
get_ft_metadataB
Get metadata for a fungible token (name, symbol, decimals, icon)
Inputs: token_contract (required).
get_gas_priceA
Get the current gas price on NEAR network
Inputs: no named parameters.
get_protocol_configB
Get NEAR protocol configuration including runtime and economics parameters
Inputs: no named parameters.
get_staking_infoB
Get staking pool information and staked balance for an account
Inputs: pool_id (required), account_id (required).
get_transaction_statusC
Get the status and details of a NEAR transaction by its hash
Inputs: tx_hash (required), sender_id (required).
get_validatorsB
Get current validator set with stake amounts and status
Inputs: epoch_id.
near_explorer_urlB
Generate NEAR Explorer URL for an account, transaction, or block
Inputs: id (required), type (required).
view_contract_methodB
Call a view (read-only) method on a NEAR smart contract. No gas required.
Inputs: contract_id (required), method_name (required), args.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 13 tools
Most tools target clearly distinct resources: account balance vs. FT balance vs. staking info, transaction status, access keys, contract view, block info, and validators. A few boundaries are slightly blurry, such as get_account_balance versus get_staking_info and get_account_info, since staked balance appears in multiple places.
The set is mostly consistent snake_case with a get_verb_noun pattern across 11 of 13 tools. Minor deviations are view_contract_method and near_explorer_url, which use different verb/noun conventions but remain readable and purposeful.
13 tools is well within the appropriate range and each tool appears to serve a distinct query need for NEAR account, token, staking, block, and network data. The server is not bloated, and no obvious redundant wrapper tools are present.
The read/query surface is broad, covering accounts, tokens, staking, blocks, validators, gas, protocol config, and explorer links. However, a wallet-oriented server lacks any write operations such as send/transfer, stake/unstake, access-key management, or transaction signing, which are notable gaps for a wallet domain.
Maintenance
Related MCP Connectors
MCP server connecting AI agents to non-custodial staking data across 130+ networks.
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
MCP server that lets your AI assistant build and deploy apps, hosting each one at a live URL.
Hosted Notion MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Related MCP Servers
- AlicenseBqualityBmaintenanceAn MCP server that provides seamless integration with the Neo N3 blockchain, allowing Claude to interact with blockchain data, manage wallets, transfer assets, and invoke smart contracts.1920 npm4MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that connects Claude for Desktop with blockchain functionality, allowing users to check balances and send tokens on EVM and Solana chains through natural language interactions.MIT
- -licenseNot gradedqualityNot gradedmaintenanceAn MCP server that allows Claude Desktop to query Monad testnet for MON token balances of accounts.-
- AlicenseAqualityDmaintenanceThe NEAR MCP Server enables AI agents to interact with the NEAR Protocol blockchain, providing smart contract interaction, transaction handling, and event listening with AI-driven processing.39 npm1ISC