crypto-sentiment-mcp
加密情绪 MCP 服务器
MCP 服务器向 AI 代理提供加密货币情绪分析,利用 Santiment 的聚合社交媒体和新闻数据来跟踪市场情绪并检测新兴趋势。
特征
情绪分析:检索特定加密货币的情绪平衡(正面与负面)。
社交量跟踪:监控社交媒体的总体提及量并检测显著的变化(峰值或下降)。
社会主导性:衡量资产在加密媒体中所占讨论份额。
热门词汇:找出加密货币讨论中最流行的词汇。
Related MCP server: etf-flow-mcp
工具
工具名称 | 描述 | 参数 |
| 获取指定时期内资产的平均情绪平衡。 |
|
| 获取某项资产在社交媒体上被提及的总次数。 |
|
| 与之前的平均值相比,检测社交量的明显峰值或下降。 |
|
| 检索加密讨论中最热门的词汇,按一段时间内的得分进行排名。 |
|
| 衡量某种资产在加密媒体讨论中所占的百分比。 |
|
先决条件
Python :3.10 或更高版本
Santiment API 密钥:从Santiment获取免费或付费密钥。
安装
克隆存储库:
git clone https://github.com/kukapay/crypto-sentiment-mcp.git cd crypto-sentiment-mcp配置客户端:
{ "mcpServers": { "crypto-sentiment-mcp": { "command": "uv", "args": ["--directory", "path/to/crypto-sentiment-mcp", "run", "main.py"], "env": { "SANTIMENT_API_KEY": "your_api_key_here" } } } }
示例
以下是通过 MCP 兼容客户端与服务器交互时自然语言输入及其相应输出的示例:
输入:“过去一周比特币的情绪平衡是多少?”
输出:“比特币过去 7 天的情绪平衡为 12.5。”
输入:“过去 5 天,社交媒体上提到以太坊多少次?”
输出:“过去 5 天以太坊的社交量被提及 8,432 次。”
输入:“告诉我最近比特币的社交量是否有很大的变化,阈值为30%。”
输出:“比特币的社交量在过去 24 小时内飙升了 75.0%,从平均 1,000 飙升至 1,750。”
输入:“过去三天加密货币领域最热门的三个词是什么?”
输出:“过去 3 天最热门的 3 个词:‘减半’、‘牛市’、‘defi’。”
输入:“本周以太坊在社交媒体讨论中占据主导地位吗?”
输出:“过去 7 天以太坊的社会主导率为 18.7%。”
执照
该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅LICENSE文件。
Available Tools
5 toolsalert_social_shiftA
Detect significant shifts (spikes or drops) in social volume (social_volume_total) for a given asset.
Parameters:
asset (str): The cryptocurrency slug (e.g., "bitcoin", "ethereum"). Required.
threshold (float): Minimum percentage change (absolute value) to trigger an alert, defaults to 50.0 (i.e., 50%).
days (int): Number of days to analyze for baseline volume, defaults to 7.
Usage:
Call this tool to check if the latest social volume has significantly spiked or dropped compared to the previous average.
Returns:
A string indicating if a shift occurred (e.g., "Bitcoin's social volume spiked by 75.0% in the last 24 hours" or "Bitcoin's social volume dropped by 60.0% in the last 24 hours").
Inputs: asset (required), threshold, days.
get_sentiment_balanceB
Retrieve the sentiment balance (sentiment_balance_total) for a given asset.
Parameters:
asset (str): The cryptocurrency slug (e.g., "bitcoin", "ethereum"). Required.
days (int): Number of days to calculate the average sentiment balance, defaults to 7.
Usage:
Use this tool to get the average sentiment balance (positive minus negative sentiment) over a period.
Returns:
A string with the average sentiment balance (e.g., "Bitcoin's sentiment balance over the past 7 days is 12.5").
Inputs: asset (required), days.
get_social_dominanceA
Retrieve the social dominance (social_dominance_total) for a given asset. Social Dominance shows the share of the discussions in crypto media that is referring to a particular asset or phrase.
Parameters:
asset (str): The cryptocurrency slug (e.g., "bitcoin", "ethereum"). Required.
days (int): Number of days to calculate average social dominance, defaults to 7.
Usage:
Call this tool to get the percentage of social media discussion dominated by the asset.
Returns:
A string with the average social dominance (e.g., "Bitcoin's social dominance over the past 7 days is 25.3%").
Inputs: asset (required), days.
get_social_volumeA
Retrieve the total social volume (social_volume_total) for a given asset. It calculates the total number of social data text documents that contain the given search term at least once. Examples of documents are telegram messages and reddit posts.
Parameters:
asset (str): The cryptocurrency slug (e.g., "bitcoin", "ethereum"). Required.
days (int): Number of days to sum the social volume, defaults to 7.
Usage:
Call this tool to get the total number of social media mentions for an asset over a period.
Returns:
A string with the total social volume (e.g., "Bitcoin's social volume over the past 7 days is 15,000 mentions").
Inputs: asset (required), days.
get_trending_wordsA
Retrieve the top trending words in the crypto space over a specified period, aggregated and ranked by score.
Parameters:
days (int): Number of days to analyze trending words, defaults to 7.
top_n (int): Number of top trending words to return, defaults to 5.
Usage:
Call this tool to get a list of the most popular words trending in cryptocurrency discussions, ranked across the entire period.
Returns:
A string listing the top trending words (e.g., "Top 5 trending words over the past 7 days: 'halving', 'bullrun', 'defi', 'nft', 'pump'").
Inputs: days, top_n.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a clearly distinct purpose with no overlap. alert_social_shift detects volume changes, get_sentiment_balance measures sentiment polarity, get_social_dominance calculates discussion share, get_social_volume counts mentions, and get_trending_words identifies popular terms. The descriptions reinforce these unique functions, eliminating any confusion.
The naming follows a consistent verb_noun pattern with four tools using 'get_' and one using 'alert_'. While 'alert_' deviates slightly, it still maintains readability and logical grouping. All names are snake_case and descriptive, making the set predictable and easy to navigate.
With 5 tools, this server is well-scoped for crypto sentiment analysis. Each tool serves a specific, non-redundant function within the domain, covering key metrics like volume, sentiment, dominance, and trends. The count is neither too sparse nor bloated, fitting the purpose efficiently.
The toolset covers core aspects of crypto sentiment analysis: volume tracking, sentiment measurement, dominance calculation, and trend identification. A minor gap exists in lacking tools for historical data comparison or predictive analytics, but agents can work around this by combining existing tools for basic workflows.
Maintenance
Related MCP Connectors
Trading MCP server for AI agents, with live market data, account reads and controlled execution.
Unlock the power of real-time cryptocurrency data with our Crypto Price Insights MCP server.
An MCP server that provides agents access to the KeldynAI platform
MCP server with quote and live cryptocurrency price tools, local and cloud-deployed transports.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that provides real-time cryptocurrency news sourced from NewsData for AI agents.15MIT
- AlicenseAqualityDmaintenanceAn MCP server that delivers crypto ETF flow data to power AI agents' decision-making.19MIT
- AlicenseBqualityDmaintenanceAn MCP server that provides cryptocurrency project data to AI agents11MIT
- AlicenseAqualityDmaintenanceAn MCP server that tracks real-time data for major crypto-related stocks to help AI agents analyze blockchain investment opportunities.33MIT