Content
# Tamagotchi MCP Server
Implement a simple Tamagotchi MCP Server to simulate a virtual pet game.
## Prerequisites
- Python 3.11
- uvicorn
## Setup
### 1. Create a virtual environment
```bash
python3 -m venv tamagotchi-mcp-env
```
### 2. Activate the virtual environment
```bash
source tamagotchi-mcp-env/bin/activate
```
### 3. Install dependencies
```bash
pip install -r requirements.txt
```
### 4. Start the FastAPI server
```bash
uvicorn tamagotchi:app --host 0.0.0.0 --port 8000
```
### 5. Configure Claude Desktop
```json
{
"mcpServers": {
"tamagotchi-mcp-server": {
"command": "/path/to/your/tamagotchi-mcp-server/tamagotchi-mcp-env/bin/python3",
"args": ["/path/to/your/tamagotchi-mcp-server/server.py"]
}
}
}
```
## Usage
Basic actions
- "Name the pet"
- "Check the pet's status"
- "Shake the egg"
- "Feed the pet"
- "Play with the pet"
- "Let the pet rest"
- "Give the pet a bath"
- "Take the pet to the doctor"
- "Clean the pet's nest"
- "Reset the game"
## Implementation
[🔗 Implement MCP Server: Take "Tamagotchi Game" as an example](https://wai-imyen.github.io/posts/tamagotchi-mcp-server/)