MCP NEAR Wallet Server
Provides tools for interacting with the NEAR Protocol blockchain, enabling account balance checks, account information retrieval, access key viewing, transaction status checks, and sending signed transactions.
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., "@MCP NEAR Wallet ServerCheck 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.
MCP NEAR Wallet Server
A Model Context Protocol (MCP) server for NEAR Protocol wallet operations. This server enables Claude Desktop and other MCP clients to interact with NEAR blockchain accounts.
Features
check_balance: Get the NEAR balance of any account
account_info: Get detailed account information (balance, storage, state)
view_access_keys: View all access keys for an account
transaction_status: Check transaction status by hash
send_near: Broadcast signed transactions
Related MCP server: NEAR Liquid Staking
Installation
Prerequisites
Python 3.10 or higher
pip or uv package manager
Install from source
cd ~/projects/near-market/mcp-near-wallet
pip install -e .Or with uv:
uv pip install -e .Configuration
Create a config.json file in your working directory:
{
"rpc_url": "https://rpc.mainnet.near.org"
}For testnet:
{
"rpc_url": "https://rpc.testnet.near.org"
}See config.example.json for reference.
Claude Desktop Setup
macOS
Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"near-wallet": {
"command": "python",
"args": [
"-m",
"mcp_near_wallet.server"
],
"cwd": "~/projects/near-market/mcp-near-wallet"
}
}
}Windows
Edit %APPDATA%\Claude\claude_desktop_config.json:
{
"mcpServers": {
"near-wallet": {
"command": "python",
"args": [
"-m",
"mcp_near_wallet.server"
],
"cwd": "C:\\Users\\YourUser\\projects\\near-market\\mcp-near-wallet"
}
}
}Linux
Edit ~/.config/Claude/claude_desktop_config.json:
{
"mcpServers": {
"near-wallet": {
"command": "python",
"args": [
"-m",
"mcp_near_wallet.server"
],
"cwd": "~/projects/near-market/mcp-near-wallet"
}
}
}Using uv (Recommended)
If you prefer using uv for dependency isolation:
{
"mcpServers": {
"near-wallet": {
"command": "uv",
"args": [
"--directory",
"~/projects/near-market/mcp-near-wallet",
"run",
"mcp-near-wallet"
]
}
}
}Restart Claude Desktop
After updating the configuration, restart Claude Desktop completely:
Quit Claude Desktop
Restart the application
The NEAR Wallet tools should now be available
Usage Examples
Once configured, you can ask Claude:
"Check the balance of alice.near"
"Show me account information for bob.near"
"What access keys does charlie.near have?"
"Check the status of transaction ABC123 sent by dave.near"
Development
Run tests
pytestFormat code
black src/
ruff check src/Protocol
This server implements the Model Context Protocol (MCP) specification:
Transport: JSON-RPC 2.0 over stdio
Tool Schema: JSON Schema input validation
Response Format: TextContent with JSON payloads
NEAR RPC Endpoints
Mainnet: https://rpc.mainnet.near.org
Testnet: https://rpc.testnet.near.org
Security Notes
⚠️ Important: This server is read-only by default. The send_near tool requires pre-signed transactions and does not handle private keys. Never share your NEAR private keys with any MCP server.
For transaction signing, use:
NEAR CLI
NEAR Wallet
near-api-js
Other official NEAR SDKs
License
MIT
Support
For issues and questions:
NEAR Protocol: https://near.org
MCP Specification: https://spec.modelcontextprotocol.io
This server cannot be deployed
Maintenance
Related MCP Connectors
Provide AI agents and automation tools with contextual access to blockchain data including balance…
- Era ContextOAuthapp.era
Personal finance, bank account, and shared memory connector for Claude, ChatGPT, Gemini Spark & more
Hosted MCP server for live Bittensor chain reads and self-custodial on-chain writes.
Read-only on-chain intelligence for AI agents on Base: balances, tokens, gas, tx status.
Related MCP Servers
- AlicenseBqualityDmaintenanceProvides Claude with access to Ethereum and EVM-compatible blockchain operations, enabling wallet management, transaction handling, contract interactions, and blockchain queries through natural language.43541 npm10MIT
- FlicenseAqualityDmaintenanceMCP server enabling Claude to interact with NEAR liquid staking protocols Meta Pool (stNEAR) and Linear Protocol (LiNEAR) for balance checks, exchange rates, staking, unstaking, and DeFi integrations.7-
- FlicenseBqualityDmaintenanceAn MCP server that enables Claude and other AI assistants to interact with NEAR Protocol wallets and blockchain data.13-
- FlicenseAqualityDmaintenanceEnables Claude to interact with NEAR smart contracts: read state, call view methods, decode transactions, and explain contract interfaces.5-