SQL Agent
io.github.Nachodusan/sql-agent
v0.2.0Updated Dec 5, 2026stdio · PyPI
Natural-language SQL that measures whether its answers are right, with a trace of every step
We earn commissions when you shop through the links below.
Install
Needs 1 secret. Replace 1 placeholder with your own values.
Run in your terminal. Replace 1 placeholder.
claude mcp add sql-agent -e 'SQL_AGENT_DSN=<your-sql-agent-dsn>' -- uvx sql-agent-mcp==0.2.0Configuration
4 settings, 1 required secret. Snippets use placeholders; keep real values out of shared config.
SQL_AGENT_DSNEnv var· required· secretDatabase connection string: sqlite:///./shop.db or postgresql://user:password@host:5432/db. Use a role that only has SELECT.OPENAI_API_KEYEnv var· optional· secretAPI key for the model behind the ask and evaluate tools. list_tables, describe_table and run_sql need no key.OPENAI_BASE_URLEnv var· optionalAny OpenAI-compatible endpoint, for example https://api.deepinfra.com/v1/openai. Defaults to OpenAI itself.SQL_AGENT_MODELEnv var· optionalModel id to use, for example deepseek-ai/DeepSeek-V3.
Links
We earn commissions when you shop through the links below.
Listed in the official MCP Registry since Dec 5, 2026. Mirrored daily; last checked Dec 5, 2026.