CulturalTruth MCP
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@CulturalTruth MCPAnalyze this job posting for gender and age bias: 'Seeking a rockstar developer who is a digital native.'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
๐ก๏ธ CulturalTruth MCP
Advanced Cultural Intelligence & Bias Detection MCP Server - A sophisticated Model Context Protocol implementation combining Qloo's cultural API with comprehensive bias detection and compliance analysis.
๐ What is CulturalTruth MCP?
CulturalTruth is a production-ready Model Context Protocol server that provides:
๐ก๏ธ Advanced Bias Detection - 50+ regex patterns across 5 bias categories with confidence scoring
๐ญ Cultural Intelligence - Full integration with Qloo's API for cultural entity analysis
๐ Compliance Scoring - EU AI Act, GDPR, Section 508 risk assessment and reporting
๐ Environment Modes - Hackathon (demo-friendly) and Production (strict validation) configurations
โก Production Features - Rate limiting, circuit breakers, LRU caching, and comprehensive audit trails
๐ Analytics & Reporting - Compliance reports, trend analysis, and batch processing
Related MCP server: Enterprise Financial Compliance Audit Framework
๐ Key Features
๐ก๏ธ Comprehensive Bias Detection
Detects bias across 5 major categories with 50+ patterns:
Gender-Exclusive Language: "guys", "rockstar developer", "brotherhood"
Age Discrimination: "young professional", "digital native", "overqualified"
Racial/Geographic Proxies: specific zip codes, "ivy league", "urban"
Cultural Assumptions: "native speaker", "american values", "easy to pronounce name"
Accessibility Barriers: "perfect vision", "fast-paced environment", "must lift"
Each pattern includes severity levels, regulatory risk assessment, and suggested alternatives.
๐ญ Qloo Cultural Intelligence
Full integration with Qloo's cultural database:
Entity Search & Validation - Search 500M+ cultural entities across 10 official entity types
Demographic Analysis - Age/gender-based cultural preferences
Trending Content - Real-time cultural relevance data
Geospatial Insights - Location-based cultural recommendations
Audience Comparison - Compare cultural affinity between entity groups
๐ Regulatory Compliance Engine
EU AI Act compliance scoring with bias risk assessment
Section 508/ADA accessibility compliance validation
GDPR data protection and demographic proxy detection
Audit Trails - Comprehensive logging for compliance documentation
Risk Level Classification - Automatic critical/high/medium/low risk scoring
โ๏ธ Production-Ready Architecture
graph TB
A[Claude Desktop] --> B[CulturalTruth MCP]
B --> C[Bias Detection Engine]
B --> D[Qloo API Client]
B --> E[Cache Layer]
B --> F[Audit System]
C --> G[50+ Regex Patterns]
C --> H[Confidence Scoring]
C --> I[Compliance Calculator]
D --> J[Entity Search]
D --> K[Demographic Analysis]
D --> L[Trending Data]
E --> M[LRU Cache]
E --> N[Rate Limiter]
E --> O[Circuit Breaker]
F --> P[Audit Trails]
F --> Q[Compliance Reports]
F --> R[Risk Assessment]๐โโ๏ธ Quick Start
Prerequisites
Node.js 18+
Qloo API Key - Get one at qloo.com/developers
Claude Desktop or other MCP-compatible client
Installation
# Clone the repository
git clone https://github.com/jacksonkasi1/CulturalTruth-MCP.git
cd CulturalTruth-MCP
# Install dependencies
npm install
# Copy environment template
cp .env.example .env
# Add your Qloo API key to .env
echo "QLOO_API_KEY=your_actual_api_key_here" >> .envBuild and Run
# Build the TypeScript code
npm run build
# Start the MCP server
npm startClaude Desktop Integration
Add to your Claude Desktop config:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"cultural-truth": {
"command": "node",
"args": ["path/to/CulturalTruth-MCP/dist/index.js"],
"env": {
"QLOO_API_KEY": "your_actual_api_key_here"
}
}
}
}๐ ๏ธ Available Tools
๐ฏ Supported Entity Types
CulturalTruth MCP supports all 10 official Qloo entity types per the official documentation:
urn:entity:movie- Feature-length films and cinematic worksurn:entity:tv_show- Television content, series, reality showsurn:entity:artist- Musicians, visual artists, performersurn:entity:book- Written works, novels, non-fictionurn:entity:place- Physical locations and venuesurn:entity:destination- Geographic destinations, cities, neighborhoodsurn:entity:podcast- Episodic audio series and showsurn:entity:video_game- Interactive digital gamesurn:entity:brand- Commercial brands, retail chains, productsurn:entity:person- Individual people (includes actors, authors, directors)
Note: Previously deprecated entity types (Actor, Author, Director) are now consolidated under the Person entity type as recommended by Qloo.
Core Analysis Tools
analyze_content_bias
Comprehensive bias analysis with compliance scoring
// Analyzes text for bias patterns and cultural entities
// Returns: bias patterns, compliance scores, cultural entities, audit trailget_compliance_report
Generate detailed compliance reports with trends and recommendations
// Creates compliance reports for specified time periods
// Includes: trend analysis, top issues, regulatory recommendationsQloo Cultural Intelligence Tools
qloo_basic_insights
Get cultural insights using Qloo's recommendation engine
// Search by entity type, popularity, release year, content rating
// Returns: culturally relevant entities with metadataqloo_demographic_insights
Demographic-aware cultural analysis
// Filter by age group, gender, audience segments
// Returns: demographic-specific cultural preferencesqloo_entity_search
Search and validate entities in Qloo's database
// Search 500M+ entities by name, type, and filters
// Returns: validated entities with cultural dataqloo_trending_entities
Get currently trending cultural content
// Real-time trending data by category
// Returns: trending entities with popularity metricsqloo_geospatial_insights
Location-based cultural recommendations
// Search by location, radius, price level, rating
// Returns: geographically relevant cultural venuesAdvanced Analytics Tools
qloo_audience_compare
Compare cultural affinity between entity groups
// Analyze popularity delta, cultural overlap, affinity scores
// Returns: detailed comparison with strategic recommendationsbatch_cultural_audit
Process multiple content pieces simultaneously
// Batch analysis up to 20 items with rate limiting
// Returns: aggregated results with summary statisticsget_cultural_trends
Trending analysis with demographic filters
// Trending content by category, timeframe, demographics
// Returns: culturally relevant trending entitiesSystem Management Tools
configure_environment
Switch between Hackathon and Production modes
// Configure bias detection sensitivity, feature toggles
// Hackathon: Demo-friendly, lenient thresholds
// Production: Strict validation, full complianceget_system_status
System health and performance metrics
// API calls, cache hit rates, circuit breaker status
// Memory usage, audit trail counts, compliance statsadd_realtime_signal
Add real-time user interaction signals
// Track user interactions (view, like, share, purchase)
// Feeds into cultural intelligence algorithmsโ๏ธ Configuration
Environment Variables
# Required
QLOO_API_KEY=your_qloo_api_key_here
# Performance Tuning
RATE_LIMIT_PER_MINUTE=50
MAX_CACHE_SIZE=1000
CACHE_TTL_MS=300000
CIRCUIT_BREAKER_THRESHOLD=5
CIRCUIT_BREAKER_TIMEOUT=30000
# Security
MAX_CONTENT_LENGTH=10000
ENABLE_DETAILED_LOGGING=true
# Audit & Compliance
MAX_AUDIT_TRAILS=1000
AUDIT_RETENTION_DAYS=30
# Environment Mode
CULTURAL_TRUTH_MODE=Hackathon # or ProductionEnvironment Modes
๐ฏ Hackathon Mode (Default)
Bias Detection: Lenient thresholds, fewer patterns active
Compliance Scoring: Higher tolerance for issues
Features: Core functionality, optimized for demos
Performance: Faster response, relaxed validation
๐ญ Production Mode
Bias Detection: Strict validation, all 50+ patterns active
Compliance Scoring: Full regulatory assessment
Features: All advanced features enabled
Performance: Maximum accuracy, comprehensive auditing
Switch modes dynamically:
// Use the configure_environment tool in Claude
configure_environment({ mode: "Production", enableFullPotential: true })๐ Performance & Architecture
Performance Characteristics
Response Time: < 400ms average (with caching)
Throughput: 1000+ requests/hour per instance
Bias Detection: 50+ patterns with confidence scoring
Cache Hit Rate: 85%+ for entity lookups
API Integration: Circuit breaker protected
Security Features
Input Sanitization: HTML/script tag removal, length limits
API Protection: Rate limiting, circuit breakers, timeout handling
Data Privacy: PII filtering, secure audit trails
Environment Isolation: Configurable sensitivity levels
Reliability
Circuit Breaker: Automatic failover on API issues
Rate Limiting: Token bucket algorithm prevents abuse
LRU Caching: Memory-efficient entity caching
Error Recovery: Graceful degradation with detailed logging
๐งช Development
Running in Development
# Install dependencies
npm install
# Run with hot reload
npm run dev
# Run tests
npm test
# Type checking
npm run type-check
# Lint code
npm run lintProject Structure
src/
โโโ index.ts # Main entry point
โโโ mcp/
โ โโโ server.ts # MCP server implementation
โโโ bias-detector.ts # Bias pattern detection engine
โโโ qloo-client.ts # Enhanced Qloo API client
โโโ types/
โ โโโ index.ts # TypeScript definitions
โโโ config/
โ โโโ environment.ts # Environment configurations
โโโ utils/
โโโ circuit-breaker.ts # Fault tolerance
โโโ lru-cache.ts # Memory caching
โโโ rate-limiter.ts # API rate limitingAdding Custom Bias Patterns
Extend the bias detection by editing src/bias-detector.ts:
private static readonly BIAS_PATTERNS = {
// Add your custom pattern
custom_bias: {
type: 'cultural_insensitive',
pattern: '\\b(your|custom|patterns)\\b',
severity: 'medium',
suggestions: ['alternative', 'suggestions'],
regulation_risk: ['EU_AI_ACT'],
detectionLevel: ['strict', 'moderate']
}
// ... existing patterns
};Testing
# Run all tests
npm test
# Run with coverage
npm run test:coverage
# Test specific functionality
npm test -- --grep "bias detection"Example test:
describe('Enhanced Bias Detection', () => {
it('should detect gender-exclusive language with confidence', () => {
const text = 'Looking for guys to join our rockstar development team';
const patterns = EnhancedBiasDetector.detectBiasPatterns(text);
expect(patterns).toHaveLength(2);
expect(patterns[0].type).toBe('gender_exclusive');
expect(patterns[0].confidence).toBeGreaterThan(0.7);
expect(patterns[0].regulation_risk).toContain('EU_AI_ACT');
});
});๐ Usage Examples
Basic Bias Analysis
// Analyze content for bias and get compliance score
const result = await analyzeContentBias({
content: "Looking for young guys from top universities to join our fast-paced startup",
user_id: "analyst_001"
});
// Result includes:
// - 4 bias patterns detected (age, gender, education, accessibility)
// - Compliance score: 23/100 (CRITICAL)
// - Regulatory risks: EU_AI_ACT, ADEA, EEOC
// - Suggested improvements for each issueCultural Entity Analysis
// Search for movie entities with demographic filtering
const movieInsights = await qlooBasicInsights({
entity_type: "urn:entity:movie",
popularity_min: 0.8,
release_year_min: 2020,
limit: 10
});
// Search for trending podcasts for young adults
const podcastInsights = await qlooBasicInsights({
entity_type: "urn:entity:podcast",
popularity_min: 0.7,
limit: 5
});
// Find popular destinations for cultural events
const destinationInsights = await qlooBasicInsights({
entity_type: "urn:entity:destination",
popularity_min: 0.6,
limit: 8
});
// Search for influential artists and creators
const artistInsights = await qlooBasicInsights({
entity_type: "urn:entity:person",
popularity_min: 0.8,
limit: 10
});
// Returns culturally relevant entities with popularity metricsCompliance Reporting
// Generate 30-day compliance report
const report = await getComplianceReport({
days_back: 30,
format: "executive"
});
// Includes trend analysis, top bias issues, recommendations๐ Environment Switching
The system supports dynamic environment switching:
// Switch to Production mode for strict validation
await configureEnvironment({
mode: "Production",
biasDetectionLevel: "strict",
enabledFeatures: {
demographicAnalysis: true,
culturalTrends: true,
geospatialInsights: true,
batchProcessing: true,
realtimeSignals: true
}
});
// Switch to Hackathon mode for demos
await configureEnvironment({
mode: "Hackathon",
biasDetectionLevel: "lenient"
});๐ฏ Use Cases
Content Moderation
Job Postings: Detect discriminatory language before publication
Marketing Content: Ensure inclusive messaging across demographics
Product Descriptions: Validate accessibility-friendly language
Cultural Intelligence
Content Curation: Find culturally relevant movies, TV shows, books, and podcasts for specific audiences
Market Research: Understand cultural preferences across all 10 entity types by demographics
Trend Analysis: Track cultural movements and emerging preferences across destinations, artists, and brands
Event Planning: Discover popular venues, destinations, and cultural personalities for events
Influencer Marketing: Identify trending artists, creators, and cultural figures (person entities)
Travel & Tourism: Find popular destinations and cultural places for targeted recommendations
Compliance & Risk Management
Regulatory Compliance: Meet EU AI Act, GDPR, ADA requirements
Audit Documentation: Comprehensive trails for compliance reviews
Risk Assessment: Proactive identification of bias risks
๐ค Contributing
We welcome contributions! Here's how to get started:
Fork the repository
Create a feature branch:
git checkout -b feature/amazing-featureAdd tests for new bias patterns or functionality
Ensure all tests pass:
npm testUpdate documentation as needed
Submit a pull request
Contribution Ideas
New bias detection patterns for specific industries
Additional cultural intelligence features
Performance optimizations
Integration with other cultural APIs
Enhanced reporting capabilities
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Acknowledgments
Qloo - Cultural intelligence API and data
Anthropic - Model Context Protocol framework
MCP Community - Examples, best practices, and inspiration
๐ Support
GitHub Issues: Report bugs and request features
Documentation: Comprehensive API docs and examples
Community: Join discussions about responsible AI development
Built for responsible AI development and cultural intelligence.
CulturalTruth demonstrates how sophisticated bias detection and cultural intelligence can be integrated into AI workflows through the Model Context Protocol. Perfect for developers building inclusive, culturally-aware AI applications.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jacksonkasi1/CulturalTruth-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server