Cover image
Try Now
2025-03-20

这是基于打字稿的模型上下文协议(MCP)服务器,可实现虚拟PET模拟系统。它通过提供宠物护理和互动的工具来展示MCP概念。

3 years

Works with Finder

1

Github Watches

1

Github Forks

6

Github Stars

MCPet

MCPet

smithery badge

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.

Features

Virtual Pet Types

  • Choose from four pet types:
    • Cat - Slightly moody but lovable
    • Dog - Energetic and always happy to see you
    • Dragon - Unique and fiery personality
    • Alien - Mysterious and curious

Pet Lifecycle

  • Watch your pet evolve through four stages:
    • Baby - Small and vulnerable
    • Child - Growing and playful
    • Teen - Energetic and developing
    • Adult - Fully grown and wise

Stats Management

  • Care for your pet by managing five key stats:
    • Hunger - Keep your pet well-fed
    • Happiness - Play with your pet to keep them happy
    • Health - Overall wellbeing affected by other stats
    • Energy - Depletes with activity, replenishes with rest
    • Cleanliness - Regular baths keep your pet fresh

Tools

  • create_pet - Adopt a new pet with a custom name and type
  • check_pet - View your pet's current status and stats
  • feed_pet - Feed your pet with different food options:
    • Snack - Small hunger boost
    • Meal - Balanced nutrition
    • Feast - Maximum feeding (but can be unhealthy)
  • play_with_pet - Play different games:
    • Ball - Light exercise
    • Chase - High energy fun
    • Puzzle - Mental stimulation
  • clean_pet - Give your pet a bath to restore cleanliness
  • put_to_bed - Let your pet sleep to restore energy

Animations

  • Dynamic ASCII art animations for each pet type and activity
  • Randomized frames create a lively and engaging experience
  • Special animations for:
    • Eating different foods
    • Playing various games
    • Bathing
    • Sleeping
    • Being sick
    • And more!

Development

Install dependencies:

npm install

Build the server:

npm run build

For development with auto-rebuild:

npm run watch

Installation

Installing via Smithery

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.

Debugging

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.

Usage Examples

Ask Claude questions like:

  • "Can you create a cat pet named Whiskers?"
  • "How is my pet doing?"
  • "Can you feed my pet a meal?"
  • "I'd like to play chase with my pet"
  • "My pet looks dirty, can you give it a bath?"
  • "My pet seems tired, can you put it to bed?"

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Callycode Limited
  • A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Beniyam Berhanu
  • Therapist adept at identifying core issues and offering practical advice with images.

  • Khalid kalib
  • Write professional emails

  • https://tovuti.be
  • Oede knorrepot die vasthoudt an de goeie ouwe tied van 't boerenleven

  • ANGEL LEON
  • A world class elite tech co-founder entrepreneur, expert in software development, entrepreneurship, marketing, coaching style leadership and aligned with ambition for excellence, global market penetration and worldy perspectives.

  • INFOLAB OPERATIONS 2
  • A medical specialist offering assistance grounded in clinical guidelines. Disclaimer: This is intended for research and is NOT safe for clinical use!

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • OffchainLabs
  • 进行以太坊的实施

  • huahuayu
  • 统一的API网关,用于将多个Etherscan样区块链Explorer API与对AI助手的模型上下文协议(MCP)支持。

  • deemkeen
  • 用电源组合控制您的MBOT2:MQTT+MCP+LLM

  • jae-jae
  • MCP服务器使用剧作《无头浏览器》获取网页内容。

  • zhaoyunxing92
  • MCP(消息连接器协议)服务

    Reviews

    4 (1)
    Avatar
    user_bATfyvCH
    2025-04-15

    BeeMCP - A Bee MCP Server by OkGoDoIt is fantastic for anyone looking to manage their Minecraft servers effortlessly. The interface is user-friendly and the features are robust, making server management a breeze. This product truly streamlines the entire process and enhances the gaming experience. Highly recommend checking it out at https://mcp.so/server/beemcp/OkGoDoIt.