arjshiv_blaze-sql-mcp-server
0
BlazeSQL MCP Server is a project implementing a Model Context Protocol server to interact with BlazeSQL's Natural Language Query API. It provides a mechanism for MCP-compatible clients to execute natural language queries on databases through BlazeSQL, ensuring secure and validated interactions.
BlazeSQL MCP Server
This project implements a Model Context Protocol (MCP) server as a proxy to the BlazeSQL Natural Language Query API. It allows MCP-compatible clients to interact with BlazeSQL using natural language.
Features
- Built using the
McpServer
class from the MCP SDK. - Exposes the BlazeSQL Natural Language Query API as a tool named
blazesql_query
. - Uses
zod
for validation and handles API key authentication. - Communicates using the standard MCP stdio transport.
Prerequisites
- Node.js and Yarn.
- A BlazeSQL account with an API key.
Setup
- Clone the repository.
- Install dependencies.
- Configure environment variables.
Running the Server
- Build the server.
- Run the server, which listens for client connections.
Connecting an MCP Client
- Uses stdio transport; recommended to use MCP Inspector for testing.
Using the blazesql_query
Tool
- Tool name:
blazesql_query
. - Arguments:
db_id
andnatural_language_request
.