Skip to main content
Glama

Flow MCP

by Outblock

@outblock/flow-mcp

Flow-Blockchain-Tools für das Model Context Protocol (MCP). Dieses Paket bietet eine Reihe von Tools für die Interaktion mit der Flow-Blockchain über das Model Context Protocol.

Merkmale

  • Erhalten Sie das FLOW-Guthaben für jede Adresse
  • Erhalten Sie das Token-Guthaben für jedes Flow-Token
  • COA-Kontoinformationen abrufen
  • Vertragsquellcode abrufen
  • Erhalten Sie detaillierte Kontoinformationen einschließlich Speicherstatistiken

Installation

# Using npm npm install @outblock/flow-mcp # Using bun bun add @outblock/flow-mcp

MCP-Konfiguration

Um dieses Tool mit Claude zu verwenden, fügen Sie Ihrer MCP-Konfiguration Folgendes hinzu:

{ "mcpServers": { "flow": { "command": "npx", "args": ["-y", "@outblock/flow-mcp"] } } }

Ihre MCP-Konfiguration finden Sie unter:

  • macOS: ~/Library/Application Support/Claude/mcp.json
  • Windows: %APPDATA%/Claude/mcp.json
  • Linux: ~/.config/Claude/mcp.json

Starten Sie Claude nach dem Hinzufügen der Konfiguration neu, um den neuen MCP-Server zu laden.

Werkzeuge

Durchflussbilanz

Erhalten Sie den FLOW-Saldo für jede Adresse:

{ name: 'get_flow_balance', input: { address: string, network?: 'mainnet' | 'testnet' } }

Kontoinformationen

Erhalten Sie detaillierte Kontoinformationen:

{ name: 'get_account_info', input: { address: string, network?: 'mainnet' | 'testnet' } }

Token-Guthaben

Erhalten Sie das Guthaben für jedes Flow-Token:

{ name: 'get_token_balance', input: { address: string, network?: 'mainnet' | 'testnet' } }

COA-Konto

COA-Kontoinformationen abrufen:

{ name: 'get_coa_account', input: { address: string, network?: 'mainnet' | 'testnet' } }

Vertrag erhalten

Vertragsquellcode abrufen:

{ name: 'get_contract', input: { address: string, contractName: string, network?: 'mainnet' | 'testnet' } }

📂 Projektstruktur

flow-mcp/ ├── src/ │ ├── tools/ # MCP tools implementation │ │ ├── flowBalance/ # Flow balance tool │ │ ├── accountInfo/ # Account info tool │ │ ├── tokenBalance/ # Token balance tool │ │ ├── coaAccount/ # COA account tool │ │ └── getContract/ # Contract source tool │ ├── utils/ # Shared utilities │ ├── prompts/ # MCP prompts │ ├── types/ # Type definitions │ └── bin/ # CLI implementation ├── biome.json # Linting configuration ├── tsconfig.json # TypeScript configuration └── package.json # Project dependencies

🛠️ Entwicklung

Dieses Projekt verwendet FastMCP für Entwicklung und Tests. FastMCP bietet eine optimierte Entwicklungserfahrung für MCP-Server.

# Install dependencies bun install # Format code bun run format # Run tests bun test # Run development server bun run dev # Inspect the server bun run inspect # Build bun run build

So fügen Sie Ihren Entwicklungs-MCP-Server zu Claude Desktop hinzu:

  1. Erstellen Sie das Projekt:
    bun run build
  2. Fügen Sie Ihrer Claude Desktop-Konfiguration hinzu:
    // You only need the argument if you need to pass arguments to your server { "mcpServers": { "your-server-name": { "command": "node", "args": ["/path/to/your/project/dist/main.js", "some_argument"] } } }

Erstellen neuer Tools

Das Projekt enthält ein Skript zur Unterstützung der Erstellung neuer MCP-Tools:

bun run scripts/create-tool.ts <tool-name>

Dies wird:

  1. Erstellen Sie ein neues Tool-Verzeichnis unter src/tools/<tool-name>
  2. Generieren Sie die grundlegende Werkzeugstruktur, einschließlich:
    • index.ts (Hauptimplementierung)
    • schema.ts (JSON-Schema für Tool-Parameter)
    • test.ts (Testdatei)
  3. Aktualisieren Sie die Indexdatei des Tools, um das neue Tool zu exportieren

Beispiel:

bun run scripts/create-tool.ts weather

Commit-Nachrichtenformat

  • feat : Neue Funktion (verbessert Nebenversion)
  • fix : Fehlerbehebung (verbessert die Patch-Version)
  • BREAKING CHANGE : Breaking Change (erhöht die Hauptversion)

📜 Versionsverwaltung

Dieses Projekt verwendet die Standardversion für die automatisierte Versionsverwaltung. Führen Sie bun run release aus, um eine neue Version zu erstellen.

📦 Veröffentlichen auf npm

  1. Stellen Sie sicher, dass Sie bei npm angemeldet sind:
    npm login
  2. Erstellen Sie das Projekt:
    bun run build
  3. Veröffentlichen Sie das Paket:
    npm publish

Denken Sie daran, die Versionsnummer mit bun run release zu aktualisieren, bevor Sie neue Versionen veröffentlichen.

Lizenz

MIT-Lizenz – Einzelheiten finden Sie unter LIZENZ.

Beitragen

Beiträge sind willkommen! Senden Sie gerne einen Pull Request.

You must be authenticated.

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

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.

Bietet Tools für die Interaktion mit der Flow-Blockchain, einschließlich der Überprüfung des Flow-Guthabens, der Abfrage des Token-Guthabens und des Abrufs von Informationen zu Cadence Owned Accounts.

  1. Merkmale
    1. Installation
      1. MCP-Konfiguration
        1. Werkzeuge
          1. Durchflussbilanz
          2. Kontoinformationen
          3. Token-Guthaben
          4. COA-Konto
          5. Vertrag erhalten
        2. 📂 Projektstruktur
          1. 🛠️ Entwicklung
            1. Erstellen neuer Tools
            2. Commit-Nachrichtenformat
          2. 📜 Versionsverwaltung
            1. 📦 Veröffentlichen auf npm
              1. Lizenz
                1. Beitragen

                  Related MCP Servers

                  • A
                    security
                    A
                    license
                    A
                    quality
                    Facilitates interaction with Ethereum blockchain data via Etherscan's API, providing real-time access to balances, transactions, token transfers, contract ABIs, gas prices, and ENS name resolutions.
                    Last updated -
                    6
                    3
                    13
                    TypeScript
                    MIT License
                  • A
                    security
                    A
                    license
                    A
                    quality
                    Provides Ethereum blockchain data tools via Etherscan's API, enabling users to check ETH balances, view transactions, track token transfers, fetch contract ABIs, monitor gas prices, and resolve ENS names.
                    Last updated -
                    6
                    3
                    TypeScript
                    MIT License
                  • -
                    security
                    A
                    license
                    -
                    quality
                    Enables read and write interactions with 60+ blockchain networks through Claude Desktop, providing a standardized multi-chain API for transaction management, account insights, staking, and token interactions.
                    Last updated -
                    TypeScript
                    MIT License
                    • Apple
                  • -
                    security
                    A
                    license
                    -
                    quality
                    Provides onchain tools for Claude AI to interact with the Base blockchain and Coinbase API, enabling wallet management, fund transfers, and smart contract deployment.
                    Last updated -
                    136
                    204
                    TypeScript
                    MIT License
                    • Apple
                    • Linux

                  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/Outblock/flow-mcp'

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