Skip to main content
Glama

TapTools API MCP

by brianbell-x

タップツール API MCP

Pythonベースのモデルコンテキストプロトコル(MCP)サーバー。TapTools APIへのアクセスを提供し、ClaudeやGPTなどの大規模言語モデル(LLM)がCardano関連データ(トークン、NFT、市場情報など)を取得できるようにします。このサーバーはTapTools APIの操作をMCP「ツール」として標準化し、AIワークフローへの容易な統合を可能にします。

特徴

  • 非同期実装: 非ブロッキング IO に最新の Python 非同期パターンと httpx を使用します。
  • 安全な認証: 環境変数または.envファイルからTAPTOOLS_API_KEYを読み取ります。
  • MCP 対応: TapTools 機能を、MCP 準拠のクライアントからアクセスできる「ツール」として公開します。
  • トークン操作: 価格、トップトークン、時価総額データ、取引量統計など。
  • NFT オペレーション: NFT コレクションの統計、取引、リスト、配布など。
  • 市場データ: 取引量、アドレス、保有者などの集計統計。
  • 統合とオンチェーン: オンチェーン データ、ブロック情報、イベント、DEX ペアなどへのアクセス。
  • ウォレット データ: ポートフォリオのポジション、トークン/NFT の保有、取引履歴、取引。

クイックスタート

  1. リポジトリをクローンします:
    git clone https://github.com/yourusername/taptools-api-mcp.git cd taptools-api-mcp
  2. 仮想環境を作成してアクティブ化します
    python3 -m venv .venv source .venv/bin/activate # On Windows: .venv\Scripts\activate
  3. 依存関係をインストールします:
    pip install -e .
  4. TapTools API キーを設定します:
    • オプション A : .envファイルに追加:
      TAPTOOLS_API_KEY=your-real-taptools-api-key
    • オプション B : 環境変数を設定する:
      export TAPTOOLS_API_KEY="your-real-taptools-api-key"
  5. MCP サーバーを実行します:
    python -m taptools_api_mcp
    デフォルトでは、MCP 統合のために標準入出力 (stdio) で実行されます。
  6. 接続をテストします(オプション):
    python test_connection.py

使用例

MCP クライアント ( mcp Python CLI ツールなど) がある場合は、サーバーを起動して、利用可能なツールのいずれかを呼び出すことができます。

# In one terminal, start the server: python -m taptools_api_mcp # In another terminal (or from the same, if you prefer): mcp cli

mcp cliに入ると、次のようなツールを呼び出すことができます。

> tool verify_connection

これにより、TapTools API キーが有効でアクセス可能であることが確認されます。

あるいは、たとえばトークンの時価総額情報を取得するには:

> tool get_token_mcap {"unit": "lovelace"}

トークンの時価総額、価格、供給量などを含む JSON データを受け取る必要があります。

APIドキュメント: MCPツール

利用可能なMCPツール、そのパラメータ、および簡単な説明の一覧を以下に示します。これらのツールは、正しいJSONペイロードで呼び出す必要があります。すべてのJSONリクエストはsrc/taptools_api_mcp/models/にあるPydanticモデルと一致している必要があります。

1. verify_connection

  • 説明: TapTools API 認証を確認します。
  • パラメータ: (パラメータなし)
  • 使用例:
    { }

