SkySQL MCP Integration
by anishksk
This project provides a REST API interface for managing SkySQL databases, with integration capabilities for GitHub and Smithery.ai. It allows users to create and manage serverless databases in SkySQL.
View on GitHub
Last updated: N/A
SkySQL MCP Integration
This project provides a REST API interface for managing SkySQL databases, with integration capabilities for GitHub and Smithery.ai.
Features
- Create and manage serverless databases in SkySQL
- RESTful API endpoints for database operations
- GitHub integration for version control
- Smithery.ai deployment support
Prerequisites
- Node.js (v14 or higher)
- npm or yarn
- SkySQL API key
- GitHub account
- Smithery.ai account
Setup
- Clone the repository:
git clone <your-repo-url>
cd skysql-mcp
- Install dependencies:
npm install
- Create a
.env
file with your credentials:
SKYSQL_API_KEY=your_api_key
SKYSQL_HOST=your_host
SKYSQL_USER=your_user
SKYSQL_PASSWORD=your_password
SKYSQL_DATABASE=your_database
- Start the development server:
npm run dev
API Endpoints
POST /api/databases
- Create a new databaseGET /api/databases
- List all databasesGET /api/databases/:id
- Get database statusDELETE /api/databases/:id
- Delete a databasePOST /api/query
- Execute SQL queriesGET /health
- Health check endpoint
Deployment
This project is configured for deployment on Smithery.ai. Follow these steps:
- Push your code to GitHub
- Connect your GitHub repository to Smithery.ai
- Configure your environment variables in Smithery.ai
- Deploy your application
License
MIT