Uses OpenAI's language models to process natural language questions and extract parameters for dynamic database querying in a chatbot system
CBCI MCP
CBCI MCP (Model Context Protocol) - ChatBot CI with Dynamic Database Querying
이 패키지는 LLM을 활용한 동적 데이터베이스 질의응답 챗봇 시스템입니다.
설치
사용법
기본 사용법
설정 파일 예시
config.yaml
questions.yaml (예시)
schema.yaml (예시)
API
CBCIMCPClient
__init__(server_script=None)
server_script
: 서버 스크립트 경로 (기본값: 자동 감지)
start_server()
MCP 서버를 시작합니다.
stop_server()
MCP 서버를 종료합니다.
setup(config="config.yaml", questions="questions.yaml", schema="schema.yaml")
config
: 설정 파일명questions
: 질문 템플릿 파일명schema
: 스키마 정보 파일명- 반환값: 설정 결과 딕셔너리
ask(question)
question
: 질문 문자열- 반환값: 답변 문자열
get_questions()
- 반환값: 사용 가능한 질문 목록
특징
- LLM 파라미터 추출: 자연어 질문에서 자동으로 연도, 지역, 카테고리 등 추출
- 동적 SQL 생성: 템플릿 기반으로 파라미터에 맞는 SQL 자동 생성
- 유연한 설정: config, questions, schema 파일을 자유롭게 지정 가능
- 키워드 인수 지원: 직관적인 setup 방식
- 확장 가능: 다양한 도메인과 데이터베이스에 적용 가능
의존성
openai>=1.0.0
: OpenAI API 클라이언트pandas>=1.5.0
: 데이터 처리pyyaml>=6.0
: YAML 설정 파일 처리ibm-db>=3.1.0
: DB2 데이터베이스 연결
라이선스
MIT License
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Enables dynamic database querying through natural language questions using LLM-powered parameter extraction and template-based SQL generation. Supports flexible configuration for various domains and databases with automated response formatting.
Related MCP Servers
- AsecurityFlicenseAqualityEnables querying WolframAlpha's LLM API for natural language questions, providing structured and simplified answers optimized for LLM consumption.Last updated -336TypeScript
- AsecurityAlicenseAqualityEnables querying documents through a Langflow backend using natural language questions, providing an interface to interact with Langflow document Q\&A flows.Last updated -114JavaScriptMIT License
- AsecurityAlicenseAqualityA server that enables LLMs like Claude to query AWS DynamoDB databases through natural language requests, supporting table management, data querying, and schema analysis.Last updated -7666JavaScriptMIT License
- -securityFlicense-qualityA FastMCP server that enables natural language querying of PostgreSQL databases through LLM integration, allowing users to generate SQL queries from plain English and visualize the results.Last updated -2Python