- Explore MCP Servers
- kol-sentitment-mcp
Kol Sentitment Mcp
What is Kol Sentitment Mcp
kol-sentitment-mcp is a Model Context Protocol (MCP) implementation designed for Key Opinion Leader (KOL) sentiment analysis using the Masa AI API. It provides a standardized interface for AI assistants to analyze KOLs on social media platforms.
Use cases
Use cases include monitoring KOL sentiment for brand partnerships, analyzing public opinion on social media campaigns, identifying trending topics among KOLs, and generating insights for market research.
How to use
To use kol-sentitment-mcp, clone the repository, set up a Python virtual environment, install the required dependencies, configure the .env file with your Masa API key, and start the server using the command ‘python run.py’.
Key features
Key features include searching for KOL content across platforms, analyzing sentiment of KOL posts, extracting trending topics, generating comprehensive sentiment analysis, identifying trends across multiple KOLs, supporting both live and historical data, secure API access, and detailed logging.
Where to use
kol-sentitment-mcp can be used in marketing, social media analysis, public relations, and any field that requires understanding public sentiment towards Key Opinion Leaders.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Kol Sentitment Mcp
kol-sentitment-mcp is a Model Context Protocol (MCP) implementation designed for Key Opinion Leader (KOL) sentiment analysis using the Masa AI API. It provides a standardized interface for AI assistants to analyze KOLs on social media platforms.
Use cases
Use cases include monitoring KOL sentiment for brand partnerships, analyzing public opinion on social media campaigns, identifying trending topics among KOLs, and generating insights for market research.
How to use
To use kol-sentitment-mcp, clone the repository, set up a Python virtual environment, install the required dependencies, configure the .env file with your Masa API key, and start the server using the command ‘python run.py’.
Key features
Key features include searching for KOL content across platforms, analyzing sentiment of KOL posts, extracting trending topics, generating comprehensive sentiment analysis, identifying trends across multiple KOLs, supporting both live and historical data, secure API access, and detailed logging.
Where to use
kol-sentitment-mcp can be used in marketing, social media analysis, public relations, and any field that requires understanding public sentiment towards Key Opinion Leaders.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
KOL Sentiment MCP
A Model Context Protocol (MCP) implementation for Key Opinion Leader sentiment analysis using the Masa AI API.
Overview
KOL Sentiment MCP provides a standardized interface for AI assistants to analyze Key Opinion Leaders (KOLs) on social media platforms. It leverages the Masa AI API for powerful semantic search and data retrieval, allowing for sentiment analysis, topic extraction, and trend identification without direct API access.
Features
- Search for KOL content across platforms
- Analyze sentiment of KOL posts
- Extract trending topics from KOL content
- Generate comprehensive KOL sentiment analysis
- Identify trends across multiple KOLs
- Support for both live and indexed (historical) data
- Secure and rate-limited API access
- Detailed logging and error handling
Installation
Prerequisites
- Python 3.9+
- pip
Setup
-
Clone the repository:
git clone https://github.com/olaxbt/kol-sentiment-mcp.git cd kol-sentiment-mcp -
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate -
Install dependencies:
pip install -r requirements.txt -
Create a
.envfile based on.env.example:cp .env.example .env -
Edit the
.envfile to add your Masa API key and other settings.
Usage
Starting the Server
python run.py
The server will start on the port specified in your .env file (default: 5000).
API Endpoints
GET /- Welcome page with service informationGET /health- Health check endpointGET /api/mcp/ping- MCP service health checkPOST /api/mcp/query- Main MCP query endpoint
MCP Actions
The KOL Sentiment MCP supports the following actions:
kol.search- Search for KOL contentkol.sentiment- Analyze sentiment of KOL contentkol.topics- Extract topics from KOL contentkol.insights- Get comprehensive insights about a KOLkol.trends- Analyze trends across multiple KOLs
Example Queries
Search for KOL Content
{
"id": "request123",
"action": "kol.search",
"params": {
"query": "cryptocurrency",
"kol_username": "elonmusk",
"search_type": "indexed",
"max_results": 10
}
}
Analyze KOL Sentiment
{
"id": "request123",
"action": "kol.sentiment",
"params": {
"query": "AI",
"kol_username": "elonmusk",
"search_type": "indexed",
"max_results": 20
}
}
Get Comprehensive KOL Insights
{
"id": "request123",
"action": "kol.insights",
"params": {
"username": "elonmusk",
"query": "",
"search_type": "indexed",
"max_results": 20
}
}
Analyze Trends Across Multiple KOLs
{
"id": "request123",
"action": "kol.trends",
"params": {
"usernames": [
"elonmusk",
"VitalikButerin",
"SBF_FTX"
],
"query": "blockchain",
"search_type": "indexed",
"max_results_per_kol": 10
}
}
Development
Project Structure
kol-sentiment-mcp/ ├── app/ │ ├── handlers/ # Action handlers │ ├── routes/ # API routes │ ├── services/ # Core services │ ├── templates/ # HTML templates │ └── utils/ # Utilities ├── logs/ # Log files ├── tests/ # Test cases ├── .env # Environment variables ├── .env.example # Example environment file ├── requirements.txt # Dependencies ├── run.py # Main entry point └── README.md # Documentation
License
MIT
Acknowledgements
- Masa AI API for X/Twitter data retrieval
- Model Context Protocol for standardized AI interaction
Dev Tools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.










