NN

nearai/near-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

31 stars 16 forks 质量 66 趋势 11MIT

nearai/near-mcp 是从 https://github.com/nearai/near-mcp. 导入的 MCP 服务器候选

概览

nearai/near-mcp 是从 https://github.com/nearai/near-mcp. 导入的 MCP 服务器候选

概述(AI 翻译)

该项目是一个兼容模型上下文协议(MCP)的服务器,用于与NEAR区块链交互。该工具为大型语言模型和人工智能代理提供了一种安全访问和交互NEAR账户及区块链功能的途径。

快速开始

以下是如何快速开始使用近MCP服务器的方法,使用claude代码CLI

或者远程部署 Phala Cloud 的 MCP 服务器,查看这里的说明

安装

near-mcp 是用于兼容 MCP 客户端的。了解更多请访问 MCP 文档

补充claude代码cli:

通过JSON配置添加到claude桌面:

补充到goose

或者你可以全局安装并直接使用。

可用工具

请参阅 TOOLS.md 以获取可用的工具和论据列表。

与人工智能模型的集成

该工具设计用于支持模型上下文协议的AI模型。它使AI助手能够:

  1. 代表用户管理NEAR账户
  2. 检查账户余额和状态
  3. 签署并发送交易
  4. 创建新账户并管理访问密钥
  5. 检查与执行智能合约

安全考量

  • 该MCP旨在本地运行。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

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.

# Install globally
npm install -g @nearai/near-mcp@latest

# Or use directly with npx
npx @nearai/near-mcp@latest run

Available Tools

see TOOLS.md for a list of available tools and arguments.

Integration with AI Models

This tool is designed to be used with AI models that support the Model Context Protocol. It enables AI assistants to:

  1. Manage NEAR accounts on behalf of users
  2. Check account balances and status
  3. Sign and send transactions
  4. Create new accounts and manage access keys
  5. Inspect and execution smart contracts

Security Considerations

  • This MCP is meant to be run locally. Account private keys are stored in a local unencrypted keystore where the MCP server is running.
在 GitHub 查看完整 README

安装

npx -y @nearai/near-mcp@latest run
新手?先看 mcpskill.org 教程 →

配置

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