MCP Mood Quote Server
@computerscienceiscool
An MCP server that returns mood-based quotes
Overview
What is MCP Mood Quote Server?
MCP Mood Quote Server is a simple Model Context Protocol (MCP) server that returns an inspirational quote based on the user’s mood. It is designed for use with large language models (LLMs) such as Claude, and can also be tested locally using tools like curl.
How to use MCP Mood Quote Server?
Clone the repository, navigate to the project directory, and run go run main.go. Send a POST request to http://localhost:8080/messages/ with a JSON body containing "tool":"mcp-mood-quotes" and an input object with a "mood" field (e.g., "happy"). The server responds with a JSON object containing a matching quote.
Key features of MCP Mood Quote Server
- Returns an inspirational quote based on the user’s mood.
- Supports five moods: happy, sad, tired, excited, angry.
- Returns a default message when an unsupported mood is provided.
- Compatible with the Model Context Protocol (MCP) and LLMs like Claude.
- Can be registered with the Nanda Registry for broader usage.
- Simple to test locally with a single
curlcommand.
Use cases of MCP Mood Quote Server
- Integrating mood-based inspirational quotes into chat applications or assistant workflows.
- Providing context-aware responses in LLM-driven tools that interact with user emotions.
- Testing and learning how to build and serve an MCP-compatible endpoint.
- Adding a lightweight, fun feature to personal automation or journaling bots.
FAQ from MCP Mood Quote Server
What moods does MCP Mood Quote Server support?
The server supports five moods: happy, sad, tired, excited, and angry.
What happens if I send an unsupported mood?
The server returns a default message indicating that no quote is available for that mood.
How can I test MCP Mood Quote Server locally?
Clone the repository, run go run main.go, then send a POST request with curl as shown in the README (e.g., curl -X POST -H "Content-Type: application/json" -d '{"tool":"mcp-mood-quotes","input":{"mood":"happy"}}' http://localhost:8080/messages/).
Is MCP Mood Quote Server compatible with Claude?
Yes, the README explicitly states that it can work with large language models such as Claude.