MCP服务器工具

一个用于支持Tiểu Trí的MCP服务器工具,可在Orange Pi等设备上运行,支持多种API集成。

  • by thanhtantran
  • Python
  • 本地部署
  • 4 星标
  • 更新于
在 GitHub 查看 thanhtantran/mcp-server-xiaozhi

使用说明

mcp-server-xiaozhi

Test thử một số mcp-server để dùng với Tiểu Trí, chạy tốt trên các thiết bị Orange Pi nh ư Orange Pi 5, Orange Pi 4A, Orange Pi 3B ...

Quick Start

  1. Install dependencies
pip install -r requirements.txt

Đối với Phạt nguội API, cần cài NodeJS (dùng NVM cài node 18), sau đó cài đặt chạy background trong service

sudo cp phatnguoi-api/phatnguoi-api.service /etc/systemd/system
sudo systemctl daemon-reload
sudo systemctl enable --now phatnguoi-api.service

File phatnguoi.py cai sử dụng localhost:3033 nếu thay đổi phải sửa file này

  1. Set up environment variables
export MCP_ENDPOINT=<your_mcp_endpoint>

hoặc tạo file .env và paste export MCP_ENDPOINT=<your_mcp_endpoint> vào đó

  1. Run the calculator example
python mcp_pipe.py calculator.py

Or run all configured servers

python mcp_pipe.py

Requires mcp_config.json configuration file with server definitions (supports stdio/sse/http transport types)

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • Forked from the original https://github.com/78/mcp-calculator
  • API Phạt nguội lấy từ https://github.com/anyideaz/phatnguoi-api
  • API Phát nhạc Youtube thông qua máy chủ Invidious lấy gốc từ https://github.com/ryannguyentran/mp3-proxy-musicVN-xiaozhi