Natural-language SQL that measures whether its answers are right, with a trace of every step
Maintain this server? Claim it
This server only runs locally, from a package. Install it with the instructions on this page to try it.
Pick your client. Values in capitals, like YOUR_TOKEN, are yours to fill in.
Run in a terminal
claude mcp add sql-agent \ -e SQL_AGENT_DSN=YOUR_SQL_AGENT_DSN \ -- uvx sql-agent-mcp==0.2.0
Environment
SQL_AGENT_DSN (required): Database connection string: sqlite:///./shop.db or postgresql://user:password@host:5432/db. Use a role that only has SELECT.OPENAI_API_KEY (optional, not in the config above): API key for the model behind the ask and evaluate tools. list_tables, describe_table and run_sql need no key.OPENAI_BASE_URL (optional, not in the config above): Any OpenAI-compatible endpoint, for example https://api.deepinfra.com/v1/openai. Defaults to OpenAI itself.SQL_AGENT_MODEL (optional, not in the config above): Model id to use, for example deepseek-ai/DeepSeek-V3.We don't run packages, so we can't list this server's tools.