2. get_token_mcap

  • 説明: トークンの時価総額情報を取得します。
  • パラメータ( TokenMcapRequest ):
    { "unit": "string" // required: token unit identifier }
  • 使用例:
    { "unit": "lovelace" }

3. get_token_holders

  • 説明: トークン保有者の総数を取得します。
  • パラメータ( TokenHoldersRequest ):
    { "unit": "string" // required: token unit identifier }
  • 使用例:
    { "unit": "lovelace" }

4. get_token_holders_top

  • 説明: トップトークン保有者を獲得します。
  • パラメータ( TokenTopHoldersRequest ):
    { "unit": "string", // required "page": "number", // optional (default 1) "per_page": "number"// optional (default 20) }
  • 使用例:
    { "unit": "some_token_unit", "page": 1, "per_page": 5 }

5. get_nft_asset_sales

  • 説明: NFT 資産の販売履歴を取得します。
  • パラメータ( NFTAssetSalesRequest ):
    { "policy": "string", // required: NFT policy ID "name": "string" // optional: NFT name }
  • 使用例:
    { "policy": "abc123polid", "name": "coolNFT" }

6. get_nft_collection_stats

  • 説明: NFT コレクションの統計を取得します。
  • パラメータ( NFTCollectionStatsRequest ):
    { "policy": "string" // required: NFT collection policy ID }
  • 使用例:
    { "policy": "abc123polid" }

7. get_market_stats

  • 説明: 市場全体の統計を取得します。
  • パラメータ( MarketStatsRequest ):
    { "quote": "string" // optional, default "ADA" }
  • 使用例:
    { "quote": "USD" }

8. get_integration_asset

  • 説明: ID (統合エンドポイント) で資産の詳細を取得します。
  • パラメーター( IntegrationAssetRequest ):
    { "id": "string" // required: ID of the asset }
  • 使用例:
    { "id": "asset123abc" }

9. get_asset_supply

  • 説明: オンチェーン資産の供給を取得します。
  • パラメータ( AssetSupplyRequest ):
    { "unit": "string" // required: token unit identifier }
  • 使用例:
    { "unit": "lovelace" }

10. get_wallet_portfolio

  • 説明: ウォレット ポートフォリオの位置を取得します。
  • パラメータ( WalletPortfolioPositionsRequest ):
    { "address": "string" // required: wallet address }
  • 使用例:
    { "address": "addr1xyz..." }

(必要に応じて、トークン、NFT、オンチェーンなどの追加のエンドポイントを同じ形式で追加できます。その他の可能なリクエストについてはsrc/taptools_api_mcp/models/フォルダーを参照してください。)

展開

このPython MCPサーバーは、AWS ECS、Azure Container Instances、Google Cloud Runなどのサービスでコンテナ化またはホストできます。TAPTOOLS_API_KEY TAPTOOLS_API_KEYシークレットとして安全に保管してください。Dockerベースのデプロイメントの場合:

# Example Dockerfile snippet FROM python:3.10-slim WORKDIR /app COPY . /app RUN pip install -e . # environment variable for TapTools API key ENV TAPTOOLS_API_KEY=your-real-taptools-api-key CMD ["python", "-m", "taptools_api_mcp"]

: MCP仕様に従い、サーバーはデフォルトでstdioをリッスンします。高度なデプロイメントやカスタム統合では、環境の要件に応じて、 server.py別のトランスポート(ソケットなど)で実行するように調整できます。

-
security - not tested
A
license - permissive license
-
quality - not tested

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.

TapTools API を統合した Python ベースの MCP サーバー。AI モデルが標準化されたツールを使用して、トークン、NFT、市場統計、ウォレット情報などの Cardano ブロックチェーン データを取得できるようになります。

  1. 特徴
    1. クイックスタート
      1. 使用例
        1. APIドキュメント: MCPツール
          1. 展開

            Related MCP Servers

            • -
              security
              F
              license
              -
              quality
              An MCP server that enables AI models like Claude to interact with the Trading Simulator API for checking balances, viewing prices, and executing trades with automatic chain detection.
              Last updated -
              TypeScript
              • Linux
              • Apple
            • A
              security
              F
              license
              A
              quality
              A Python implementation of an MCP server that enables secure, local Bitbucket integration for AI applications, providing tools for repository management, branch creation, file operations, issue tracking, and pull request creation.
              Last updated -
              10
              3
              Python
              • Apple
              • Linux
            • -
              security
              -
              license
              -
              quality
              An MCP server that enables AI assistants to access up-to-date documentation for Python libraries like LangChain, LlamaIndex, and OpenAI through dynamic fetching from official sources.
              Last updated -
              1
              Python
              MIT License
            • A
              security
              A
              license
              A
              quality
              MCP service that provides real-time access to Binance cryptocurrency market data, allowing AI agents to fetch current prices, order books, candlestick charts, and trading statistics through natural language queries.
              Last updated -
              12
              49
              8
              JavaScript
              Apache 2.0

            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/brianbell-x/tadpoletools-mcp'

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