Are you the author? Sign in to claim
simple Animal Data MCP for learning
A basic Model Context Protocol (MCP) server that provides static information about animals (cats, dogs, and birds) for use with Claude Desktop.
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
source venv/bin/activate
python server.py
The server provides three tools:
To use this MCP server with Claude Desktop, you need to create or edit the MCP configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
If the file doesn't exist, create it with the following content:
{
"mcpServers": {
"animal-data": {
"command": "python",
"args": ["/Users/james/Work/mcp/simple/server.py"],
"cwd": "/Users/james/Work/mcp/simple",
"env": {
"PATH": "/Users/james/Work/mcp/simple/venv/bin:/usr/bin:/bin"
}
}
}
}
You can also configure this through Claude Desktop:
Important:
/Users/james/Work/mcp/simple with your actual project directory pathOnce configured, you can ask Claude Desktop to use the animal data tools:
"Tell me about cats"
get_cat_info tool and return: "Cats are independent, agile domestic animals known for their hunting skills and affectionate nature.""What information do you have about dogs?"
get_dog_info tool and return: "Dogs are loyal, social companion animals known for their intelligence and strong bond with humans.""Give me bird information"
get_bird_info tool and return: "Birds are feathered, winged animals capable of flight, known for their diverse songs and nesting behaviors.""Compare cats, dogs, and birds"
For remote deployment, use the HTTP server version:
# Install HTTP dependencies
source venv/bin/activate
pip install -r requirements-http.txt
# Start the HTTP server
python http_server.py
The server will start on http://localhost:8000 and accept MCP requests via HTTP POST to /mcp.
For HTTP deployment, use the alternative configuration file claude_desktop_config_http.json:
{
"mcpServers": {
"animal-data-http": {
"command": "curl",
"args": [
"-X", "POST",
"http://your-server.com:8000/mcp",
"-H", "Content-Type: application/json",
"-d", "@-"
]
}
}
}
Replace http://your-server.com:8000 with your actual server URL.
localhost:8000 for local HTTP testingCreate a Dockerfile:
FROM python:3.11-slim
WORKDIR /app
COPY requirements-http.txt .
RUN pip install -r requirements-http.txt
COPY http_server.py .
EXPOSE 8000
CMD ["python", "http_server.py"]
simple/
├── server.py # Local MCP server (stdio transport)
├── http_server.py # HTTP MCP server (http transport)
├── requirements.txt # Dependencies for local server
├── requirements-http.txt # Dependencies for HTTP server
├── claude_desktop_config_http.json # HTTP server configuration example
├── venv/ # Virtual environment (created after setup)
└── README.md # This documentation
fastmcp: Framework for building MCP servers with PythonRun Claude Code as an MCP server so any agent can delegate coding tasks to it
Browser automation using accessibility snapshots instead of screenshots
Google's universal MCP server supporting PostgreSQL, MySQL, MongoDB, Redis, and 10+ databases
Official GitHub integration for repos, issues, PRs, and CI/CD workflows