About
YAPS Influence Score Server wraps the Kaito YAPS API to provide tokenized attention scores and credibility metrics for X/Twitter accounts. It enables LLMs to query real-time social media influence data, assess account trustworthiness, and identify key opinion leaders in the crypto space. Key features: - Query YAPS credibility scores for any X/Twitter account with 10-minute Redis caching - Compare two influencers side-by-side with score deltas and natural language summaries - Access daily top-10 crypto influencer leaderboards with 24-hour cache refresh cycles - Graceful handling of the YAPS API's 100 calls per 5-minute rate limit
README
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
Getting Started
Prerequisites
Installation
1. Clone the repository
git clone https://github.com/yourusername/yap-mcp.git
cd yap-mcp
2. Install dependencies
npm install
3. Create a .env file based on the following template:
# YAPS API (no API key needed - using public API with rate limits)
YAPS_API_ENDPOINT=https://api.kaito.ai/api/v1/yapsRedis cache
REDIS_URI=redis://localhost:6379Server
PORT=3000
NODE_ENV=developmentYAPS cache TTL in seconds
YAPS_CACHE_TTL=600 # 10 minutesLeaderboard settings
LEADERBOARD_CACHE_TTL=86400 # 24 hours
4. Build the project
npm run build
5. Start the server
npm start
For integration with LLM providers, use the stdio transport:
npm start -- --stdio
MCP Resources and Tools
Resources
yaps-score - YAPS score for a Twitter useryaps-score://{username}Tools
get_yaps_score - Get YAPS score and summary for a Twitter user{ username: string }
- Output: JSON object with score and natural language summarycompare_scores - Compare YAPS scores between two Twitter users{ username_a: string, username_b: string }
- Output: JSON comparison with deltas and natural language verdictleaderboard_today - Get today's top-10 YAPS leaderboard{}
- Output: Array of top 10 accounts by 24h YAPS scoreUsing with OpenAI GPT
Example of using the YAPS MCP server with OpenAI:
import OpenAI from 'openai';
import { spawn } from 'child_process';const openai = new OpenAI({ apiKey: 'your-api-key' });
// Start the MCP server as a child process
const mcpProcess = spawn('node', ['dist/index.js', '--stdio'], {
stdio: ['pipe', 'pipe', process.stderr]
});
// Example function to call GPT with tools
async function askGptWithTools(question) {
try {
const response = await openai.chat.completions.create({
model: 'gpt-4-turbo',
messages: [{ role: 'user', content: question }],
tools: [
{
type: 'function',
function: {
name: 'get_yaps_score',
description: 'Get YAPS tokenized attention score for an X/Twitter account',
parameters: {
type: 'object',
properties: {
username: {
type: 'string',
description: 'Twitter username (with or without @)'
}
},
required: ['username']
}
}
},
// Additional tools would be defined here
],
tool_choice: 'auto'
});
console.log(response.choices[0].message);
// Process tool calls if any
if (response.choices[0].message.tool_calls) {
// Implementation for handling tool calls would go here
}
return response;
} catch (error) {
console.error('Error calling GPT:', error);
throw error;
}
}
// Example usage
askGptWithTools('What is the YAPS score for @VitalikButerin?');
Performance and Availability
API Rate Limits
The YAPS API is available as an open source API with the following limitations:
Technical Details
License
MIT
Related MCP Servers
AI Research Assistant
hamid-vakilzadeh
AI Research Assistant provides comprehensive access to millions of academic papers through the Semantic Scholar and arXiv databases. This MCP server enables AI coding assistants to perform intelligent literature searches, citation network analysis, and paper content extraction without requiring an API key. Key features include: - Advanced paper search with multi-filter support by year ranges, citation thresholds, field of study, and publication type - Title matching with confidence scoring for finding specific papers - Batch operations supporting up to 500 papers per request - Citation analysis and network exploration for understanding research relationships - Full-text PDF extraction from arXiv and Wiley open-access content (Wiley TDM token required for institutional access) - Rate limits of 100 requests per 5 minutes with options to request higher limits through Semantic Scholar
Linkup
LinkupPlatform
Linkup is a real-time web search and content extraction service that enables AI assistants to search the web and retrieve information from trusted sources. It provides source-backed answers with citations, making it ideal for fact-checking, news gathering, and research tasks. Key features of Linkup: - Real-time web search using natural language queries to find current information, news, and data - Page fetching to extract and read content from any webpage URL - Search depth modes: Standard for direct-answer queries and Deep for complex research across multiple sources - Source-backed results with citations and context from relevant, trustworthy websites - JavaScript rendering support for accessing dynamic content on JavaScript-heavy pages
Math-MCP
EthanHenrickson
Math-MCP is a computation server that enables Large Language Models (LLMs) to perform accurate numerical calculations through the Model Context Protocol. It provides precise mathematical operations via a simple API to overcome LLM limitations in arithmetic and statistical reasoning. Key features of Math-MCP: - Basic arithmetic operations: addition, subtraction, multiplication, division, modulo, and bulk summation - Statistical analysis functions: mean, median, mode, minimum, and maximum calculations - Rounding utilities: floor, ceiling, and nearest integer rounding - Trigonometric functions: sine, cosine, tangent, and their inverses with degrees and radians conversion support