Sponsored by Deepsite.site

Messari Influencer Mindshare and Asset Analysis

Created By
N-45div8 months ago
A MCP server powered by Messari Chat Agent API and an LLM based kit for mindshare and set insights over the time and plots to be the next crime-fighting AI toolkit.
Content

Messari Influencer Mindshare and Asset Analysis

This repository contains a Python script for analyzing mindshare data of cryptocurrency assets using the Messari API. The script fetches mindshare data, performs anomaly detection, visualizes trends, and provides insights into significant spikes in attention for a given asset. The analysis is tailored for use in Google Colab, with plotting and readable insights displayed directly in the notebook.


Overview

The Python script provides several functions to facilitate mindshare analysis for both cryptocurrency assets and Key Opinion Leaders (KOLs) on social media platforms like Twitter. Below is a description of each function:


call_mistral

  • Purpose: Interacts with the Mistral API to perform sentiment analysis on text data (e.g., summaries of trending topics).
  • Returns: A JSON object with the sentiment (positive, negative, or neutral) and an insight into how the topic may influence crypto market attention.
  • Features:
    • Includes retry logic for handling rate limits.
    • Caches responses to avoid redundant API calls.
  • Used In: KOL mindshare analysis to explain anomalies by sentiment-analyzing related trending topics.

  • Purpose: Fetches trending topics from the Messari API within a given date range and topic classes (e.g., "Macro Commentary, Project Announcements, Legal and Regulatory").
  • Returns: A dictionary of trending topics for the specified criteria.
  • Used For: Providing context for mindshare anomalies in the KOL analysis by correlating spikes with relevant market news and events.

analyze_mindshare_data

  • Purpose: Retrieves mindshare data for a specific Twitter handle (e.g., @AltcoinGordon) from the Messari API.
  • Processes:
    • Detects anomalies in mindshare scores using z-scores (default threshold: 2.0).
    • Plots mindshare scores over time with anomalies highlighted in red.
    • Provides insights on:
      • Trends (upward/downward/stable)
      • Score and rank ranges
      • List of anomalies
    • Uses call_mistral + get_trending_details to add sentiment + market explanation to detected anomalies.
  • Display: Results are shown directly in Google Colab.
  • Best For: KOL mindshare tracking and insight generation.

analyze_asset_mindshare

  • Purpose: Retrieves mindshare data for a specific cryptocurrency asset (e.g., official-trump for $TRUMP, mantra-dao for $OM).
  • Processes:
    • Detects anomalies in asset mindshare scores using z-scores (default threshold: 2.0).
    • Plots scores over time with anomalies highlighted in orange.
    • Provides concise insights about:
      • Mindshare trends
      • Score and rank ranges
      • Anomaly dates and scores
  • Display: Designed to work directly in Google Colab for interactive visual exploration.
  • Best For: Analyzing market attention shifts for individual crypto assets.

🚀 Running the MCP Server

The MCP Server provides a backend for broader mindshare comparison functionality.

  • Navigate to the server code: server.py
  • Ensure the Messari API key is configured correctly.

API List

The following APIs are used in this project:

  • Copilot Agent API
  • Current Topics API
  • X-Users Mindshare Over Time API
  • Mindshare of Asset Over Time API
  • Asset Details API

🔑 Key Features

  • Mindshare Data Fetching: Uses the Messari API to retrieve daily mindshare data for assets.
  • Anomaly Detection: Identifies significant spikes in mindshare scores using a z-score threshold (default: 2.0).
  • Visualization: Plots mindshare scores over time with anomalies highlighted in Google Colab.
  • Insights: Provides readable insights about trends, score ranges, rank ranges, and anomalies.
  • Extensible: Designed to work alongside KOL mindshare analysis (e.g., for Twitter handles) with potential for combined analysis.


📄 License

This project is licensed under the MIT License. See the LICENSE file for details.


Acknowledgments

  • Messari: For providing the API.
  • Google Colab: For enabling interactive visualization.
  • Mistral AI: For optional sentiment integration.
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
WindsurfThe new purpose-built IDE to harness magic
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Amap Maps高德地图官方 MCP Server
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
ChatWiseThe second fastest AI chatbot™
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
CursorThe AI Code Editor
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Playwright McpPlaywright MCP server
Tavily Mcp
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
DeepChatYour AI Partner on Desktop
Serper MCP ServerA Serper MCP Server
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.