一个用于各种任务的简单而强大的 MCP(模型上下文协议)服务器集合。大多数服务器完全免费运行,无需 API 密钥! 🎉
| 服务器 | 端口 | 描述 | API | 状态 |
|---|---|---|---|---|
| 🌤️ 天气 | 8001 | 天气和预报 | Open-Meteo | 🆓 免费 |
| 🔍 搜索 | 8002 | 网络搜索、新闻、图片 | DuckDuckGo | 🆓 免费 |
| 🌐 IP 信息 | 8003 | IP 地址信息 | 免费 API | 🆓 免费 |
| 🏛️ 工件注册表 | 8004 | Cloud.ru 工件注册表 | Cloud.ru | 🔑 需要密钥 |
| 🥊 UFC | 8005 | UFC 和 MMA 信息 | UFC API | 🆓 免费 |
| 📚 维基百科 | 8006 | 搜索维基百科 | 维基百科 API | 🆓 免费 |
| 🔍 Yandex 搜索 | 8007 | Yandex 搜索 | Yandex API | 🔑 需要密钥 |
| 📥 获取 | 8008 | HTTP 请求和上传 | - | 🆓 免费 |
# 克隆仓库
git clone https://github.com/your-username/simple_mcp_server.git
cd simple_mcp_server
# 使用一条命令启动所有免费服务器
make start-all
# 检查状态
make ports
# 例如,天气服务器
cd mcp-weather
uv sync
uv run python server.py
# 启动特定服务器
make weather-run-build
# 或者在服务器目录中使用 docker-compose
cd mcp-weather
docker-compose up -d
功能:
cd mcp-weather && uv run python server.py
# 在 http://localhost:8001 上可用
功能:
cd mcp-search && uv run python server.py
# 在 http://localhost:8002 上可用
功能:
cd mcp-ip && uv run python server.py
# 在 http://localhost:8003 上可用
功能:
cd mcp-wikipedia && uv run python server.py
# 在 http://localhost:8006 上可用
功能:
cd mcp-ufc && uv run python server.py
# 在 http://localhost:8005 上可用
功能:
需要设置:
export CLOUD_RU_KEY_ID="your_key_id_here"
export CLOUD_RU_SECRET="your_secret_here"
cd mcp-artifact-registry && uv run python server.py
功能:
需要 Yandex API 密钥
功能:
cd mcp-fetch && uv run python server.py
# 在 http://localhost:8008 上可用
# 管理所有服务
make start-all # 启动所有免费服务器
make stop-all # 停止所有服务器
make ports # 显示使用的端口
make list-services # 列出所有服务
# 单个服务器命令
make weather-run-build # 天气服务器
make search-run-build # 搜索服务器
make ip-run-build # IP 服务器
make ufc-run-build # UFC 服务器
make wikipedia-run-build # 维基百科服务器
# ...等等
每个服务器都包括完整的测试集:
# 测试特定服务器
cd mcp-weather
make test-all # 所有测试
make test-unit # 单元测试
make test-integration # 集成测试
make test-cov # 带覆盖率的测试
# 演示测试
make test-demo # 展示所有功能的工作
simple_mcp_server/
├── LICENSE # MIT 许可证
├── README.md # 此文件
├── Makefile # 管理命令
├── mcp-weather/ # 🌤️ 天气服务器
├── mcp-search/ # 🔍 搜索服务器
├── mcp-ip/ # 🌐 IP 信息
├── mcp-artifact-registry/ # 🏛️ Cloud.ru 工件注册表
├── mcp-ufc/ # 🥊 UFC 信息
├── mcp-wikipedia/ # 📚 维基百科搜索
├── mcp-yandex-search/ # 🔍 Yandex 搜索
└── mcp-fetch/ # 📥 HTTP 客户端
每个文件夹包含:
server.py - 主服务器README.md - 详细文档pyproject.toml - 依赖项Dockerfile Docker 配置test/ 测试Makefile - 开发团队我们欢迎任何改进!
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)本项目采用 MIT 许可证 - 查看 LICENSE 文件以获取详情。
⭐ 喜欢这个项目吗?给个星吧! ⭐