Skip to main content
Glama

模型上下文协议

🚀 快速入门

此示例向您展示如何创建 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

Related MCP Servers

  • -
    security
    A
    license
    -
    quality
    An MCP server that allows accessing and managing ledger files through Claude by providing account listing, balance checking, and transaction register viewing capabilities.
    Last updated -
    3
    GPL 3.0
    • Apple
  • A
    security
    A
    license
    A
    quality
    An MCP server that enables saving and sharing Claude Desktop conversations, allowing users to store chats privately or make them public through a web interface.
    Last updated -
    11
    MIT License
    • Apple
  • A
    security
    F
    license
    A
    quality
    An MCP server that allows Claude to interact with Discord by providing tools for sending/reading messages and managing server resources through Discord's API.
    Last updated -
    19
    22
  • A
    security
    F
    license
    A
    quality
    A server built on mcp-framework that enables integration with Claude Desktop through the Model Context Protocol.
    Last updated -
    1
    1
    • Apple

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/cryptoleek-team/goat-mcp'

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