MCPet: A nostalgic virtual pet experience for the AI age! This Model Context Protocol (MCP) server lets you adopt, nurture, and play with your very own digital companion that evolves based on your care. Feed them, clean them, play games together, and watch them grow from a baby to an adult. Your pet's stats change over time even when you're away - just like the classic Tamagotchi toys, but powered by modern AI through the Model Context Protocol. Adopt your digital friend today!
This is a TypeScript-based MCP server that implements a virtual pet simulation system. It demonstrates core MCP concepts by providing tools for pet care and interaction.
create_pet
- Adopt a new pet with a custom name and typecheck_pet
- View your pet's current status and statsfeed_pet
- Feed your pet with different food options:
play_with_pet
- Play different games:
clean_pet
- Give your pet a bath to restore cleanlinessput_to_bed
- Let your pet sleep to restore energyInstall dependencies:
npm install
Build the server:
npm run build
For development with auto-rebuild:
npm run watch
To install MCPet for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @shreyaskarnik/mcpet --client claude
To use with Claude Desktop, add the server config:
On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"mcpet": {
"command": "node",
"args": ["/path/to/mcpet/build/index.js"],
"env": {
"PET_DATA_DIR": "/path/to/writable/directory"
}
}
}
}
Note: The PET_DATA_DIR
environment variable specifies where pet data will be stored. Make sure this is a directory with write permissions.
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector:
npx @modelcontextprotocol/inspector node /path/to/mcpet/build/index.js
The Inspector will provide an interface for testing your pet interactions directly.
Ask Claude questions like:
Seamless access to top MCP servers powering the future of AI integration.