-
Notifications
You must be signed in to change notification settings - Fork 2
Getting Started
gary edited this page May 22, 2026
·
2 revisions
The easiest way to run hs-sql-agent is using Docker Compose. This ensures your configuration is saved and your data persists across restarts.
git clone https://github.com/tse-wei-chen/hs-sql-agent.git
cd hs-sql-agentCopy the example environment file:
cp .env.example .envEdit the .env file to set your secret keys:
HMAC_KEY=YourMcpHmacSecretKeyHere-AtLeast32Bytes!
JWT_KEY=YourSuperSecretKeyHere-AtLeast32Bytes!
JWT_ISS=HS-Agent
JWT_AUD=HS-Agent-Users
JWT_ACCESS_TOKEN_EXPIRATION_MINUTES=1
JWT_REFRESH_TOKEN_EXPIRATION_DAYS=30
RATE_LIMITING_PERMIT_LIMIT=0
RATE_LIMITING_WINDOW_SECONDS=0
RATE_LIMITING_QUEUE_LIMIT=0Important
Never use example keys in production. Replace HMAC_KEY and JWT_KEY with unique, 32+ byte strings.
docker compose up -d-
Admin Panel:
http://localhost:8080 -
MCP Endpoint:
http://localhost:8080/mcp
- Open
http://localhost:8080in your browser. - Create the first admin account and sign in.
- Navigate to DB Management and add your database connection.
- Go to MCP Keys and click Issue Key.
- Associate the key with your database connection.
- Copy the Key Value (only shown once) — you'll need it for client configuration.
Add the following to your MCP client configuration:
{
"mcpServers": {
"hs-sql-agent": {
"url": "http://localhost:8080/mcp",
"headers": {
"X-MCP-Server-Key": "<YOUR_MCP_KEY>"
}
}
}
}Works with Claude Desktop, VS Code (Cline/Roo), and Cursor.
- Learn about the Architecture
- Explore all Features
- Check the Admin Panel Guide for detailed administration
- See the MCP Tools Reference for available tools
hs-sql-agent — GitHub | Apache License 2.0