Skip to main content
Glama

NEAR MCP

Official

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

或者在 Phala Cloud 上远程部署 MCP 服务器,请查看此处的说明

安装

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 存储库上打开问题。

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

通过 MCP 调用与 NEAR 区块链进行交互

  1. 快速入门
    1. 安装
      1. 可用工具
        1. 与人工智能模型的集成
          1. 安全注意事项
            1. 贡献
              1. 报告问题

            Related MCP Servers

            • A
              security
              A
              license
              A
              quality
              An MCP server to run commands.
              Last updated -
              2
              265
              150
              TypeScript
              MIT License
              • Apple
            • -
              security
              A
              license
              -
              quality
              A comprehensive MCP server for tooling interactions(40+) and resource accessibility(60+) with Algorand blockchain, plus many useful prompts.
              Last updated -
              31
              31
              TypeScript
              MIT License
              • Linux
              • Apple
            • -
              security
              F
              license
              -
              quality
              A Model Context Protocol (MCP) server that provides onchain tools for Claude AI, allowing it to interact with the Polygon PoS blockchain to call contract functions, manage ERC20 tokens, and check gas prices.
              Last updated -
              68
              TypeScript
            • -
              security
              A
              license
              -
              quality
              An MCP (Model Context Protocol) server that chains calls to other MCP tools, reducing token usage by allowing sequential tool execution with result passing
              Last updated -
              109
              25
              JavaScript
              MIT License

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/nearai/near-mcp'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server