Skip to main content
Glama
t3ase

Mood-Based Music & Quote MCP Server

by t3ase
moodClassifier.ts696 B
const keywords: Record<string, string[]> = { stressed: ["stressed", "overwhelmed", "anxious", "tired", "burned out"], bored: ["bored", "meh", "nothing to do"], excited: ["excited", "pumped", "hype", "can't wait", "happy"], sad: ["sad", "down", "unhappy", "blue"], calm: ["calm", "relaxed", "peaceful", "chill"], }; export type Mood = | "stressed" | "bored" | "excited" | "sad" | "calm" | "unknown"; export const classifyMood = (text: string): Mood => { const normalized = text.toLowerCase(); for (const [mood, terms] of Object.entries(keywords)) { if (terms.some((term) => normalized.includes(term))) { return mood as Mood; } } return "unknown"; };

Latest Blog Posts

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/t3ase/MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server