SocialPulse AI
Инструменты аналитики и автоматизации социальных медиа на основе ИИ, созданные с помощью TensorFlow.js. Этот сервер предоставляет набор инструментов машинного обучения, включая анализ тональности, обнаружение токсичности, прогнозирование вовлечённости и кластеризацию контента, для анализа взаимодействий на нескольких платформах, таких как YouTube, Instagram и Twitter. Он работает локально для обеспечения конфиденциальности данных и обработки с низкой задержкой. Возможности: поддержка кросс-платформенности, локальное выполнение моделей ML, готовность к монетизации x402.
Документация
TensorFlow.js Social Media MCP Server
A comprehensive suite of machine learning tools for analyzing and automating interactions across multiple social media platforms, built on TensorFlow.js and powered by the Model Context Protocol (MCP).
This server performs ML-based analytics locally (e.g., sentiment analysis, toxicity detection, engagement prediction, content clustering) without relying on external cloud-based AI services, ensuring data privacy and low-latency processing.
Key Features
- Cross-Platform Support: Tools for YouTube, Instagram, TikTok, Twitter, Facebook, Discord, Twitch, Reddit, LinkedIn, Threads, Bluesky, Mastodon, GitHub, Spotify, and Pinterest.
- Local Machine Learning: Powered by TensorFlow.js (MobileNet, COCO-SSD, Universal Sentence Encoder, etc.).
- Monetization Ready: Integrated x402 protocol for charging per tool call via Solana (devnet/mainnet).
- Extensible: Easily add new tools via
lib/modules andtool-registry.js. - Ready for Agents: Full OpenAPI 3.0 specification for seamless integration with AI agents.
Setup Requirements
Prerequisites
- Node.js v18+
Configuration
Copy .env.example to .env and configure the following:
| Variable | Description | Default |
|---|---|---|
PAY_TO_ADDRESS | Solana wallet address to receive x402 payments. | REQUIRED |
FACILITATOR_URL | x402 facilitator URL. | https://x402.org/facilitator |
X402_PRICE_USD | Price per tool call in USD. | 0.005 |
X402_NETWORK | Payment network (devnet or mainnet). | devnet |
PUBLIC_ORIGIN | Public URL for the server (needed for discovery). | http://localhost:6350 |
Installation
npm install
Running the Server
Start the MCP Server
npm run mcp
Start all services (MCP, REST, Worker)
npm run start:all
Start the TUI
npm run tui
API Documentation
The server exposes an OpenAPI 3.0 specification at http://localhost:6350/openapi.json.
See readme.txt in the root for a summary of available endpoints.
Contributing
- Fork the repository.
- Create your feature branch.
- Commit your changes.
- Push to the branch.
- Open a Pull Request.
License
MIT