Overview
What is NEAR MCP?
NEAR MCP is a Model Context Protocol compatible server for interacting with the NEAR blockchain. It provides a way for LLMs and AI agents to securely access and interact with NEAR accounts and blockchain functionality.
How to use NEAR MCP?
Install and add NEAR MCP to an MCP-compatible client such as Claude Code, Goose, or Claude Desktop. For Claude Code, run claude mcp add near-mcp npx @nearai/near-mcp@latest run. For Claude Desktop, add the npx -y @nearai/near-mcp@latest run command with optional environment variables. Alternatively, install globally with npm install -g @nearai/near-mcp@latest and run it directly.
Key features of NEAR MCP
- Manage NEAR accounts on behalf of users
- Check account balances and status
- Sign and send transactions on the NEAR blockchain
- Create new accounts and manage access keys
- Inspect and execute smart contracts
Use cases of NEAR MCP
- AI assistants that manage NEAR accounts and transactions for users
- Automated smart contract inspection and execution via LLMs
- Balance and status checking for NEAR accounts through natural language
FAQ from NEAR MCP
What tools does NEAR MCP provide?
The server provides tools for managing NEAR accounts, checking balances, signing and sending transactions, creating accounts, managing access keys, and inspecting/executing smart contracts. A full list is available in the project’s TOOLS.md file.
How are private keys secured?
Account private keys are stored in a local unencrypted keystore where the MCP server is running. The import_account tool allows the model to import an account from a private key, which requires the user to provide the private key to the model.
What runtime or dependencies are required?
NEAR MCP requires Node.js and npm to run. It is distributed as an npm package and can be used via npx or installed globally. It is designed to run locally on the user’s machine.
Can NEAR MCP be deployed remotely?
Yes, NEAR MCP can be deployed remotely on Phala Cloud. Instructions for this deployment method are provided in the project’s tee.md file.
Which AI clients are supported?
NEAR MCP works with any client that supports the Model Context Protocol, including Claude Code, Claude Desktop, and Goose.