VibeCoding4-JC/pdp-mcp-server
3.2
If you are the rightful owner of pdp-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
MCP Server for answering questions about the Indonesian Personal Data Protection Law (UU PDP) using RAG with Pinecone as a vector database.
Tools
6
Resources
0
Prompts
0
PDP MCP Server
MCP Server untuk menjawab pertanyaan seputar UU Nomor 27 Tahun 2022 tentang Perlindungan Data Pribadi (UU PDP) menggunakan RAG (Retrieval-Augmented Generation) dengan Pinecone sebagai vector database.
🚀 Features
- RAG-powered Q&A: Menjawab pertanyaan berdasarkan isi UU PDP
- 6 MCP Tools:
tanya_pdp- Pertanyaan umum tentang UU PDPcari_pasal- Cari pasal berdasarkan nomor/keyworddefinisi_istilah- Cari definisi istilah hukumhak_subjek_data- Hak-hak pemilik data pribadikewajiban_pengendali- Kewajiban pengendali/prosesor datasanksi_pelanggaran- Sanksi administratif dan pidana
📋 Requirements
- Python 3.11+
- Pinecone Account (Free tier available)
- OpenAI API Key
🛠️ Installation
- Clone repository:
git clone <repository-url>
cd pdp-mcp-server
- Create virtual environment:
python -m venv venv
source venv/bin/activate # Linux/Mac
# atau
.\venv\Scripts\activate # Windows
- Install dependencies:
pip install -r requirements.txt
- Setup environment variables:
cp .env.example .env
# Edit .env dengan API keys Anda
📚 Data Ingestion
- Ekstrak PDF UU PDP:
python scripts/extract_pdf.py
- Ingest data ke Pinecone:
python scripts/ingest_data.py
🖥️ Running the Server
python -m src.server
🧪 Testing
pytest tests/ -v
📖 Usage with Claude Desktop
Add to your Claude Desktop config (claude_desktop_config.json):
{
"mcpServers": {
"pdp-assistant": {
"command": "python",
"args": ["-m", "src.server"],
"cwd": "/path/to/pdp-mcp-server"
}
}
}
📄 License
MIT License