Integrations
Supports environment configuration through .env files for specifying port and Flow network settings.
Provides a way to interact with GitHub repositories, specifically for cloning the Flow MCP Server repository.
Supports JavaScript-based configuration for connecting to Flow networks with appropriate contract addresses.
Flow MCP Server
Model Context Protocol (MCP) server for Flow blockchain with direct RPC communication.
This server implements the Model Context Protocol and provides tools for interacting with the Flow blockchain directly through RPC calls.
Features
- Get account balances (FLOW and tokens)
- Execute Flow scripts
- Send transactions
- Resolve domains to Flow addresses
- Interact with Flow contracts
- Full MCP compliance for AI agent integration
Setup
- Clone the repository:Copy
- Install dependencies:Copy
- (Optional) Create a
.env
file with your configuration:The server automatically uses the Flow mainnet by default. You only need to configure the environment if you want to use the testnet or a custom port.Copy
Usage
Starting the server
Using NPX Command
You can run the MCP server directly using npx without installation:
Or install it globally:
Command Line Options
Network Configuration
The server automatically configures FCL with the appropriate contract addresses for the selected network. The following networks are supported:
Mainnet
The mainnet configuration includes contract addresses for:
Testnet
The testnet configuration includes contract addresses for testnet environment.
You can also see the current network configuration by accessing the /networks
endpoint.
MCP Configuration
To configure an AI assistant to use Flow MCP, use the following configuration:
Or with direct HTTP API:
Usage with AI assistants
The server implements the Model Context Protocol which allows it to be used with AI assistants that support MCP. It exposes various tools for interacting with the Flow blockchain.
API Endpoints
/sse
- SSE endpoint for real-time communication/messages
- Endpoint for sending tool requests/health
- Health check endpoint/
- Server information/networks
- Network configuration information
Available Tools
get_flow_balance
- Get FLOW balance for an addressget_token_balance
- Get token balance for an addressexecute_script
- Execute a Cadence scriptsend_transaction
- Send a signed transaction to the Flow blockchainresolve_domain
- Resolve a .find or .fn domain to a Flow address
Publishing to npm
If you want to publish your own version of this package:
License
MIT
This server cannot be installed
A Model Context Protocol server that enables AI agents to interact with the Flow blockchain through RPC calls, supporting account balances, script execution, transactions, domain resolution, and contract interactions.