MetaMask MCP

Integrations

  • Used for running the MCP server, with the application requiring Node.js v20 or higher as specified in the requirements.

  • Required for package management as specified in the setup instructions for installing dependencies and building the project.

メタマスクMCP

LLM が MetaMask を介してブロックチェーンと対話できるようにするモデルコンテキストプロトコル (MCP) サーバー。

これらのツールを使用すると、秘密鍵は暗号通貨ウォレットに安全に保存され、メッセージに署名したりトランザクションを送信したりするときに AI エージェントと共有されることはありません。

プレビュー

https://github.com/user-attachments/assets/3fe8f20b-4666-4c36-8030-04d3e5d587c7

要件

  • Node.js (v20以上)
  • pnpm

設定

  1. リポジトリをクローンする
git clone https://github.com/Xiawpohr/metamask-mcp.git cd metamask-mcp
  1. 依存関係をインストールする
pnpm install
  1. プロジェクトを構築する
pnpm build

Claude Desktopでの使用

ガイドhttps://modelcontextprotocol.io/quickstart/userに従って、次の構成を追加します。

{ "mcpServers": { "metamask": { "command": "node", "args": [ "/PATH/TO/YOUR_PROJECT/dist/index.ts" ] } } }

ツール

  • call : トランザクションをネットワークに送信せずに、新しいメッセージの呼び出しを直ちに実行します。
  • get-chain-list : すべてのチェーン情報のリストを取得します。
  • get-connect-uri : MetaMask ウォレットに接続するための接続 URI を取得します。
  • show-connect-qrcode : 指定された接続 URI の接続 QR コードを表示します。
  • deploy-contract : 指定されたバイトコードとコンストラクター引数を使用して、ネットワークにコントラクトをデプロイします。
  • disconnect : ウォレットを切断します。
  • estimate-fee-per-gas : 次のブロックに含まれる可能性のあるトランザクションのガスあたりの手数料(wei単位)の見積もり。
  • estimate-gas : ネットワークに送信せずにトランザクションを完了するために必要なガスを推定します。
  • get-account : 現在のアカウントを取得します。
  • get-native-currency-balance : アドレスのネイティブ通貨残高を取得します。
  • get-token-balance : アドレスのトークン残高を取得します。
  • get-block-number : 最後に確認されたブロックの番号を取得します。
  • get-block : ブロック番号、ハッシュ、またはタグでブロックに関する情報を取得します。
  • get-chain-id : 現在のチェーン ID を取得します。
  • get-chains : 設定されたチェーンを取得します。
  • get-ens-address : 名前の ENS アドレスを取得します。
  • get-ens-name : アドレスのプライマリ ENS 名を取得します。
  • get-gas-price : 現在のガス価格(wei単位)を取得します。
  • get-token : トークン情報を取得します。
  • get-transaction-reeceipt : トランザクション ハッシュを指定してトランザクション レシートを取得します。
  • get-transaction : ハッシュまたはブロック識別子を指定してトランザクションを取得します。
  • read-contract : コントラクトに対して読み取り専用関数を呼び出し、応答を返します。
  • send-transaction : トランザクションをネットワークに送信します。
  • sign-message : メッセージに署名します。
  • switch-chain : 対象チェーンを切り替えます。
  • verify-message : 指定されたアドレスによってメッセージが署名されていることを確認します。
  • wait-for-transaction-receipt : トランザクションがブロックに含まれるのを待機し、トランザクションの受信を返します。
  • write-contract : コントラクトに対して書き込み関数を実行します。

プロンプト

貢献

貢献を歓迎します!改善点やバグ修正があればプルリクエストを送信してください。

ライセンス

MITライセンス

You must be authenticated.

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

local-only server

The server can only run on the client's local machine because it depends on local resources.

LLM が MetaMask を介してブロックチェーンと対話できるようにし、トランザクションとブロックチェーン操作を可能にしながら秘密鍵を暗号ウォレットに安全に保管するモデルコンテキストプロトコル サーバーです。

  1. Preview
    1. Requirements
      1. Setup
        1. Using with Claude Desktop
          1. Tools
            1. Prompts
              1. Contributing
                1. License

                  Related MCP Servers

                  • A
                    security
                    A
                    license
                    A
                    quality
                    A Model Context Protocol server that enables LLMs to interact with Salesforce data through SOQL queries, SOSL searches, and various API operations including record management.
                    Last updated -
                    10
                    53
                    Python
                    MIT License
                  • A
                    security
                    A
                    license
                    A
                    quality
                    A Model Context Protocol server that gives LLMs the ability to interact with Ethereum networks, manage wallets, query blockchain data, and execute smart contract operations through a standardized interface.
                    Last updated -
                    31
                    323
                    2
                    TypeScript
                    MIT License
                  • -
                    security
                    F
                    license
                    -
                    quality
                    A Model Context Protocol server that enables LLMs to access Binance Smart Chain data, perform blockchain queries, and create Four.meme tokens.
                    Last updated -
                    TypeScript
                    • Linux
                    • Apple
                  • -
                    security
                    A
                    license
                    -
                    quality
                    A Model Context Protocol server that enables LLMs to interact with databases (currently MongoDB) through natural language, supporting operations like querying, inserting, deleting documents, and running aggregation pipelines.
                    Last updated -
                    TypeScript
                    MIT License
                    • Apple

                  View all related MCP servers

                  ID: cw2ldcetl4