MCP_Host_Client_Server_SSE

MCP_Host_Client_Server_SSE

2

The project is a natural language SQL database querying system using the Model Context Protocol (MCP) to facilitate natural language to SQL transformation. It employs OpenAI's capabilities to deliver intelligent querying and integrates SQLite for database management, featuring real-time communication and asynchronous operations.

MCP Host Client Server SSE

This project is a natural language SQL database query system based on the Model Context Protocol (MCP). It enables users to convert natural language into SQL queries using a large language model. Key features include:

  • Server-client architecture based on MCP protocol
  • Support for natural language to SQL query conversion
  • Real-time communication via Server-Sent Events (SSE)
  • Integrated SQLite database
  • OpenAI/DeepSeek interface integration
  • Comprehensive logging system
  • Asynchronous operation support

Quick Start

Prerequisites

  • Python 3.8+
  • pip package manager
  • OpenAI API key

Installation Steps

  1. Clone the repository and navigate to it.
  2. Install dependencies using pip.
  3. Configure the API key in a config.ini file.
  4. Create the sample database using a script.

Running the Service

  1. Start the MCP server.
  2. Run the client application.