Flow MCP 服务器
具有直接 RPC 通信功能的 Flow 区块链的模型上下文协议 (MCP) 服务器。
该服务器实现了模型上下文协议,并提供了通过 RPC 调用直接与 Flow 区块链交互的工具。
特征
- 获取账户余额(FLOW 和代币)
- 执行 Flow 脚本
- 发送交易
- 将域名解析为 Flow 地址
- 与 Flow 合约交互
- 完全符合 MCP 规范,可实现 AI 代理集成
设置
- 克隆存储库:
- 安装依赖项:
- (可选)使用您的配置创建一个
.env
文件:服务器默认使用 Flow 主网。如果您想使用测试网或自定义端口,只需配置环境即可。
用法
启动服务器
使用 NPX 命令
您可以直接使用 npx 运行 MCP 服务器,无需安装:
或者全局安装:
命令行选项
网络配置
服务器会自动为 FCL 配置所选网络的相应合约地址。支持以下网络:
主网
主网配置包括以下合约地址:
测试网
测试网配置包括测试网环境的合约地址。
您还可以通过访问/networks
端点查看当前网络配置。
MCP 配置
要配置 AI 助手使用 Flow MCP,请使用以下配置:
或者直接使用 HTTP API:
与人工智能助手一起使用
该服务器实现了模型上下文协议 (MCP),使其能够与支持 MCP 的 AI 助手一起使用。它提供了各种与福洛区块链交互的工具。
API 端点
/sse
用于实时通信的 SSE 端点/messages
- 发送工具请求的端点/health
- 健康检查端点/
- 服务器信息/networks
网络配置信息
可用工具
get_flow_balance
- 获取地址的 FLOW 余额get_token_balance
- 获取地址的代币余额execute_script
Cadence 脚本send_transaction
- 将签名的交易发送到 Flow 区块链resolve_domain
- 将 .find 或 .fn 域名解析为 Flow 地址
发布到 npm
如果您想发布此包的自己的版本:
执照
麻省理工学院
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
模型上下文协议服务器,使 AI 代理能够通过 RPC 调用与 Flow 区块链交互,支持账户余额、脚本执行、交易、域解析和合约交互。
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol server that enables AI agents to interact with 30+ Ethereum-compatible blockchain networks, providing services like token transfers, contract interactions, and ENS resolution through a unified interface.Last updated -28230252TypeScriptMIT License
- -securityFlicense-qualityA Model Context Protocol server that enables AI assistants to access Flow blockchain data and perform operations such as checking balances, resolving domains, executing scripts, and submitting transactions.Last updated -JavaScript
- -securityAlicense-qualityA production-ready Model Context Protocol server implementation that connects AI assistants to the TON blockchain, allowing them to query wallet balances, transaction details, smart contracts, and other blockchain data.Last updated -TypeScriptMIT License
- AsecurityAlicenseAqualityA comprehensive Model Context Protocol server that enables AI agents to interact with Starknet blockchain, query data, manage wallets, and work with smart contracts.Last updated -25154TypeScriptMIT License