CatMCP
A lightweight MCP server that serves a curated collection of cat jokes to LLM clients, supporting tools for random jokes by category, search, and resource access.
README
CatMCP
/\_/\
( o.o ) [ BETA ]
> ^ <
_ / \ _
( ) ( )
` ` ` `
\__/\_/
CatMCP is a lightweight, playful, and fully standard-compliant Model Context Protocol (MCP) server that serves a curated collection of hilarious cat jokes to LLM clients (like Claude Desktop, Cursor, and more). Whether you need tech puns, classic question-and-answers, silly scenarios, or workplace meow-ments, CatMCP has you covered!
๐ Features
- Purr-fect Joke Database: Hand-crafted collection of 24 cat jokes categorized by themes.
- Categorized Selections: Easily request jokes filtered by category (
tech,classic,puns,silly,work). - Flexible Searching: Full-text case-insensitive search across the entire joke database.
- Rich Resources:
jokes://all: Read the complete dataset in JSON format.jokes://categories: Read a summary of all categories and their joke counts.jokes://random: Fetch a dynamic random joke in raw text format.
- Creative Prompts: Integrate interactive prompt templates like
tell_cat_joketo turn LLMs into cat-loving stand-up comedians. - Robustly Tested: Built using
fastmcpwith comprehensive unit tests for high reliability.
๐ Quick Start
Prerequisites
- Python:
>=3.12 - uv (Recommended package manager): Install uv
Installation
Clone the repository and install dependencies using uv:
# Clone the repository
git clone https://github.com/Perseu/catmcp.git
cd catmcp
# Install dependencies and create a virtual environment
uv sync
Running the Server
You can start the MCP server using standard IO (stdio) transport:
uv run python main.py
๐ ๏ธ MCP Capabilities
1. Tools
get_random_joke(category: Optional[str]): Retrieve a random cat joke. You can filter by category:tech,classic,puns,silly, orwork.list_categories(): Get a sorted list of all available joke categories.search_jokes(keyword: str): Case-insensitive text search across joke setups, punchlines, and categories.
2. Resources
jokes://all: Serves the entire joke database as a static JSON resource.jokes://categories: Serves the category distribution and count summary as a JSON resource.jokes://random: Serves a dynamic random cat joke in plain text format.
3. Prompts
tell_cat_joke(category: Optional[str], tone: Optional[str]): Generates a standard instruction set directing the AI client to perform the joke under a specified persona (e.g.CatComedian) and tone (e.g.sarcastic,enthusiastic,dry).
โ๏ธ Host Configuration
To integrate CatMCP with your favorite LLM client, add the server to your configuration file.
Claude Desktop
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"catmcp": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/catmcp",
"run",
"python",
"main.py"
]
}
}
}
Cursor
- Go to Settings > Features > MCP.
- Click + Add New MCP Server.
- Fill in the fields:
- Name:
CatMCP - Type:
command - Command:
uv --directory "/absolute/path/to/catmcp" run python main.py
- Name:
๐งช Testing
CatMCP uses pytest for testing. You can run all 11 unit tests to verify server tools, resources, and prompts:
uv run pytest
๐ License
This project is licensed under the MIT License. See the LICENSE file for details.
Created with ๐พ by Perseu.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.