LPDP MCP服务器
MCP Server使用Pinecone和Gemini 2.0 Flash的RAG(Retrieval Augmented Generation)来回答有关LPDP奖学金融资的问题。
🚀 特点
- RAG供电问答: 根据 LPDP 获奖者清算指南回答问题
- 矢量搜索使用Pinecone进行精确的语义搜索
- 双子座2.0闪光灯快速响应,良好的印度尼西亚语言支持
- MCP协议可与Claude Desktop和其他AI应用程序集成
📋 先决条件
- Python 3.10+(MCP SDK 需要)
- 松果账户(免费等级)
- 谷歌人工智能API密钥
🛠️ 安装
- 克隆存储库:
git clone
cd training-vibecode-mcp- 安装 Python 3.11(如果还没有):
# macOS dengan Homebrew
brew install python@3.11
# Ubuntu/Debian
sudo apt update
sudo apt install python3.11 python3.11-venv- Buat虚拟环境:
python3.11 -m venv venv
source venv/bin/activate # Linux/macOS
# atau
.\venv\Scripts\activate # Windows- 安装依赖项:
pip install -r requirements.txt- 设置环境变量:
cp .env.example .env
# Edit .env dengan API keys Anda📚 索引文档
在使用服务器之前,将PDF文档索引到Pinecone:
python -m scripts.index_documents🖥️ 运行服务器
作为MCP服务器(用于Claude Desktop)
将以下配置添加到 claude_desktop_config.json:
{
"mcpServers": {
"lpdp-pencairan": {
"command": "python",
"args": ["-m", "src.server"],
"cwd": "/path/to/training-vibecode-mcp",
"env": {
"PINECONE_API_KEY": "your_key",
"GOOGLE_API_KEY": "your_key"
}
}
}
}单独模式
python -m src.server🔧 MCP工具
| 工具 | 描述 |
|---|---|
tanya_pencairan_lpdp | 回答有关奖学金流通的常见问题 |
cari_komponen_dana 查找特定资金组成部分的信息。 | |
cek_batas_waktu 查看资金申请截止日期。 | |
info_dana_bulanan | 按国家/城市分列的生活津贴信息 |
cari_dokumen_persyaratan 申请所需的文件。 |
📊 使用范例
User: Berapa living allowance untuk mahasiswa di Jepang?
Bot: Living allowance untuk mahasiswa LPDP di Jepang adalah:
- Tokyo: JPY 195,000/bulan
- Kota lain: JPY 170,000/bulan🧪 测试
pytest tests/📝 许可证
MIT许可证
