NPS Chatbot MCP Server
MCP server enabling NPS chatbot interactions, summaries, topic analysis, and example comments via natural language.
README
NPS Chatbot — MCP Server
NPS chatbot'unu MCP (Model Context Protocol) tool olarak sunan server. Claude Desktop, MCP Inspector veya on-prem MCP UI'larına entegre edilebilir.
Mac'te Kurulum
git clone https://github.com/itu-itis22-kombak22/nps-chatbot-mcp.git
cd nps-chatbot-mcp
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
Windows'ta Kurulum
git clone https://github.com/itu-itis22-kombak22/nps-chatbot-mcp.git
cd nps-chatbot-mcp
python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
.env Ayarları
.env dosyası repoda hazır gelir. İş bilgisayarında on-prem LLM ve Oracle kullanmak için güncelle:
# On-prem LLM (GROQ_API_KEY satırını sil, bunları doldur)
OPENAI_API_KEY=your-onprem-api-key
OPENAI_BASE_URL=http://your-llm-host:port/v1
LLM_MODEL=gpt-oss120b
# Oracle DB (USE_DB=true yapınca parquet yerine Oracle'dan okur)
USE_DB=true
ORACLE_HOST=your-oracle-host
ORACLE_PORT=1521
ORACLE_SERVICE=your-service-name
ORACLE_USER=your-username
ORACLE_PASSWORD=your-password
ORACLE_NPS_TABLE=SCHEMA.TABLE_NAME
MCP Inspector ile Test
MCP Inspector, tool'ları tarayıcıdan interaktif olarak test etmeyi sağlar. Node.js kurulu olması yeterli.
Mac:
npx @modelcontextprotocol/inspector python server.py
Windows:
npx @modelcontextprotocol/inspector python server.py
Komut çalıştıktan sonra tarayıcıda http://localhost:5173 açılır.
Inspector'da Test Adımları
- Sol panelde Tools sekmesine tıkla
- Test etmek istediğin tool'u seç
- Parametreleri doldur ve Run butonuna bas
Örnek Test Senaryoları
1. Selamlama testi
- Tool:
nps_chat message:Merhaba, ne yapabilirsin?
2. Haftalık özet
- Tool:
nps_summary period:haftalık
3. Kategori analizi
- Tool:
nps_topic category:Mobil Bankacılıkperiod:aylık
4. Segment analizi
- Tool:
nps_topic segment:Detractorperiod:haftalık
5. Örnek yorum
- Tool:
nps_example segment:Detractoremotion:Kızgın
6. Chatbot state machine testi
- Tool:
nps_chat→message:özet(DETAIL'a düşer, dönem sorar) - Tool:
nps_chat→message:haftalık(cevap üretir)
7. Session sıfırlama
- Tool:
nps_reset_session
Claude Desktop Entegrasyonu
Mac — ~/Library/Application Support/Claude/claude_desktop_config.json
Windows — C:\Users\<kullanıcı>\AppData\Roaming\Claude\claude_desktop_config.json
{
"mcpServers": {
"nps-chatbot": {
"command": "python",
"args": ["/absolute/path/to/nps-chatbot-mcp/server.py"]
}
}
}
Araçlar (Tools)
| Tool | Parametreler | Açıklama |
|---|---|---|
nps_chat |
message |
Ana chatbot — doğal dil, state machine akışı |
nps_summary |
period (haftalık/aylık/günlük) |
NPS özeti |
nps_topic |
category, segment, emotion, period |
Detay analiz |
nps_example |
segment, category, emotion, comment_type, period |
Örnek yorumlar |
nps_reset_session |
— | Konuşma geçmişini sıfırla |
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.