MCP Mood Quote Server

by computerscienceiscool

168 downloads
Not rated
GitHub

About

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.

Details

Author
computerscienceiscool
Downloads
168
Categories
Other

- 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 curl command.

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.

MCP Mood Quote Server

This is a simple Model Context Protocol (MCP) server that returns an inspirational quote based on the user’s mood. It can be used with large language models (LLMs) such as Claude, or tested locally using tools like curl.

What It Does

Send a POST request to the server with a mood (e.g., "happy", "sad", "tired") and it returns a quote associated with that emotion.

Installation

1. Clone this repository:
git clone https://github.com/computerscienceiscool/mcp-mood-quotes.git

2. Navigate to the project directory:
cd mcp-mood-quotes

3. Run the server:
go run main.go

Usage

Test locally using curl:

curl -X POST -H "Content-Type: application/json" \
-d '{"tool":"mcp-mood-quotes","input":{"mood":"happy"}}' \
http://localhost:8080/messages/

Expected output:

data: {"output":{"quote":"Happiness is not something ready made. It comes from your own actions. — Dalai Lama"}}

Supported Moods

- happy
- sad
- tired
- excited
- angry

Other moods will return a default message indicating no quote is available.

Integration with Nanda and Claude

This server is compatible with the Model Context Protocol and may be registered with the Nanda Registry for broader usage.

Project Structure

mcp-mood-quotes/
├── main.go
└── README.md

Author

Created by @computerscienceiscool

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.