YAPS MCP Server
An MCP (Model Context Protocol) server that wraps Kaito's YAPS API to provide tokenized attention scores for X/Twitter accounts. This server enables LLMs to query credibility and influence metrics for any X account, with built-in caching and rate limiting.
Features
🔍 Influencer Trust Score: Fetch YAPS scores for any X/Twitter account with caching
🔄 Comparison Tool: Compare the credibility of two influencers with natural language summaries
📊 Daily Leaderboard: Top-10 crypto influencers automatically refreshed daily
🚦 Rate Limiting: Graceful handling of YAPS API's 100 calls / 5 min limit
💾 Redis Caching: 10-minute TTL for scores, 24-hour TTL for leaderboards
Getting Started
Prerequisites
Node.js 18 or higher
Redis server
Installation
Clone the repository
Install dependencies
Create a
.envfile based on the following template:
Build the project
Start the server
For integration with LLM providers, use the stdio transport:
MCP Resources and Tools
Resources
yaps-score- YAPS score for a Twitter userSchema:
yaps-score://{username}
Tools
get_yaps_score- Get YAPS score and summary for a Twitter userInput:
{ username: string }Output: JSON object with score and natural language summary
compare_scores- Compare YAPS scores between two Twitter usersInput:
{ username_a: string, username_b: string }Output: JSON comparison with deltas and natural language verdict
leaderboard_today- Get today's top-10 YAPS leaderboardInput:
{}Output: Array of top 10 accounts by 24h YAPS score
Using with OpenAI GPT
Example of using the YAPS MCP server with OpenAI:
Performance and Availability
P95 tool latency < 300 ms (cache hit) / < 2 s (cache miss)
99% monthly availability with stateless containers
Prometheus metrics for monitoring calls and errors
API Rate Limits
The YAPS API is available as an open source API with the following limitations:
Default rate limit: 100 calls every 5 minutes
This MCP server implements caching and rate limiting to respect these constraints
Technical Details
Built with TypeScript and Node.js
Uses MCP SDK version 1.11.3
Express.js for HTTP handling
Redis for caching and rate limiting
License
MIT
This server cannot be installed