GOAT MCP Server

Integrations

  • Enables interaction with Solana blockchain, providing capabilities to check wallet balances and send tokens through the MCP server.

模型上下文协议

🚀 快速入门

此示例向您展示如何创建 MCP 服务器以将 GOAT 与 Claude for Desktop 连接起来。

它适用于 EVM(Base Sepolia)和 Solana 链,但可以更新以支持任何其他链、钱包和一系列工具。

要求

  • 已安装 Claude 桌面版。您可以从此处下载。

设置

  1. 克隆存储库:
git clone https://github.com/goat-sdk/goat.git && cd goat
  1. typescript目录运行以下命令:
cd typescript pnpm install pnpm build
  1. 进入示例目录:
cd examples/by-framework/model-context-protocol

为 Claude 配置 MCP 服务器

  1. mcp-evm.example.json文件复制到mcp-evm.json
# For EVM cp mcp-evm.example.json mcp-evm.json # For Solana cp mcp-solana.example.json mcp-solana.json
  1. 使用 EVM 或 Solana 的值更新 json 文件:
  • model-context-protocol文件夹父文件夹的绝对路径,可以通过在model-context-protocol文件夹中运行pwd来获取
  • WALLET_PRIVATE_KEY
  • RPC_PROVIDER_URL
  1. 复制/更新 json 文件并将其重命名为claude_desktop_config.json文件到~/Library/Application Support/Claude/目录:
# For EVM cp mcp-evm.json ~/Library/Application\ Support/Claude/claude_desktop_config.json # For Solana cp mcp-solana.json ~/Library/Application\ Support/Claude/claude_desktop_config.json

这告诉 Claude for Desktop:

  • 有名为“goat-evm” / “goat-solana” 的 MCP 服务器
  • 通过运行指定的命令来启动它
  1. 重新启动 Claude 桌面版。

注意:更改代码时,您需要确保:

  1. model-context-protocol文件夹中运行pnpm build以生成更新的evm.jssolana.js文件。
  2. 如果您更新了 json 文件:请将其重新复制到~/Library/Application Support/Claude/目录,或者使用新值更新claude_desktop_config.json文件。您还需要重新启动 Claude。

用法

  1. 运行 Claude 桌面版
  2. 与代理聊天:
  • 检查您的 ERC-20 代币余额
  • 将 ERC-20 代币发送到另一个地址
  • 再次检查你的余额,查看你刚刚发送的代币

有关如何使用模型上下文协议的更多信息,请查看文档

-
security - not tested
F
license - not found
-
quality - not tested

一个将 Claude for Desktop 与区块链功能连接起来的 MCP 服务器,允许用户通过自然语言交互检查余额并在 EVM 和 Solana 链上发送代币。

  1. 🚀 Quickstart
    1. Requirements
      1. Setup
        1. Configure the MCP server for Claude
      2. Usage
        ID: hot8o63osi