Skip to main content
Glama

鍛冶屋のバッジ

🧠 概要

Moralis MCP サーバーは、自然言語プロンプトを実際のブロックチェーンの洞察に接続する、ローカルまたはクラウドに展開可能なエンジンです。これにより、AI モデルは、カスタム コードや SQL を使用せずに、ウォレットのアクティビティ、トークン メトリック、dapp の使用状況などを照会できます。

モデル コンテキスト プロトコル上に構築されたこのサーバーにより、LLM は一貫性があり、説明可能で、拡張可能な方法で Moralis API と簡単に通信できるようになります。

  • 🔗 完全にプラグイン可能: LLM を交換したり、検索ロジックをカスタマイズしたり、独自のツールで拡張したりできます

  • 🧱 OpenAI、Claude、オープンソースモデルで動作します

  • 🧠 エージェント、開発ツール、ボット、ダッシュボードなどを強化

⚙️ 一般的な使用例

  • 🤖 AI エージェントとアシスタント:「このウォレットの取引履歴は何ですか?」

  • 📈 開発ツール: オンチェーン QA、テスト、CLI 統合

  • 📊 ダッシュボード: 自然言語からグラフ/データへ

  • 📉 モニタリング:トークン/dappsのアラートと要約

  • 🧠 トレーディングボット:実際のブロックチェーンを基盤としたLLM主導の戦略

🔐 APIキーの取得

この MCP サーバーを Moralis API で使用するには、API キーが必要です。

  1. Moralis開発者ポータルへ

  2. サインアップしてログイン

  3. メインメニューからAPIキーページに移動します

  4. キーをコピーして設定ファイルで設定するか (次のセクションを参照)、環境で設定します。

export MORALIS_API_KEY=<your_api_key>

⚠️ 注: 一部の機能とエンドポイントには、Moralis の有料プランが必要です。フルアクセスと本番環境レベルのパフォーマンスを実現するには、有料プランへのご登録をお勧めします。

🚀 クライアントでの使用

MCP サーバーを互換性のあるクライアント (Claude Desktop、OpenAI 互換エージェント、VS Code 拡張機能など) に接続するには、サーバーをサブプロセスとして起動するようにクライアントを構成します。

ほとんどのクライアントは単純な構成ファイルをサポートしています。たとえば、次のような内容でクライアントの構成ディレクトリに mcp.json のようなファイルを作成できます。

{ "mcpServers": { "serverName": { "command": "npx @moralisweb3/api-mcp-server", "args": [], "env": { "MORALIS_API_KEY": "<YOUR_API_KEY>" } } } }

この設定は、MCPサーバーをサポートするあらゆるクライアントに適応できます。例の値は、実際のユースケースに固有の値に置き換えてください。

Smithery経由でインストール

Smithery経由で Claude Desktop 用の Moralis API Server を自動的にインストールするには:

npx -y @smithery/cli install @MoralisWeb3/moralis-mcp-server --client claude

🖥️ サーバーとして使用する

サーバーは、オプションの--transport引数を使用してトランスポートの種類を指定します。使用可能なトランスポートの種類は以下のとおりです。

  • stdio : 標準入出力を介して通信します (デフォルト)。

  • web : 通信用の HTTP サーバーを起動します。

  • streamable-http : ストリーミング可能なエンドポイントを持つ HTTP サーバーを起動します。

  1. デフォルトの:

moralis-api-mcp --transport stdio
  1. web:

moralis-api-mcp --transport web

これによりHTTPサーバーが起動します。curlやPostmanなどのツールを使用してサーバーにリクエストを送信できますcurl

  1. streamable-http:

moralis-api-mcp --transport streamable-http

これによりHTTPサーバーが起動します。curlやPostmanなどのツールを使用してサーバーにリクエストを送信できますcurl

注記

  • サーバーを起動する前に、必要な環境変数 (例: MORALIS_API_KEY ) が設定されていることを確認してください。

  • カスタム構成の場合、必要に応じて追加の引数または環境変数を渡すことができます。

  • 各トランスポート タイプの詳細については、ドキュメントを参照してください。

🛠 開発

依存関係をインストールします:

npm install

サーバーを構築します。

npm run build

自動リビルドを使用した開発の場合:

npm run watch

🐞 デバッグ

MCPサーバーはstdio経由で通信するため、デバッグが困難になる場合があります。パッケージスクリプトとして提供されているMCP Inspectorの使用をお勧めします。

npm run inspector

インスペクターは、ブラウザでデバッグ ツールにアクセスするための URL を提供します。

💬 プロンプトの例

MCP サーバーを介して AI エージェントで使用できるプロンプトの例を次に示します。

- What’s the current price of PEPE and Ethereum? - What is the current trading sentiment for TOSHI on Base — bullish or bearish? - Show me the NFTs owned by `vitalik.eth` on Base. - What tokens does wallet `0xab71...4321` hold? - When was wallet 0xabc...123 first and last seen active on Ethereum, Base, and Polygon? - Show me the complete transaction history for 0xabc...123 across Ethereum, Base, and BNB Chain. - What is the current net worth in USD of wallet 0xabc...123? - Find wallet addresses that are likely associated with Coinbase. - Analyze the current holder distribution of SPX6900 — include whales, small holders, and recent growth trends. - Show me PEPE’s daily OHLC data for the past 30 days and provide a summary of the trend — is it bullish or bearish?

これらのプロンプトは、MCP メソッド レジストリを使用して解析され、構造化された Moralis API 呼び出しにマッピングされます。

💡 サポートされている任意の方法に基づいてカスタムプロンプトを作成することもできます。

📚 APIリファレンス

Moralis MCPサーバーは、プロンプトをラップしてMoralis REST API呼び出しに変換します。基盤となるAPIサーフェスについては、こちらをご覧ください。

🔗 Moralis Swagger ドキュメント (v2.2)

このドキュメントでは、次のエンドポイントについて説明します。

  • トークンの価格設定

  • ウォレットアクティビティ

  • NFTのメタデータと所有権

  • 送金と取引

  • その他

Related MCP Servers

  • A
    security
    -
    license
    A
    quality
    A TypeScript-based Model Context Protocol (MCP) server enabling integration with PiAPI for media content generation using platforms like Midjourney, Flux, and others through MCP-compatible applications.
    Last updated -
    61
    MIT License
    • Apple
  • A
    security
    -
    license
    A
    quality
    Enables interaction with Trello boards, lists, and cards through Model Context Protocol (MCP) tools, leveraging TypeScript for type safety and asynchronous operations.
    Last updated -
    1
  • -
    security
    -
    license
    -
    quality
    A Model Context Protocol server that converts Solidity bytecode into functional server implementations, allowing interaction with blockchain contracts through a RESTful API.
    Last updated -
    3
  • A
    security
    -
    license
    A
    quality
    A TypeScript implementation of a Model Context Protocol server providing read-only access to Lithic banking and card services API.
    Last updated -
    2
    1

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/MoralisWeb3/moralis-mcp-server'

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