NEAR MCP

by nearai
Verified

local-only server

The server can only run on the client’s local machine because it depends on local resources.

Integrations

  • Enables interaction with the NEAR blockchain, providing tools for managing NEAR accounts, checking balances, signing and sending transactions, creating new accounts, managing access keys, and sending NEAR tokens.

MCP附近

该项目是一个与模型上下文协议 ( MCP ) 兼容的服务器,用于与NEAR 区块链进行交互。该工具为 LLM 和 AI 代理提供了一种安全访问 NEAR 账户和区块链功能并与之交互的方法。

快速入门

以下是如何使用claude Code CLI 快速启动 Near-MCP 服务器

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

安装

near-mcp适用于兼容 MCP 的客户端。更多信息请参阅MCP 文档

添加到claude代码cli:

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

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

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

加到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

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

# Install globally npm install -g @nearai/near-mcp@latest # Or use directly with npx npx @nearai/near-mcp@latest run

可用工具

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

与人工智能模型的集成

此工具旨在与支持模型上下文协议的AI模型一起使用。它使AI助手能够:

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

安全注意事项

  • 此 MCP 旨在本地运行。账户私钥存储在 MCP 服务器运行的本地未加密密钥库中。
  • 底层模型不应该有权查看与其交互的账户的私钥,但有一个例外。import_account import_account允许模型从私钥导入账户。这需要用户向模型提供私钥。

贡献

欢迎为 NEAR MCP 服务器做出贡献!请参阅CONTRIBUTING.md文件了解更多信息。

报告问题

如果您发现错误或有功能请求,请在 GitHub 存储库上打开问题。

ID: ibzhoz5k4z