NEAR Protocol Full-Featured MCP Server
by gluneau
This project implements a Model Context Protocol (MCP) server for interacting with the NEAR Protocol blockchain. It allows Large Language Models (LLMs) to query blockchain data and execute transactions using a pre-configured NEAR account.
Last updated: N/A
What is NEAR Protocol Full-Featured MCP Server?
The NEAR Protocol Full-Featured MCP Server is a server that exposes NEAR blockchain functionalities as MCP tools, allowing Large Language Models (LLMs) to interact with the NEAR blockchain.
How to use NEAR Protocol Full-Featured MCP Server?
- Install Node.js and npm. 2. Install the server using
npm install near-mcp-server
. 3. Configure environment variables in a.env
file (MNEMONIC, NEAR_NETWORK_ID). 4. Build the server usingnpm run build
. 5. Run the server usingnpm start
ornode build/index.js
. 6. Configure your MCP client (e.g., Claude Desktop) to connect to the server.
Key features of NEAR Protocol Full-Featured MCP Server
Retrieve account balances
View account state
Create sub-accounts
Send NEAR tokens
Call smart contract functions
Deploy smart contracts
Manage access keys
Use cases of NEAR Protocol Full-Featured MCP Server
Querying NEAR blockchain data using LLMs
Executing transactions on the NEAR blockchain via LLMs
Automating NEAR account management tasks
Integrating NEAR functionality into LLM-powered applications
FAQ from NEAR Protocol Full-Featured MCP Server
Is this server secure for production environments?
Is this server secure for production environments?
No, storing the mnemonic in an environment variable is not secure for production. Use a more secure key management solution.
What is an MCP client?
What is an MCP client?
An MCP client is an application that can connect to MCP servers, such as Claude for Desktop.
How do I specify which account to use?
How do I specify which account to use?
You can specify the account ID in the tool function call. If no account ID is provided, the server will use its own account.
What are the prerequisites for running this server?
What are the prerequisites for running this server?
Node.js (v16+), npm, a NEAR account (optional), and an MCP client (optional).
What do I do if the server is not appearing in Claude?
What do I do if the server is not appearing in Claude?
Double-check the claude_desktop_config.json
syntax, verify the absolute path to build/index.js
, and restart Claude Desktop completely.