Labsco
decenterailab logo

DeAI API MCP Server

from decenterailab

Interact with the DeAI API for token analysis, holder tracking, and wallet portfolio analytics on Ethereum.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedAccount requiredAdvanced setup

DeAI API MCP Server

A Model Context Protocol (MCP) server that provides tools to interact with the DeAI API for token analysis, holder tracking, and wallet portfolio analytics on Ethereum.

Features

The MCP server exposes the following tools for analytics (Currently supports ETH):

  • get_token_info - Get detailed token information including name, symbol, decimals, logo, and token tax
  • get_top_holders - Analyze the holders of any token with their balances and percentages
  • get_token_holder_balance_changes - Track balance changes for token holders over the last 7 days
  • get_portfolio - Get comprehensive portfolio data for any wallet including total value, changes, and token holdings

๐Ÿ› ๏ธ Development

Project Structure

deai-api-mcp-server/
โ”œโ”€โ”€ src/
โ”‚   โ””โ”€โ”€ server.js          # Main MCP server implementation
โ”œโ”€โ”€ package.json           # Dependencies and scripts
โ”œโ”€โ”€ example.env           # Environment template
โ””โ”€โ”€ README.md             # This file

Security

  • API keys are passed via env variables
  • No sensitive data is logged or stored
  • Network requests use built-in fetch with timeout protection
  • Input validation using Zod schemas

API Reference

Supported Endpoints

  • Token Info: /api/token/token-info/{contractAddress}
  • Top Holders: /api/token/top-holders/{contractAddress}
  • Balance Changes: /api/token/token-holder-balance-changes/{contractAddress}
  • Portfolio: /api/token/portfolio/{walletAddress}

Supported Networks

  • Ethereum Mainnet (primary)

Rate Limits

Rate limits depend on your API key tier:

  • Standard: 2 requests/second, 10,000 credits
  • Pro: 5 requests/second, 50,000 credits
  • Enterprise: custom credits