An MCP server for Text2SQL: transforms natural language into SQL using graph schema understanding.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
REST API Β· MCP Β· Graph-powered
QueryWeaver is an open-source Text2SQL tool that converts plain-English questions into SQL using graph-powered schema understanding. It helps you ask databases natural-language questions and returns SQL and results.
π‘ Recommended for evaluation purposes (Local Python or Node are not required)
Launch: http://localhost:5000
Create a local .env by copying .env.example and passing it to Docker. This is the simplest way to provide all required configuration:
If you prefer to pass variables on the command line, use -e flags (less convenient for many variables):
Note: QueryWeaver supports multiple AI providers. You can use
OPENAI_API_KEY,GEMINI_API_KEY,ANTHROPIC_API_KEY, orAZURE_API_KEY. See the AI/LLM configuration section for details.
For a full list of configuration options, consult
.env.example.
QueryWeaver stores per-user conversation memory in FalkorDB. By default these graphs persist indefinitely. Set MEMORY_TTL_SECONDS to apply a Redis TTL (in seconds) so idle memory graphs are automatically cleaned up.
The TTL is refreshed on every user interaction, so active users keep their memory.
QueryWeaver includes optional support for the Model Context Protocol (MCP). You can either have QueryWeaver expose an MCP-compatible HTTP surface (so other services can call QueryWeaver as an MCP server), or configure QueryWeaver to call an external MCP server for model/context services.
What QueryWeaver provides
The app registers MCP operations focused on Text2SQL flows:
list_databasesconnect_databasedatabase_schemaquery_databaseTo disable the built-in MCP endpoints set DISABLE_MCP=true in your .env or environment (default: MCP enabled).
Configuration
DISABLE_MCP β disable QueryWeaver's built-in MCP HTTP surface. Set to true to disable. Default: false (MCP enabled).
Examples
Disable the built-in MCP when running with Docker:
Calling the built-in MCP endpoints (example)
Below is a minimal example mcp.json client configuration that targets a local QueryWeaver instance exposing the MCP HTTP surface at /mcp.
Swagger UI: https://app.queryweaver.ai/docs
OpenAPI JSON: https://app.queryweaver.ai/openapi.json
QueryWeaver exposes a small REST API for managing graphs (database schemas) and running Text2SQL queries. All endpoints that modify or access user-scoped data require authentication via a bearer token. In the browser the app uses session cookies and OAuth flows; for CLI and scripts you can use an API token (see tokens routes or the web UI to create one).
Core endpoints
Authentication
Authorization: Bearer <API_TOKEN>Examples
curl example:
Python example:
curl example:
Python example:
Or upload a file (multipart/form-data):
The POST /graphs/{graph_id} endpoint accepts a JSON body with at least a chat field (an array of messages). The endpoint streams processing steps and the final SQL back as server-sent-message chunks delimited by a special boundary used by the frontend. For simple scripting you can call it and read the final JSON object from the streamed messages.
Example payload:
curl example (simple, collects whole response):
Python example (stream-aware):
Notes & tips
database field determines the saved graph id.|||FALKORDB_MESSAGE_BOUNDARY||| between messages.ConfirmRequest model in the code).The QueryWeaver Python SDK allows you to use Text2SQL functionality directly in your Python applications without running a web server.
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/queryweaver)<a href="https://allmcps.com/mcp/queryweaver"><img src="https://allmcps.com/api/badge/queryweaver?style=directory" alt="QueryWeaver on AllMCPs" /></a>