Simple Animal Data MCP Server
A basic Model Context Protocol server that provides static information and facts about cats, dogs, and birds. It enables users to retrieve general animal data through Claude Desktop using either local stdio or HTTP transport.
README
Simple Animal Data MCP Server
A basic Model Context Protocol (MCP) server that provides static information about animals (cats, dogs, and birds) for use with Claude Desktop.
Installation
- Clone or download this project
- Create a virtual environment and install dependencies:
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
Usage
Running the Server
source venv/bin/activate
python server.py
Available Tools
The server provides three tools:
- get_cat_info: Returns information about cats
- get_dog_info: Returns information about dogs
- get_bird_info: Returns information about birds
Claude Desktop Configuration
To use this MCP server with Claude Desktop, you need to create or edit the MCP configuration file:
Configuration File Location
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
Creating the Configuration File
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"
}
}
}
}
Alternative: Using Claude Desktop Settings
You can also configure this through Claude Desktop:
- Open Claude Desktop
- Go to Settings (Cmd+, on macOS or Ctrl+, on Windows)
- Navigate to the "Developer" tab
- Click "Edit Config" to open the configuration file
- Add the MCP server configuration as shown above
Important:
- Replace
/Users/james/Work/mcp/simplewith your actual project directory path - Restart Claude Desktop after making configuration changes
Example Usage in Claude Desktop
Once configured, you can ask Claude Desktop to use the animal data tools:
Example Queries
"Tell me about cats"
- Claude will use the
get_cat_infotool and return: "Cats are independent, agile domestic animals known for their hunting skills and affectionate nature."
"What information do you have about dogs?"
- Claude will use the
get_dog_infotool and return: "Dogs are loyal, social companion animals known for their intelligence and strong bond with humans."
"Give me bird information"
- Claude will use the
get_bird_infotool and return: "Birds are feathered, winged animals capable of flight, known for their diverse songs and nesting behaviors."
"Compare cats, dogs, and birds"
- Claude will use all three tools to gather information and provide a comparison.
HTTP Server Version
For remote deployment, use the HTTP server version:
Running the HTTP Server
# 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.
HTTP Server Configuration
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.
Deployment Options
- Local HTTP: Run on
localhost:8000for local HTTP testing - Remote Server: Deploy to cloud services like Heroku, AWS, Google Cloud
- Docker: Containerize for easy deployment
Docker Deployment (Optional)
Create 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"]
Project Structure
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
Dependencies
fastmcp: Framework for building MCP servers with Python
Troubleshooting
- Server won't start: Ensure the virtual environment is activated and dependencies are installed
- Claude Desktop can't connect: Verify the configuration file path and server path are correct
- Tools not available: Restart Claude Desktop after updating the configuration file
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。