Skip to content

CDataSoftware/openai-mcp-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CData MCP Chat Client

Minimal chat client for CData Connect MCP Server using OpenAI.

Setup

  1. Install dependencies:
pip install -r requirements.txt
  1. Configure environment:
cp .env.example .env
# Edit .env with your credentials:
# - OPENAI_API_KEY: Your OpenAI API key
# - MCP_USERNAME: CData Connect username
# - MCP_PASSWORD: CData Connect PAT token
  1. Run:
python client.py

Usage

Once connected, you can:

  • List available databases: "show me all catalogs"
  • Explore schemas: "what schemas are in SQL2?"
  • View tables: "list tables in dbo schema"
  • Run SQL queries: "select top 10 from customers"
  • Type 'exit' to quit

Files

  • client.py - Main chat interface
  • mcp_client/ - MCP protocol implementation
  • .env - Your configuration (create from .env.example)

About

Minimal chat client for CData Connect MCP Server using OpenAI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages