NEAR MCP

by nearai

31 stars
157 downloads
Not rated
GitHub

About

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.

Details

Author
nearai
GitHub stars
31
Downloads
157
Categories
Other

- 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

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name NEAR MCP
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

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.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "near mcp": {
            "near-mcp": {
                "command": "npx",
                "args": [
                    "@nearai/near-mcp@latest",
                    "run"
                ]
            }
        }
    }
}

McpServers

{
    "near-mcp": {
        "command": "npx",
        "args": [
            "@nearai/near-mcp@latest",
            "run"
        ]
    }
}

NEAR MCP

This project is a Model Context Protocol (MCP) compatible server for interacting with the NEAR blockchain. This tool provides a way for LLMs and AI agents to securely access and interact with NEAR accounts and blockchain functionality.

Quickstart

Here is how to get started with the near-mcp server quickly with the claude code cli

npm install -g @anthropic-ai/claude-code
claude mcp add near-mcp npx @nearai/near-mcp@latest run
claude

Or deploy the MCP server remotely on Phala Cloud, check the instructions here

Installing

near-mcp is meant to be used is with an MCP compatible client. Learn more in the MCP docs

Adding to the claude code cli:

claude mcp add near-mcp npx @nearai/near-mcp@latest run

Adding to claude desktop via JSON config:

{
  "mcpServers": {
    "near-mcp": {
      "command": "npx",
      "args": ["-y", "@nearai/near-mcp@latest", "run"],
      "env": {}
    }
  }
}

Adding to goose

┌   goose-configure
│
◇  What would you like to configure?
│  Add Extension
│
◇  What type of extension would you like to add?
│  Command-line Extension
│
◇  What would you like to call this extension?
│  near-mcp
│
◇  What command should be run?
│  npx @nearai/near-mcp@latest run
│
◇  Please set the timeout for this tool (in secs):
│  60
│
◇  Would you like to add environment variables?
│  No
│
└  Added near-mcp extension

Or you can install it globally and use it directly.

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.