skysql-mcp
SkySQL MCP server and client repository.
Documentation
SkySQL MCP Server
This package contains everything needed to set up the SkySQL/MariaDB Cloud MCP (Model Context Protocol) server, which provides a powerful interface for managing SkySQL MariaDB database instances and interacting with AI Agents.
Features
- Launch and manage serverless MariaDB database instances
- Interact with AI-powered database agents
- Execute SQL queries directly on SkySQL (MySQL/MariaDB) instances
- Manage database credentials and IP allowlists
- List and monitor database services
Installation
Prerequisites
- Python 3.10 or higher
- A SkySQL/MariaDB Cloud API key
Option 1: Run locally
Installation steps
1. Clone the repository:
git clone git@github.com:skysqlinc/skysql-mcp.git
cd skysql-mcp2. Run the installation script:
chmod +x install.sh
./install.sh3. Create a `.env` file in the root directory of the cloned git repository with your SkySQL API key. Obtain API key by signing up for free on SkySQL.
SKYSQL_API_KEY=4. Start the MCP server (HTTP mode):
chmod +x launch.sh
./launch.shThe server will start on `http://localhost:8000/mcp` by default.
5. Configure your IDE:
Cursor
Add the following to your Cursor MCP config (`~/.cursor/mcp.json` or `.cursor/mcp.json` in your project):
{
"mcpServers": {
"skysql-mcp-server": {
"url": "http://localhost:8000/mcp",
"headers": {
"X-API-Key": ""
}
}
}
}> The `X-API-Key` header is sent with each request, allowing per-user API keys when the server is hosted remotely.
Windsurf
Add the following to your Windsurf MCP config (`~/.codeium/windsurf/mcp_config.json`):
{
"mcpServers": {
"skysql-mcp-server": {
"serverUrl": "http://localhost:8000/mcp"
}
}
}> Note: Windsurf uses `serverUrl` (not `url`) and cannot send request headers. Start the
> server in single-tenant mode so it falls back to the API key in your environment:
>
> ```bash
> SKYSQL_SINGLE_TENANT=true ./launch.sh
> ```
>
> With `SKYSQL_API_KEY` set in `.env` (step 3). Without `SKYSQL_SINGLE_TENANT`, the server
> requires every HTTP caller to supply its own `X-API-Key` header and will reject requests that
> don't — deliberately, so a shared deployment can never serve requests using the operator's key.
Claude
Add the server as a custom connector (Settings > Connectors > Add custom connector), then supply
your API key under Request headers:
| Field | Value |
|---|---|
| URL | your deployed server URL, ending in `/mcp` |
| Header name | `x-api-key` |
| Header value | your SkySQL API key, with no prefix |
| Required | yes |
Generate the key at app.skysql.com/user-profile/api-keys.
Enter it exactly as-is — Claude sends the value verbatim and does not add a scheme or prefix.
> Claude requires a publicly reachable HTTPS URL, so `http://localhost:8000/mcp` will not work
> here; deploy the server first. Request header authentication is currently in beta and may need to
> be enabled for your organization.
6. (Optional) Test the server interactively with MCP CLI:
npx @wong2/mcp-cli uv run python src/mcp-server/server.pyFrequently asked questions
What is skysql-mcp?
skysql-mcp is SkySQL MCP server and client repository.
How do I install skysql-mcp?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is skysql-mcp open source?
Yes — it is hosted on GitHub at https://github.com/skysqlinc/skysql-mcp and has 2 stars.
Related MCP tools
AWS MCP Servers — helping you get the most out of AWS, wherever you use MCP. Python-based implementation. Trusted by 6900+ developers.
A simple, secure MCP-to-OpenAPI proxy server Python-based implementation. Trusted by 3500+ developers. Trusted by 3500+ developers.
MCP server that interacts with Obsidian via the Obsidian rest API community plugin Python-based implementation. Trusted by 2300+ developers.
Default Configuration: MCP CLI defaults to using Ollama with the gpt-oss reasoning model for local, privacy-focused operation without requiring API keys.
Official MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
MCP server for long term agent memory with Mem0. Also useful as a template to get you started building your own MCP server with Python!
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP